Lines Matching full:ace

165  * This function is called for every ACE in the DACL whose SID matches
985 static void smb_set_ace(struct smb_ace *ace, const struct smb_sid *sid, u8 type, in smb_set_ace() argument
988 ace->type = type; in smb_set_ace()
989 ace->flags = flags; in smb_set_ace()
990 ace->access_req = access_req; in smb_set_ace()
991 smb_copy_sid(&ace->sid, sid); in smb_set_ace()
992 ace->size = cpu_to_le16(1 + 1 + 2 + 4 + 1 + 1 + 6 + (sid->num_subauth * 4)); in smb_set_ace()
1200 struct smb_ace *ace; in smb_check_perm_dacl() local
1239 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1244 ace_size = le16_to_cpu(ace->size); in smb_check_perm_dacl()
1248 granted |= le32_to_cpu(ace->access_req); in smb_check_perm_dacl()
1249 ace = (struct smb_ace *)((char *)ace + le16_to_cpu(ace->size)); in smb_check_perm_dacl()
1260 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1265 ace_size = le16_to_cpu(ace->size); in smb_check_perm_dacl()
1270 if (!compare_sids(&sid, &ace->sid) || in smb_check_perm_dacl()
1271 !compare_sids(&sid_unix_NFS_mode, &ace->sid)) { in smb_check_perm_dacl()
1275 if (!compare_sids(&sid_everyone, &ace->sid)) in smb_check_perm_dacl()
1276 others_ace = ace; in smb_check_perm_dacl()
1278 ace = (struct smb_ace *)((char *)ace + le16_to_cpu(ace->size)); in smb_check_perm_dacl()
1285 granted |= le32_to_cpu(ace->access_req); in smb_check_perm_dacl()
1323 ace = others_ace; in smb_check_perm_dacl()
1331 switch (ace->type) { in smb_check_perm_dacl()
1333 access_bits = le32_to_cpu(ace->access_req); in smb_check_perm_dacl()
1337 access_bits = le32_to_cpu(~ace->access_req); in smb_check_perm_dacl()
1345 granted, le32_to_cpu(ace->access_req)); in smb_check_perm_dacl()