Home
last modified time | relevance | path

Searched refs:vfsgid (Results 1 – 10 of 10) sorted by relevance

/linux/fs/
H A Dmnt_idmapping.c180 struct user_namespace *fs_userns, vfsgid_t vfsgid) in from_vfsgid() argument
185 return AS_KGIDT(vfsgid); in from_vfsgid()
188 gid = map_id_up(&idmap->gid_map, __vfsgid_val(vfsgid)); in from_vfsgid()
207 int vfsgid_in_group_p(vfsgid_t vfsgid) in vfsgid_in_group_p() argument
209 return in_group_p(AS_KGIDT(vfsgid)); in vfsgid_in_group_p()
212 int vfsgid_in_group_p(vfsgid_t vfsgid) in vfsgid_in_group_p() argument
H A Dexec.c1565 vfsgid_t vfsgid; in bprm_fill_uid() local
1586 vfsgid = i_gid_into_vfsgid(idmap, inode); in bprm_fill_uid()
1596 !vfsgid_has_mapping(bprm->cred->user_ns, vfsgid)) in bprm_fill_uid()
1606 bprm->cred->egid = vfsgid_into_kgid(vfsgid); in bprm_fill_uid()
H A Dnamei.c490 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in acl_permission_check() local
491 if (vfsgid_in_group_p(vfsgid)) in acl_permission_check()
/linux/fs/smb/server/
H A Dsmbacl.h122 vfsgid_t vfsgid; in posix_acl_gid_translate() local
125 vfsgid = make_vfsgid(idmap, &init_user_ns, pace->e_gid); in posix_acl_gid_translate()
128 return from_kgid(&init_user_ns, vfsgid_into_kgid(vfsgid)); in posix_acl_gid_translate()
H A Dndr.c349 vfsgid_t vfsgid; in ndr_encode_posix_acl() local
381 vfsgid = i_gid_into_vfsgid(idmap, inode); in ndr_encode_posix_acl()
382 ret = ndr_write_int64(n, from_kgid(&init_user_ns, vfsgid_into_kgid(vfsgid))); in ndr_encode_posix_acl()
H A Doplock.c2016 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in create_posix_rsp_buf() local
2060 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)), in create_posix_rsp_buf()
H A Dsmb2pdu.c2869 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in ksmbd_acls_fattr() local
2872 fattr->cf_gid = vfsgid_into_kgid(vfsgid); in ksmbd_acls_fattr()
5661 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in find_file_posix_info() local
5725 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)), in find_file_posix_info()
/linux/fs/overlayfs/
H A Dinode.c349 vfsgid_t vfsgid; in ovl_idmap_posix_acl() local
358 vfsgid = make_vfsgid(idmap, fs_userns, e->e_gid); in ovl_idmap_posix_acl()
359 e->e_gid = vfsgid_into_kgid(vfsgid); in ovl_idmap_posix_acl()
H A Dutil.c1501 vfsgid_t vfsgid; in ovl_copyattr() local
1508 vfsgid = i_gid_into_vfsgid(real_idmap, realinode); in ovl_copyattr()
1511 inode->i_gid = vfsgid_into_kgid(vfsgid); in ovl_copyattr()
/linux/security/integrity/ima/
H A Dima_policy.c85 static inline bool vfsgid_gt_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_gt_kgid() argument
87 return __vfsgid_val(vfsgid) > __kgid_val(kgid); in vfsgid_gt_kgid()
95 static inline bool vfsgid_lt_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_lt_kgid() argument
97 return __vfsgid_val(vfsgid) < __kgid_val(kgid); in vfsgid_lt_kgid()
115 bool (*fgroup_op)(vfsgid_t vfsgid, kgid_t rule_gid); /* vfsgid_eq_kgid(), vfsgid_gt_kgid(), vfsgid_lt_kgid() */