Home
last modified time | relevance | path

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

/linux/include/linux/
A Dmnt_idmapping.h95 static inline bool vfsgid_eq_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_eq_kgid() argument
97 return vfsgid_valid(vfsgid) && __vfsgid_val(vfsgid) == __kgid_val(kgid); in vfsgid_eq_kgid()
117 int vfsgid_in_group_p(vfsgid_t vfsgid);
132 struct user_namespace *fs_userns, vfsgid_t vfsgid);
186 vfsgid_t vfsgid) in vfsgid_has_fsmapping() argument
188 return gid_valid(from_vfsgid(idmap, fs_userns, vfsgid)); in vfsgid_has_fsmapping()
192 vfsgid_t vfsgid) in vfsgid_has_mapping() argument
194 return from_kgid(userns, AS_KGIDT(vfsgid)) != (gid_t)-1; in vfsgid_has_mapping()
205 static inline kgid_t vfsgid_into_kgid(vfsgid_t vfsgid) in vfsgid_into_kgid() argument
207 return AS_KGIDT(vfsgid); in vfsgid_into_kgid()
A Dfs.h1991 const struct inode *inode, vfsgid_t vfsgid);
/linux/fs/
A Dmnt_idmapping.c179 struct user_namespace *fs_userns, vfsgid_t vfsgid) in from_vfsgid() argument
184 return AS_KGIDT(vfsgid); in from_vfsgid()
187 gid = map_id_up(&idmap->gid_map, __vfsgid_val(vfsgid)); in from_vfsgid()
206 int vfsgid_in_group_p(vfsgid_t vfsgid) in vfsgid_in_group_p() argument
208 return in_group_p(AS_KGIDT(vfsgid)); in vfsgid_in_group_p()
211 int vfsgid_in_group_p(vfsgid_t vfsgid) in vfsgid_in_group_p() argument
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()
193 vfsgid_t vfsgid; in setattr_prepare() local
199 vfsgid = attr->ia_vfsgid; in setattr_prepare()
201 vfsgid = i_gid_into_vfsgid(idmap, inode); in setattr_prepare()
204 if (!in_group_or_capable(idmap, inode, vfsgid)) in setattr_prepare()
A Dposix_acl.c382 vfsgid_t vfsgid; in posix_acl_permission() local
401 vfsgid = i_gid_into_vfsgid(idmap, inode); in posix_acl_permission()
402 if (vfsgid_in_group_p(vfsgid)) { in posix_acl_permission()
409 vfsgid = make_vfsgid(idmap, fs_userns, in posix_acl_permission()
411 if (vfsgid_in_group_p(vfsgid)) { in posix_acl_permission()
898 vfsgid_t vfsgid; in vfs_posix_acl_to_xattr() local
922 vfsgid = make_vfsgid(idmap, fs_userns, acl_e->e_gid); in vfs_posix_acl_to_xattr()
924 caller_userns, vfsgid_into_kgid(vfsgid))); in vfs_posix_acl_to_xattr()
A Dexec.c1619 vfsgid_t vfsgid; in bprm_fill_uid() local
1640 vfsgid = i_gid_into_vfsgid(idmap, inode); in bprm_fill_uid()
1650 !vfsgid_has_mapping(bprm->cred->user_ns, vfsgid)) in bprm_fill_uid()
1660 bprm->cred->egid = vfsgid_into_kgid(vfsgid); in bprm_fill_uid()
A Dinternal.h204 const struct inode *inode, vfsgid_t vfsgid);
A Dstat.c50 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in generic_fillattr() local
57 stat->gid = vfsgid_into_kgid(vfsgid); in generic_fillattr()
A Dinode.c2682 const struct inode *inode, vfsgid_t vfsgid) in in_group_or_capable() argument
2684 if (vfsgid_in_group_p(vfsgid)) in in_group_or_capable()
A Dnamei.c375 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in acl_permission_check() local
376 if (vfsgid_in_group_p(vfsgid)) in acl_permission_check()
/linux/fs/smb/server/
A Dsmbacl.h120 vfsgid_t vfsgid; in posix_acl_gid_translate() local
123 vfsgid = make_vfsgid(idmap, &init_user_ns, pace->e_gid); in posix_acl_gid_translate()
126 return from_kgid(&init_user_ns, vfsgid_into_kgid(vfsgid)); in posix_acl_gid_translate()
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()
A Doplock.c1698 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in create_posix_rsp_buf() local
1742 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)), in create_posix_rsp_buf()
A Dsmb2pdu.c2638 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in ksmbd_acls_fattr() local
2641 fattr->cf_gid = vfsgid_into_kgid(vfsgid); in ksmbd_acls_fattr()
5141 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in find_file_posix_info() local
5175 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)), in find_file_posix_info()
/linux/fs/xfs/
A Dxfs_itable.c70 vfsgid_t vfsgid; in xfs_bulkstat_one_int() local
98 vfsgid = i_gid_into_vfsgid(idmap, inode); in xfs_bulkstat_one_int()
114 buf->bs_gid = from_kgid(sb_userns, vfsgid_into_kgid(vfsgid)); in xfs_bulkstat_one_int()
A Dxfs_iops.c585 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in xfs_vn_getattr() local
597 stat->gid = vfsgid_into_kgid(vfsgid); in xfs_vn_getattr()
/linux/fs/overlayfs/
A Dinode.c355 vfsgid_t vfsgid; in ovl_idmap_posix_acl() local
364 vfsgid = make_vfsgid(idmap, fs_userns, e->e_gid); in ovl_idmap_posix_acl()
365 e->e_gid = vfsgid_into_kgid(vfsgid); in ovl_idmap_posix_acl()
A Dutil.c1518 vfsgid_t vfsgid; in ovl_copyattr() local
1525 vfsgid = i_gid_into_vfsgid(real_idmap, realinode); in ovl_copyattr()
1528 inode->i_gid = vfsgid_into_kgid(vfsgid); in ovl_copyattr()
/linux/security/integrity/ima/
A Dima_policy.c83 static inline bool vfsgid_gt_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_gt_kgid() argument
85 return __vfsgid_val(vfsgid) > __kgid_val(kgid); in vfsgid_gt_kgid()
93 static inline bool vfsgid_lt_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_lt_kgid() argument
95 return __vfsgid_val(vfsgid) < __kgid_val(kgid); in vfsgid_lt_kgid()
113 …bool (*fgroup_op)(vfsgid_t vfsgid, kgid_t rule_gid); /* vfsgid_eq_kgid(), vfsgid_gt_kgid(), vfsgid…
/linux/fs/fuse/
A Ddir.c556 vfsgid_t vfsgid = make_vfsgid(idmap, fc->user_ns, kgid); in get_create_supp_group() local
561 if (parent_gid == (gid_t) -1 || vfsgid_eq_kgid(vfsgid, current_fsgid()) || in get_create_supp_group()
562 !vfsgid_in_group_p(vfsgid)) in get_create_supp_group()
1146 vfsgid_t vfsgid = make_vfsgid(idmap, fc->user_ns, in fuse_fillattr() local
1154 stat->gid = vfsgid_into_kgid(vfsgid); in fuse_fillattr()
/linux/fs/bcachefs/
A Dfs.c1099 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, &inode->v); in bch2_getattr() local
1106 stat->gid = vfsgid_into_kgid(vfsgid); in bch2_getattr()

Completed in 73 milliseconds