Lines Matching refs:smb_ace
193 static __u16 fill_ace_for_sid(struct smb_ace *pntace, in fill_ace_for_sid()
374 struct smb_ace **ppace; in parse_dacl()
402 (offsetof(struct smb_ace, sid) + in parse_dacl()
415 ppace = kmalloc_array(num_aces, sizeof(struct smb_ace *), KSMBD_DEFAULT_GFP); in parse_dacl()
431 ppace[i] = (struct smb_ace *)(acl_base + acl_size); in parse_dacl()
433 acl_size = offsetof(struct smb_ace, sid) + in parse_dacl()
585 struct smb_ace *pndace, in set_posix_acl_entries_dacl()
591 struct smb_ace *ntace; in set_posix_acl_entries_dacl()
629 ntace = (struct smb_ace *)((char *)ntace + in set_posix_acl_entries_dacl()
636 ntace = (struct smb_ace *)((char *)pndace + *size); in set_posix_acl_entries_dacl()
646 ntace = (struct smb_ace *)((char *)pndace + *size); in set_posix_acl_entries_dacl()
687 ntace = (struct smb_ace *)((char *)pndace + *size); in set_posix_acl_entries_dacl()
706 struct smb_ace *ntace, *pndace; in set_ntacl_dacl()
711 pndace = (struct smb_ace *)((char *)pndacl + sizeof(struct smb_acl)); in set_ntacl_dacl()
713 ntace = (struct smb_ace *)((char *)nt_dacl + sizeof(struct smb_acl)); in set_ntacl_dacl()
717 if (offsetof(struct smb_ace, access_req) > aces_size) in set_ntacl_dacl()
727 ntace = (struct smb_ace *)((char *)ntace + nt_ace_size); in set_ntacl_dacl()
741 struct smb_ace *pace, *pndace; in set_mode_dacl()
747 pace = pndace = (struct smb_ace *)((char *)pndacl + sizeof(struct smb_acl)); in set_mode_dacl()
766 pace = (struct smb_ace *)((char *)pndace + size); in set_mode_dacl()
775 pace = (struct smb_ace *)((char *)pndace + size); in set_mode_dacl()
779 pace = (struct smb_ace *)((char *)pndace + size); in set_mode_dacl()
784 pace = (struct smb_ace *)((char *)pndace + size); in set_mode_dacl()
789 pace = (struct smb_ace *)((char *)pndace + size); in set_mode_dacl()
1007 static void smb_set_ace(struct smb_ace *ace, const struct smb_sid *sid, u8 type, in smb_set_ace()
1022 struct smb_ace *parent_aces, *aces; in smb_inherit_dacl()
1055 aces_base = kmalloc(sizeof(struct smb_ace) * num_aces * 2, in smb_inherit_dacl()
1062 aces = (struct smb_ace *)aces_base; in smb_inherit_dacl()
1063 parent_aces = (struct smb_ace *)((char *)parent_pdacl + in smb_inherit_dacl()
1073 if (offsetof(struct smb_ace, access_req) > aces_size) in smb_inherit_dacl()
1113 aces = (struct smb_ace *)((char *)aces + le16_to_cpu(aces->size)); in smb_inherit_dacl()
1123 aces = (struct smb_ace *)((char *)aces + le16_to_cpu(aces->size)); in smb_inherit_dacl()
1126 parent_aces = (struct smb_ace *)((char *)parent_aces + pace_size); in smb_inherit_dacl()
1201 struct smb_ace *pace; in smb_inherit_dacl()
1207 pace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_inherit_dacl()
1246 struct smb_ace *ace; in smb_check_perm_dacl()
1249 struct smb_ace *others_ace = NULL; in smb_check_perm_dacl()
1285 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1288 if (offsetof(struct smb_ace, access_req) > aces_size) in smb_check_perm_dacl()
1295 ace = (struct smb_ace *)((char *)ace + le16_to_cpu(ace->size)); in smb_check_perm_dacl()
1306 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1309 if (offsetof(struct smb_ace, access_req) > aces_size) in smb_check_perm_dacl()
1324 ace = (struct smb_ace *)((char *)ace + le16_to_cpu(ace->size)); in smb_check_perm_dacl()