Home
last modified time | relevance | path

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

/Linux-v6.1/include/linux/
Dmnt_idmapping.h96 static inline bool vfsgid_eq_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_eq_kgid() argument
98 return vfsgid_valid(vfsgid) && __vfsgid_val(vfsgid) == __kgid_val(kgid); in vfsgid_eq_kgid()
128 static inline int vfsgid_in_group_p(vfsgid_t vfsgid) in vfsgid_in_group_p() argument
130 return in_group_p(AS_KGIDT(vfsgid)); in vfsgid_in_group_p()
133 static inline int vfsgid_in_group_p(vfsgid_t vfsgid) in vfsgid_in_group_p() argument
362 vfsgid_t vfsgid) in from_vfsgid() argument
367 return AS_KGIDT(vfsgid); in from_vfsgid()
368 gid = from_kgid(mnt_userns, AS_KGIDT(vfsgid)); in from_vfsgid()
417 vfsgid_t vfsgid) in vfsgid_has_fsmapping() argument
419 return gid_valid(from_vfsgid(mnt_userns, fs_userns, vfsgid)); in vfsgid_has_fsmapping()
[all …]
/Linux-v6.1/fs/
Dattr.c63 vfsgid_t vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in chgrp_ok() local
66 if (vfsgid_eq(ia_vfsgid, vfsgid)) in chgrp_ok()
73 if (!vfsgid_valid(vfsgid) && in chgrp_ok()
132 vfsgid_t vfsgid; in setattr_prepare() local
138 vfsgid = attr->ia_vfsgid; in setattr_prepare()
140 vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in setattr_prepare()
143 if (!vfsgid_in_group_p(vfsgid) && in setattr_prepare()
254 vfsgid_t vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in setattr_copy() local
255 if (!vfsgid_in_group_p(vfsgid) && in setattr_copy()
Dposix_acl.c368 vfsgid_t vfsgid; in posix_acl_permission() local
387 vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in posix_acl_permission()
388 if (vfsgid_in_group_p(vfsgid)) { in posix_acl_permission()
395 vfsgid = make_vfsgid(mnt_userns, fs_userns, in posix_acl_permission()
397 if (vfsgid_in_group_p(vfsgid)) { in posix_acl_permission()
744 vfsgid_t vfsgid; in posix_acl_getxattr_idmapped_mnt() local
765 vfsgid = make_vfsgid(mnt_userns, fs_userns, gid); in posix_acl_getxattr_idmapped_mnt()
767 vfsgid_into_kgid(vfsgid))); in posix_acl_getxattr_idmapped_mnt()
/Linux-v6.1/fs/ksmbd/
Dsmbacl.h229 vfsgid_t vfsgid; in posix_acl_gid_translate() local
232 vfsgid = make_vfsgid(mnt_userns, &init_user_ns, pace->e_gid); in posix_acl_gid_translate()
235 return from_kgid(&init_user_ns, vfsgid_into_kgid(vfsgid)); in posix_acl_gid_translate()
Dndr.c349 vfsgid_t vfsgid; in ndr_encode_posix_acl() local
381 vfsgid = i_gid_into_vfsgid(user_ns, 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()
Doplock.c1613 vfsgid_t vfsgid = i_gid_into_vfsgid(user_ns, inode); in create_posix_rsp_buf() local
1657 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)), in create_posix_rsp_buf()
Dsmb2pdu.c2481 vfsgid_t vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in ksmbd_acls_fattr() local
2484 fattr->cf_gid = vfsgid_into_kgid(vfsgid); in ksmbd_acls_fattr()
4725 vfsgid_t vfsgid = i_gid_into_vfsgid(user_ns, inode); in find_file_posix_info() local
4752 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)), in find_file_posix_info()
/Linux-v6.1/fs/xfs/
Dxfs_itable.c70 vfsgid_t vfsgid; in xfs_bulkstat_one_int() local
87 vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in xfs_bulkstat_one_int()
95 buf->bs_gid = from_kgid(sb_userns, vfsgid_into_kgid(vfsgid)); in xfs_bulkstat_one_int()
Dxfs_iops.c562 vfsgid_t vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in xfs_vn_getattr() local
574 stat->gid = vfsgid_into_kgid(vfsgid); in xfs_vn_getattr()
/Linux-v6.1/fs/overlayfs/
Dinode.c471 vfsgid_t vfsgid; in ovl_idmap_posix_acl() local
480 vfsgid = make_vfsgid(mnt_userns, fs_userns, e->e_gid); in ovl_idmap_posix_acl()
481 e->e_gid = vfsgid_into_kgid(vfsgid); in ovl_idmap_posix_acl()
/Linux-v6.1/fs/f2fs/
Dfile.c920 vfsgid_t vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in __setattr_copy() local
922 if (!vfsgid_in_group_p(vfsgid) && in __setattr_copy()