Lines Matching refs:pdacl
366 struct smb_acl *pdacl, char *end_of_acl, in parse_dacl() argument
380 if (!pdacl) in parse_dacl()
384 if (end_of_acl < (char *)pdacl + sizeof(struct smb_acl) || in parse_dacl()
385 end_of_acl < (char *)pdacl + le16_to_cpu(pdacl->size)) { in parse_dacl()
391 le16_to_cpu(pdacl->revision), le16_to_cpu(pdacl->size), in parse_dacl()
392 le32_to_cpu(pdacl->num_aces)); in parse_dacl()
394 acl_base = (char *)pdacl; in parse_dacl()
397 num_aces = le32_to_cpu(pdacl->num_aces); in parse_dacl()
1110 struct smb_acl *pdacl; in smb_inherit_dacl() local
1182 pdacl = (struct smb_acl *)((char *)pntsd + le32_to_cpu(pntsd->dacloffset)); in smb_inherit_dacl()
1183 pdacl->revision = cpu_to_le16(2); in smb_inherit_dacl()
1184 pdacl->size = cpu_to_le16(sizeof(struct smb_acl) + nt_size); in smb_inherit_dacl()
1185 pdacl->num_aces = cpu_to_le32(ace_cnt); in smb_inherit_dacl()
1186 pace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_inherit_dacl()
1220 struct smb_acl *pdacl; in smb_check_perm_dacl() local
1244 pdacl = (struct smb_acl *)((char *)pntsd + le32_to_cpu(pntsd->dacloffset)); in smb_check_perm_dacl()
1246 pdacl_size = le16_to_cpu(pdacl->size); in smb_check_perm_dacl()
1251 if (!pdacl->num_aces) { in smb_check_perm_dacl()
1264 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1266 for (i = 0; i < le32_to_cpu(pdacl->num_aces); i++) { in smb_check_perm_dacl()
1277 if (!pdacl->num_aces) in smb_check_perm_dacl()
1285 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1287 for (i = 0; i < le32_to_cpu(pdacl->num_aces); i++) { in smb_check_perm_dacl()
1312 if (!pdacl->num_aces) in smb_check_perm_dacl()