Lines Matching refs:smb_acl
366 struct smb_acl *pdacl, char *end_of_acl,
384 if (end_of_acl < (char *)pdacl + sizeof(struct smb_acl) ||
395 acl_size = sizeof(struct smb_acl);
696 struct smb_acl *pndacl,
697 struct smb_acl *nt_dacl,
708 pndace = (struct smb_ace *)((char *)pndacl + sizeof(struct smb_acl));
710 ntace = (struct smb_ace *)((char *)nt_dacl + sizeof(struct smb_acl));
736 struct smb_acl *pndacl, struct smb_fattr *fattr)
744 pace = pndace = (struct smb_ace *)((char *)pndacl + sizeof(struct smb_acl));
819 struct smb_acl *dacl_ptr; /* no need for SACL ptr */
835 dacl_ptr = (struct smb_acl *)((char *)pntsd + dacloffset);
904 struct smb_acl *dacl_ptr = NULL; /* no need for SACL ptr */
950 dacl_ptr = (struct smb_acl *)((char *)pntsd + offset);
952 dacl_ptr->size = cpu_to_le16(sizeof(struct smb_acl));
958 struct smb_acl *ppdacl_ptr;
963 (dacl_offset + sizeof(struct smb_acl) > ppntsd_size))
966 ppdacl_ptr = (struct smb_acl *)((char *)ppntsd + dacl_offset);
969 ppdacl_size < sizeof(struct smb_acl))
973 ntacl_size - sizeof(struct smb_acl),
1004 struct smb_acl *parent_pdacl;
1019 if (!dacloffset || (dacloffset + sizeof(struct smb_acl) > pntsd_size)) {
1024 parent_pdacl = (struct smb_acl *)((char *)parent_pntsd + dacloffset);
1030 if (pdacl_size > acl_len || pdacl_size < sizeof(struct smb_acl)) {
1043 sizeof(struct smb_acl));
1044 aces_size = acl_len - sizeof(struct smb_acl);
1110 struct smb_acl *pdacl;
1127 pgroup_sid_size + sizeof(struct smb_acl) + nt_size;
1158 if ((u64)le32_to_cpu(pntsd->dacloffset) + sizeof(struct smb_acl) + nt_size >
1182 pdacl = (struct smb_acl *)((char *)pntsd + le32_to_cpu(pntsd->dacloffset));
1184 pdacl->size = cpu_to_le16(sizeof(struct smb_acl) + nt_size);
1186 pace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl));
1188 pntsd_size += sizeof(struct smb_acl) + nt_size;
1220 struct smb_acl *pdacl;
1241 (dacl_offset + sizeof(struct smb_acl) > pntsd_size))
1244 pdacl = (struct smb_acl *)((char *)pntsd + le32_to_cpu(pntsd->dacloffset));
1248 if (pdacl_size > acl_size || pdacl_size < sizeof(struct smb_acl))
1252 if (!(pdacl_size - sizeof(struct smb_acl)) &&
1264 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl));
1265 aces_size = acl_size - sizeof(struct smb_acl);
1285 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl));
1286 aces_size = acl_size - sizeof(struct smb_acl);