Lines Matching refs:smb_ace
192 static __u16 fill_ace_for_sid(struct smb_ace *pntace, in fill_ace_for_sid()
385 struct smb_ace **ppace; in parse_dacl()
412 if (num_aces > ULONG_MAX / sizeof(struct smb_ace *)) in parse_dacl()
415 ppace = kmalloc_array(num_aces, sizeof(struct smb_ace *), GFP_KERNEL); in parse_dacl()
437 ppace[i] = (struct smb_ace *)(acl_base + acl_size); in parse_dacl()
439 acl_size = offsetof(struct smb_ace, sid) + in parse_dacl()
590 struct smb_ace *pndace, in set_posix_acl_entries_dacl()
596 struct smb_ace *ntace; in set_posix_acl_entries_dacl()
634 ntace = (struct smb_ace *)((char *)ntace + in set_posix_acl_entries_dacl()
641 ntace = (struct smb_ace *)((char *)pndace + *size); in set_posix_acl_entries_dacl()
651 ntace = (struct smb_ace *)((char *)pndace + *size); in set_posix_acl_entries_dacl()
692 ntace = (struct smb_ace *)((char *)pndace + *size); in set_posix_acl_entries_dacl()
710 struct smb_ace *ntace, *pndace; in set_ntacl_dacl()
715 pndace = (struct smb_ace *)((char *)pndacl + sizeof(struct smb_acl)); in set_ntacl_dacl()
717 ntace = (struct smb_ace *)((char *)nt_dacl + sizeof(struct smb_acl)); in set_ntacl_dacl()
721 ntace = (struct smb_ace *)((char *)ntace + le16_to_cpu(ntace->size)); in set_ntacl_dacl()
735 struct smb_ace *pace, *pndace; in set_mode_dacl()
741 pace = pndace = (struct smb_ace *)((char *)pndacl + sizeof(struct smb_acl)); in set_mode_dacl()
760 pace = (struct smb_ace *)((char *)pndace + size); in set_mode_dacl()
769 pace = (struct smb_ace *)((char *)pndace + size); in set_mode_dacl()
773 pace = (struct smb_ace *)((char *)pndace + size); in set_mode_dacl()
778 pace = (struct smb_ace *)((char *)pndace + size); in set_mode_dacl()
783 pace = (struct smb_ace *)((char *)pndace + size); in set_mode_dacl()
975 static void smb_set_ace(struct smb_ace *ace, const struct smb_sid *sid, u8 type, in smb_set_ace()
990 struct smb_ace *parent_aces, *aces; in smb_inherit_dacl()
1015 aces_base = kmalloc(sizeof(struct smb_ace) * num_aces * 2, GFP_KERNEL); in smb_inherit_dacl()
1021 aces = (struct smb_ace *)aces_base; in smb_inherit_dacl()
1022 parent_aces = (struct smb_ace *)((char *)parent_pdacl + in smb_inherit_dacl()
1060 aces = (struct smb_ace *)((char *)aces + le16_to_cpu(aces->size)); in smb_inherit_dacl()
1070 aces = (struct smb_ace *)((char *)aces + le16_to_cpu(aces->size)); in smb_inherit_dacl()
1074 (struct smb_ace *)((char *)parent_aces + le16_to_cpu(parent_aces->size)); in smb_inherit_dacl()
1126 struct smb_ace *pace; in smb_inherit_dacl()
1132 pace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_inherit_dacl()
1172 struct smb_ace *ace; in smb_check_perm_dacl()
1175 struct smb_ace *others_ace = NULL; in smb_check_perm_dacl()
1215 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1218 ace = (struct smb_ace *)((char *)ace + le16_to_cpu(ace->size)); in smb_check_perm_dacl()
1231 ace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl)); in smb_check_perm_dacl()
1241 ace = (struct smb_ace *)((char *)ace + le16_to_cpu(ace->size)); in smb_check_perm_dacl()