Home
last modified time | relevance | path

Searched refs:vfsgid_t (Results 1 – 22 of 22) sorted by relevance

/linux-6.15/include/linux/
H A Dmnt_idmapping.h21 } vfsgid_t; typedef
24 static_assert(sizeof(vfsgid_t) == sizeof(kgid_t));
39 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val()
49 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val()
60 static inline bool vfsgid_valid(vfsgid_t gid) in vfsgid_valid()
70 static inline bool vfsgid_eq(vfsgid_t left, vfsgid_t right) in vfsgid_eq()
110 #define VFSGIDT_INIT(val) (vfsgid_t){ __kgid_val(val) }
122 int vfsgid_in_group_p(vfsgid_t vfsgid);
130 vfsgid_t make_vfsgid(struct mnt_idmap *idmap,
191 vfsgid_t vfsgid) in vfsgid_has_fsmapping()
[all …]
H A Dfs.h286 vfsgid_t ia_vfsgid;
1545 static inline vfsgid_t i_gid_into_vfsgid(struct mnt_idmap *idmap, in i_gid_into_vfsgid()
2058 const struct inode *inode, vfsgid_t vfsgid);
/linux-6.15/fs/
H A Dmnt_idmapping.c18 #define VFSGIDT_INIT_RAW(val) (vfsgid_t){ val }
120 vfsgid_t make_vfsgid(struct mnt_idmap *idmap, in make_vfsgid()
180 struct user_namespace *fs_userns, vfsgid_t vfsgid) in from_vfsgid()
207 int vfsgid_in_group_p(vfsgid_t vfsgid) in vfsgid_in_group_p()
212 int vfsgid_in_group_p(vfsgid_t vfsgid) in vfsgid_in_group_p()
H A Dattr.c122 const struct inode *inode, vfsgid_t ia_vfsgid) in chgrp_ok()
124 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in chgrp_ok()
193 vfsgid_t vfsgid; in setattr_prepare()
H A Dinternal.h207 const struct inode *inode, vfsgid_t vfsgid);
H A Dposix_acl.c381 vfsgid_t vfsgid; in posix_acl_permission()
897 vfsgid_t vfsgid; in vfs_posix_acl_to_xattr()
H A Dstat.c86 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in generic_fillattr()
H A Dexec.c1649 vfsgid_t vfsgid; in bprm_fill_uid()
H A Dinode.c2872 const struct inode *inode, vfsgid_t vfsgid) in in_group_or_capable()
H A Dnamei.c433 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in acl_permission_check()
/linux-6.15/fs/smb/server/
H A Dsmbacl.h120 vfsgid_t vfsgid; in posix_acl_gid_translate()
H A Dndr.c349 vfsgid_t vfsgid; in ndr_encode_posix_acl()
H A Doplock.c1694 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in create_posix_rsp_buf()
H A Dsmb2pdu.c2654 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in ksmbd_acls_fattr()
5212 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in find_file_posix_info()
/linux-6.15/Documentation/filesystems/
H A Didmappings.rst652 ``vfsuid_t`` and ``vfsgid_t`` types.
663 gid_t <--> kgid_t <--> vfsgid_t
665 Whenever we report ownership based on a ``vfsuid_t`` or ``vfsgid_t`` type,
667 based on a ``vfsuid_t`` or ``vfsgid_t`` type, e.g., during ``chown()`` we can
672 a ``vfsuid_t`` or ``vfsgid_t`` based on the mount idmapping we later commit to
673 this ``vfsuid_t`` or ``vfsgid_t`` to become the new filesystem wide ownership.
674 Thus, we are turning the ``vfsuid_t`` or ``vfsgid_t`` into a global ``kuid_t``
681 and ``vfsgid_t`` is specific to an idmapped mount.
683 We already noted that ``vfsuid_t`` and ``vfsgid_t`` types are generated based
686 ``vfsuid_t`` or ``vfsgid_t`` types or mount idmappings to generate ``kuid_t``
[all …]
/linux-6.15/fs/xfs/
H A Dxfs_itable.c78 vfsgid_t vfsgid; in xfs_bulkstat_one_int()
H A Dxfs_iops.c628 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in xfs_vn_getattr()
/linux-6.15/security/integrity/ima/
H A Dima_policy.c83 static inline bool vfsgid_gt_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_gt_kgid()
93 static inline bool vfsgid_lt_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_lt_kgid()
113 …bool (*fgroup_op)(vfsgid_t vfsgid, kgid_t rule_gid); /* vfsgid_eq_kgid(), vfsgid_gt_kgid(), vfsgid…
/linux-6.15/fs/overlayfs/
H A Dinode.c355 vfsgid_t vfsgid; in ovl_idmap_posix_acl()
H A Dutil.c1526 vfsgid_t vfsgid; in ovl_copyattr()
/linux-6.15/fs/fuse/
H A Ddir.c557 vfsgid_t vfsgid = make_vfsgid(idmap, fc->user_ns, kgid); in get_create_supp_group()
1173 vfsgid_t vfsgid = make_vfsgid(idmap, fc->user_ns, in fuse_fillattr()
/linux-6.15/fs/bcachefs/
H A Dfs.c1181 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, &inode->v); in bch2_getattr()