Lines Matching refs:smb_sid

19 static const struct smb_sid domain = {1, 4, {0, 0, 0, 0, 0, 5},
24 static const struct smb_sid creator_owner = {
27 static const struct smb_sid creator_group = {
31 static const struct smb_sid sid_everyone = {
34 static const struct smb_sid sid_authusers = {
38 static const struct smb_sid sid_unix_users = {1, 1, {0, 0, 0, 0, 0, 22},
42 static const struct smb_sid sid_unix_groups = { 1, 1, {0, 0, 0, 0, 0, 22},
52 static const struct smb_sid sid_unix_NFS_users = { 1, 2, {0, 0, 0, 0, 0, 5},
57 static const struct smb_sid sid_unix_NFS_groups = { 1, 2, {0, 0, 0, 0, 0, 5},
62 static const struct smb_sid sid_unix_NFS_mode = { 1, 2, {0, 0, 0, 0, 0, 5},
70 int compare_sids(const struct smb_sid *ctsid, const struct smb_sid *cwsid) in compare_sids()
115 static void smb_copy_sid(struct smb_sid *dst, const struct smb_sid *src) in smb_copy_sid()
193 const struct smb_sid *psid, int type, int flags, in fill_ace_for_sid()
220 void id_to_sid(unsigned int cid, uint sidtype, struct smb_sid *ssid) in id_to_sid()
257 struct smb_sid *psid, uint sidtype, in sid_to_id()
378 struct smb_sid *pownersid, struct smb_sid *pgrpsid, in parse_dacl()
440 offsetof(struct smb_sid, sub_auth); in parse_dacl()
595 struct smb_sid *sid; in set_posix_acl_entries_dacl()
606 sid = kmalloc(sizeof(struct smb_sid), GFP_KERNEL); in set_posix_acl_entries_dacl()
673 sid = kmalloc(sizeof(struct smb_sid), GFP_KERNEL); in set_posix_acl_entries_dacl()
706 const struct smb_sid *pownersid, in set_ntacl_dacl()
707 const struct smb_sid *pgrpsid, in set_ntacl_dacl()
739 const struct smb_sid *sid; in set_mode_dacl()
796 static int parse_sid(struct smb_sid *psid, char *end_of_acl) in parse_sid()
815 struct smb_sid *owner_sid_ptr, *group_sid_ptr; in parse_sec_desc()
827 owner_sid_ptr = (struct smb_sid *)((char *)pntsd + in parse_sec_desc()
829 group_sid_ptr = (struct smb_sid *)((char *)pntsd + in parse_sec_desc()
899 struct smb_sid *owner_sid_ptr, *group_sid_ptr; in build_sec_desc()
900 struct smb_sid *nowner_sid_ptr, *ngroup_sid_ptr; in build_sec_desc()
906 nowner_sid_ptr = kmalloc(sizeof(struct smb_sid), GFP_KERNEL); in build_sec_desc()
915 ngroup_sid_ptr = kmalloc(sizeof(struct smb_sid), GFP_KERNEL); in build_sec_desc()
933 owner_sid_ptr = (struct smb_sid *)((char *)pntsd + offset); in build_sec_desc()
940 group_sid_ptr = (struct smb_sid *)((char *)pntsd + offset); in build_sec_desc()
975 static void smb_set_ace(struct smb_ace *ace, const struct smb_sid *sid, u8 type, in smb_set_ace()
989 const struct smb_sid *psid, *creator = NULL; in smb_inherit_dacl()
993 struct smb_sid owner_sid, group_sid; in smb_inherit_dacl()
1080 struct smb_sid *powner_sid = NULL, *pgroup_sid = NULL; in smb_inherit_dacl()
1084 powner_sid = (struct smb_sid *)((char *)parent_pntsd + in smb_inherit_dacl()
1089 pgroup_sid = (struct smb_sid *)((char *)parent_pntsd + in smb_inherit_dacl()
1112 struct smb_sid *owner_sid = (struct smb_sid *)((char *)pntsd + in smb_inherit_dacl()
1119 struct smb_sid *group_sid = (struct smb_sid *)((char *)pntsd + in smb_inherit_dacl()
1170 struct smb_sid sid; in smb_check_perm_dacl()
1397 memcpy(&server_conf.domain_sid, &domain, sizeof(struct smb_sid)); in ksmbd_init_domain()