Lines Matching refs:ace
988 static void smb_set_ace(struct smb_ace *ace, const struct smb_sid *sid, u8 type, in smb_set_ace() argument
991 ace->type = type; in smb_set_ace()
992 ace->flags = flags; in smb_set_ace()
993 ace->access_req = access_req; in smb_set_ace()
994 smb_copy_sid(&ace->sid, sid); in smb_set_ace()
995 ace->size = cpu_to_le16(1 + 1 + 2 + 4 + 1 + 1 + 6 + (sid->num_subauth * 4)); in smb_set_ace()
1225 struct smb_ace *ace; in smb_check_perm_dacl() local
1264 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1269 ace_size = le16_to_cpu(ace->size); in smb_check_perm_dacl()
1273 granted |= le32_to_cpu(ace->access_req); in smb_check_perm_dacl()
1274 ace = (struct smb_ace *)((char *)ace + le16_to_cpu(ace->size)); in smb_check_perm_dacl()
1285 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1290 ace_size = le16_to_cpu(ace->size); in smb_check_perm_dacl()
1295 if (!compare_sids(&sid, &ace->sid) || in smb_check_perm_dacl()
1296 !compare_sids(&sid_unix_NFS_mode, &ace->sid)) { in smb_check_perm_dacl()
1300 if (!compare_sids(&sid_everyone, &ace->sid)) in smb_check_perm_dacl()
1301 others_ace = ace; in smb_check_perm_dacl()
1303 ace = (struct smb_ace *)((char *)ace + le16_to_cpu(ace->size)); in smb_check_perm_dacl()
1310 granted |= le32_to_cpu(ace->access_req); in smb_check_perm_dacl()
1348 ace = others_ace; in smb_check_perm_dacl()
1356 switch (ace->type) { in smb_check_perm_dacl()
1358 access_bits = le32_to_cpu(ace->access_req); in smb_check_perm_dacl()
1362 access_bits = le32_to_cpu(~ace->access_req); in smb_check_perm_dacl()
1370 granted, le32_to_cpu(ace->access_req)); in smb_check_perm_dacl()