Lines Matching full:ace
165 * This function is called for every ACE in the DACL whose SID matches
1007 static void smb_set_ace(struct smb_ace *ace, const struct smb_sid *sid, u8 type, in smb_set_ace() argument
1010 ace->type = type; in smb_set_ace()
1011 ace->flags = flags; in smb_set_ace()
1012 ace->access_req = access_req; in smb_set_ace()
1013 smb_copy_sid(&ace->sid, sid); in smb_set_ace()
1014 ace->size = cpu_to_le16(1 + 1 + 2 + 4 + 1 + 1 + 6 + (sid->num_subauth * 4)); in smb_set_ace()
1244 struct smb_ace *ace; in smb_check_perm_dacl() local
1283 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1288 ace_size = le16_to_cpu(ace->size); in smb_check_perm_dacl()
1292 granted |= le32_to_cpu(ace->access_req); in smb_check_perm_dacl()
1293 ace = (struct smb_ace *)((char *)ace + le16_to_cpu(ace->size)); in smb_check_perm_dacl()
1304 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1309 ace_size = le16_to_cpu(ace->size); in smb_check_perm_dacl()
1314 if (!compare_sids(&sid, &ace->sid) || in smb_check_perm_dacl()
1315 !compare_sids(&sid_unix_NFS_mode, &ace->sid)) { in smb_check_perm_dacl()
1319 if (!compare_sids(&sid_everyone, &ace->sid)) in smb_check_perm_dacl()
1320 others_ace = ace; in smb_check_perm_dacl()
1322 ace = (struct smb_ace *)((char *)ace + le16_to_cpu(ace->size)); in smb_check_perm_dacl()
1329 granted |= le32_to_cpu(ace->access_req); in smb_check_perm_dacl()
1367 ace = others_ace; in smb_check_perm_dacl()
1375 switch (ace->type) { in smb_check_perm_dacl()
1377 access_bits = le32_to_cpu(ace->access_req); in smb_check_perm_dacl()
1381 access_bits = le32_to_cpu(~ace->access_req); in smb_check_perm_dacl()
1389 granted, le32_to_cpu(ace->access_req)); in smb_check_perm_dacl()