Home
last modified time | relevance | path

Searched refs:vfsgid (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-6.6/include/linux/
H A Dmnt_idmapping.h85 * vfsgid_eq_kgid - check whether kgid and vfsgid have the same value
86 * @vfsgid: the vfsgid to compare
89 * Check whether @vfsgid and @kgid have the same values.
91 * Return: true if @vfsgid and @kgid have the same value, false if not.
94 static inline bool vfsgid_eq_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_eq_kgid() argument
96 return vfsgid_valid(vfsgid) && __vfsgid_val(vfsgid) == __kgid_val(kgid); in vfsgid_eq_kgid()
116 int vfsgid_in_group_p(vfsgid_t vfsgid);
128 struct user_namespace *fs_userns, vfsgid_t vfsgid);
180 vfsgid_has_fsmapping(struct mnt_idmap *idmap, struct user_namespace *fs_userns, vfsgid_t vfsgid) vfsgid_has_fsmapping() argument
187 vfsgid_has_mapping(struct user_namespace *userns, vfsgid_t vfsgid) vfsgid_has_mapping() argument
201 vfsgid_into_kgid(vfsgid_t vfsgid) vfsgid_into_kgid() argument
[all...]
/kernel/linux/linux-6.6/fs/
H A Dmnt_idmapping.c182 * from_vfsgid - map a vfsgid into the filesystem idmapping
185 * @vfsgid : vfsgid to be mapped
187 * Map @vfsgid into the filesystem idmapping. This function has to be used in
188 * order to e.g. write @vfsgid to inode->i_gid.
190 * Return: @vfsgid mapped into the filesystem idmapping
193 struct user_namespace *fs_userns, vfsgid_t vfsgid) in from_vfsgid()
199 return AS_KGIDT(vfsgid); in from_vfsgid()
200 gid = from_kgid(mnt_userns, AS_KGIDT(vfsgid)); in from_vfsgid()
212 * @vfsgid
192 from_vfsgid(struct mnt_idmap *idmap, struct user_namespace *fs_userns, vfsgid_t vfsgid) from_vfsgid() argument
219 vfsgid_in_group_p(vfsgid_t vfsgid) vfsgid_in_group_p() argument
224 vfsgid_in_group_p(vfsgid_t vfsgid) vfsgid_in_group_p() argument
[all...]
H A Dattr.c128 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in chgrp_ok() local
131 if (vfsgid_eq(ia_vfsgid, vfsgid)) in chgrp_ok()
138 if (!vfsgid_valid(vfsgid) && in chgrp_ok()
197 vfsgid_t vfsgid; in setattr_prepare() local
203 vfsgid = attr->ia_vfsgid; in setattr_prepare()
205 vfsgid = i_gid_into_vfsgid(idmap, inode); in setattr_prepare()
208 if (!in_group_or_capable(idmap, inode, vfsgid)) in setattr_prepare()
H A Dposix_acl.c383 vfsgid_t vfsgid; in posix_acl_permission() local
402 vfsgid = i_gid_into_vfsgid(idmap, inode); in posix_acl_permission()
403 if (vfsgid_in_group_p(vfsgid)) { in posix_acl_permission()
410 vfsgid = make_vfsgid(idmap, fs_userns, in posix_acl_permission()
412 if (vfsgid_in_group_p(vfsgid)) { in posix_acl_permission()
899 vfsgid_t vfsgid; in vfs_posix_acl_to_xattr() local
923 vfsgid = make_vfsgid(idmap, fs_userns, acl_e->e_gid); in vfs_posix_acl_to_xattr()
925 caller_userns, vfsgid_into_kgid(vfsgid))); in vfs_posix_acl_to_xattr()
H A Dinternal.h190 const struct inode *inode, vfsgid_t vfsgid);
H 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()
H A Dexec.c1611 vfsgid_t vfsgid; in bprm_fill_uid() local
1631 vfsgid = i_gid_into_vfsgid(idmap, inode); in bprm_fill_uid()
1636 !vfsgid_has_mapping(bprm->cred->user_ns, vfsgid)) in bprm_fill_uid()
1646 bprm->cred->egid = vfsgid_into_kgid(vfsgid); in bprm_fill_uid()
H A Dinode.c2552 * @vfsgid: the new/current vfsgid of @inode
2554 * Check wether @vfsgid is in the caller's group list or if the caller is
2561 const struct inode *inode, vfsgid_t vfsgid) in in_group_or_capable()
2563 if (vfsgid_in_group_p(vfsgid)) in in_group_or_capable()
2560 in_group_or_capable(struct mnt_idmap *idmap, const struct inode *inode, vfsgid_t vfsgid) in_group_or_capable() argument
H A Dnamei.c369 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in acl_permission_check() local
370 if (vfsgid_in_group_p(vfsgid)) in acl_permission_check()
/kernel/linux/linux-6.6/fs/smb/server/
H A Dsmbacl.h229 vfsgid_t vfsgid; in posix_acl_gid_translate() local
232 vfsgid = make_vfsgid(idmap, &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()
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.c1711 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in create_posix_rsp_buf() local
1755 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)), in create_posix_rsp_buf()
H A Dsmb2pdu.c2630 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in ksmbd_acls_fattr() local
2633 fattr->cf_gid = vfsgid_into_kgid(vfsgid); in ksmbd_acls_fattr()
4854 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in find_file_posix_info() local
4881 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)), in find_file_posix_info()
/kernel/linux/linux-6.6/fs/xfs/
H 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()
106 buf->bs_gid = from_kgid(sb_userns, vfsgid_into_kgid(vfsgid)); in xfs_bulkstat_one_int()
H A Dxfs_iops.c561 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in xfs_vn_getattr() local
573 stat->gid = vfsgid_into_kgid(vfsgid); in xfs_vn_getattr()
/kernel/linux/linux-6.6/security/integrity/ima/
H 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_lt_kgid() */
/kernel/linux/linux-6.6/fs/overlayfs/
H A Dinode.c480 vfsgid_t vfsgid; in ovl_idmap_posix_acl() local
489 vfsgid = make_vfsgid(idmap, fs_userns, e->e_gid); in ovl_idmap_posix_acl()
490 e->e_gid = vfsgid_into_kgid(vfsgid); in ovl_idmap_posix_acl()
H A Dutil.c1401 vfsgid_t vfsgid; in ovl_copyattr() local
1407 vfsgid = i_gid_into_vfsgid(real_idmap, realinode); in ovl_copyattr()
1410 inode->i_gid = vfsgid_into_kgid(vfsgid); in ovl_copyattr()
/kernel/linux/linux-6.6/fs/f2fs/
H A Dfile.c905 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in __setattr_copy() local
907 if (!vfsgid_in_group_p(vfsgid) && in __setattr_copy()

Completed in 42 milliseconds