• Home
  • Raw
  • Download

Lines Matching full:ace

165  * This function is called for every ACE in the DACL whose SID matches
1012 static void smb_set_ace(struct smb_ace *ace, const struct smb_sid *sid, u8 type, in smb_set_ace() argument
1015 ace->type = type; in smb_set_ace()
1016 ace->flags = flags; in smb_set_ace()
1017 ace->access_req = access_req; in smb_set_ace()
1018 smb_copy_sid(&ace->sid, sid); in smb_set_ace()
1019 ace->size = cpu_to_le16(1 + 1 + 2 + 4 + 1 + 1 + 6 + (sid->num_subauth * 4)); in smb_set_ace()
1249 struct smb_ace *ace; in smb_check_perm_dacl() local
1288 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1293 ace_size = le16_to_cpu(ace->size); in smb_check_perm_dacl()
1297 granted |= le32_to_cpu(ace->access_req); in smb_check_perm_dacl()
1298 ace = (struct smb_ace *)((char *)ace + le16_to_cpu(ace->size)); in smb_check_perm_dacl()
1309 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1314 ace_size = le16_to_cpu(ace->size); in smb_check_perm_dacl()
1319 if (!compare_sids(&sid, &ace->sid) || in smb_check_perm_dacl()
1320 !compare_sids(&sid_unix_NFS_mode, &ace->sid)) { in smb_check_perm_dacl()
1324 if (!compare_sids(&sid_everyone, &ace->sid)) in smb_check_perm_dacl()
1325 others_ace = ace; in smb_check_perm_dacl()
1327 ace = (struct smb_ace *)((char *)ace + le16_to_cpu(ace->size)); in smb_check_perm_dacl()
1334 granted |= le32_to_cpu(ace->access_req); in smb_check_perm_dacl()
1372 ace = others_ace; in smb_check_perm_dacl()
1380 switch (ace->type) { in smb_check_perm_dacl()
1382 access_bits = le32_to_cpu(ace->access_req); in smb_check_perm_dacl()
1386 access_bits = le32_to_cpu(~ace->access_req); in smb_check_perm_dacl()
1394 granted, le32_to_cpu(ace->access_req)); in smb_check_perm_dacl()