Home
last modified time | relevance | path

Searched refs:vfsgid (Results 1 – 14 of 14) 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 Dattr.c124 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in chgrp_ok() local
127 if (vfsgid_eq(ia_vfsgid, vfsgid)) in chgrp_ok()
134 if (!vfsgid_valid(vfsgid) && in chgrp_ok()
203 vfsgid_t vfsgid; in setattr_prepare() local
209 vfsgid = attr->ia_vfsgid; in setattr_prepare()
211 vfsgid = i_gid_into_vfsgid(idmap, inode); in setattr_prepare()
214 if (!in_group_or_capable(idmap, inode, vfsgid)) in setattr_prepare()
H A Dposix_acl.c388 vfsgid_t vfsgid; in posix_acl_permission() local
407 vfsgid = i_gid_into_vfsgid(idmap, inode); in posix_acl_permission()
408 if (vfsgid_in_group_p(vfsgid)) { in posix_acl_permission()
415 vfsgid = make_vfsgid(idmap, fs_userns, in posix_acl_permission()
417 if (vfsgid_in_group_p(vfsgid)) { in posix_acl_permission()
903 vfsgid_t vfsgid; in vfs_posix_acl_to_xattr() local
927 vfsgid = make_vfsgid(idmap, fs_userns, acl_e->e_gid); in vfs_posix_acl_to_xattr()
929 caller_userns, vfsgid_into_kgid(vfsgid))); in vfs_posix_acl_to_xattr()
H A Dexec.c1650 vfsgid_t vfsgid; in bprm_fill_uid()
1671 vfsgid = i_gid_into_vfsgid(idmap, inode); in bprm_fill_uid()
1681 !vfsgid_has_mapping(bprm->cred->user_ns, vfsgid)) in bprm_fill_uid()
1691 bprm->cred->egid = vfsgid_into_kgid(vfsgid); in bprm_fill_uid()
1649 vfsgid_t vfsgid; bprm_fill_uid() local
H A Dinode.c3036 const struct inode *inode, vfsgid_t vfsgid) in in_group_or_capable() argument
3038 if (vfsgid_in_group_p(vfsgid)) in in_group_or_capable()
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/overlayfs/
H A Dinode.c184 vfsgid_t vfsgid; in ovl_getattr() local
299 vfsgid = make_vfsgid(idmap, i_user_ns(inode), stat->gid); in ovl_getattr()
301 stat->gid = vfsgid_into_kgid(vfsgid); in ovl_getattr()
365 vfsgid_t vfsgid; in ovl_idmap_posix_acl() local
374 vfsgid = make_vfsgid(idmap, fs_userns, e->e_gid); in ovl_idmap_posix_acl()
375 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/fs/smb/server/
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.c2275 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in create_posix_rsp_buf() local
2319 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)), in create_posix_rsp_buf()
H A Dsmb2pdu.c3655 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in ksmbd_acls_fattr() local
3658 fattr->cf_gid = vfsgid_into_kgid(vfsgid); in ksmbd_acls_fattr()
7113 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in find_file_posix_info() local
7178 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)), in find_file_posix_info()
/linux/security/integrity/ima/
H A Dima_policy.c87 static inline bool vfsgid_gt_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_gt_kgid() argument
89 return __vfsgid_val(vfsgid) > __kgid_val(kgid); in vfsgid_gt_kgid()
97 static inline bool vfsgid_lt_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_lt_kgid() argument
99 return __vfsgid_val(vfsgid) < __kgid_val(kgid); in vfsgid_lt_kgid()
117 …bool (*fgroup_op)(vfsgid_t vfsgid, kgid_t rule_gid); /* vfsgid_eq_kgid(), vfsgid_gt_kgid(), vfsgid…
/linux/fs/xfs/
H A Dxfs_iops.c692 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in xfs_vn_getattr() local
704 stat->gid = vfsgid_into_kgid(vfsgid); in xfs_vn_getattr()
/linux/include/linux/
H A Dfs.h1526 * Safely update @inode's i_gid field translating the vfsgid of any idmapped
1839 const struct inode *inode, vfsgid_t vfsgid);