Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/
H A Dmnt_idmapping.h20 } vfsgid_t; typedef
23 static_assert(sizeof(vfsgid_t) == sizeof(kgid_t));
25 static_assert(offsetof(vfsgid_t, val) == offsetof(kgid_t, val));
33 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val()
43 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val()
54 static inline bool vfsgid_valid(vfsgid_t gid) in vfsgid_valid()
64 static inline bool vfsgid_eq(vfsgid_t left, vfsgid_t right) in vfsgid_eq()
94 static inline bool vfsgid_eq_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_eq_kgid()
104 #define VFSGIDT_INIT(val) (vfsgid_t){ __kgid_val(val) }
116 int vfsgid_in_group_p(vfsgid_t vfsgid);
[all …]
H A Dfs.h247 vfsgid_t ia_vfsgid;
1414 static inline vfsgid_t i_gid_into_vfsgid(struct mnt_idmap *idmap, in i_gid_into_vfsgid()
/openbmc/linux/fs/
H A Dmnt_idmapping.c135 vfsgid_t make_vfsgid(struct mnt_idmap *idmap, in make_vfsgid()
193 struct user_namespace *fs_userns, vfsgid_t vfsgid) in from_vfsgid()
219 int vfsgid_in_group_p(vfsgid_t vfsgid) in vfsgid_in_group_p()
224 int vfsgid_in_group_p(vfsgid_t vfsgid) in vfsgid_in_group_p()
H A Dattr.c126 const struct inode *inode, vfsgid_t ia_vfsgid) in chgrp_ok()
128 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in chgrp_ok()
197 vfsgid_t vfsgid; in setattr_prepare()
H A Dinternal.h190 const struct inode *inode, vfsgid_t vfsgid);
H A Dposix_acl.c383 vfsgid_t vfsgid; in posix_acl_permission()
899 vfsgid_t vfsgid; in vfs_posix_acl_to_xattr()
H A Dstat.c50 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in generic_fillattr()
H A Dexec.c1632 vfsgid_t vfsgid; in bprm_fill_uid()
H A Dinode.c2604 const struct inode *inode, vfsgid_t vfsgid) in in_group_or_capable()
H A Dnamei.c369 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in acl_permission_check()
/openbmc/linux/fs/smb/server/
H A Dsmbacl.h229 vfsgid_t vfsgid; in posix_acl_gid_translate()
H A Dndr.c349 vfsgid_t vfsgid; in ndr_encode_posix_acl()
H A Doplock.c1698 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in create_posix_rsp_buf()
H A Dsmb2pdu.c2642 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in ksmbd_acls_fattr()
5175 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in find_file_posix_info()
/openbmc/linux/Documentation/filesystems/
H A Didmappings.rst652 ``vfsuid_t`` and ``vfsgid_t`` types.
655 ``vfsuid_t`` and ``vfsgid_t`` types and we will be able to rely on the compiler
658 The ``vfsuid_t`` and ``vfsgid_t`` types are often mapped from and to ``kuid_t``
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.
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_itable.c70 vfsgid_t vfsgid; in xfs_bulkstat_one_int()
H A Dxfs_iops.c562 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in xfs_vn_getattr()
/openbmc/linux/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…
/openbmc/linux/fs/overlayfs/
H A Dutil.c1404 vfsgid_t vfsgid; in ovl_copyattr()
H A Dinode.c480 vfsgid_t vfsgid; in ovl_idmap_posix_acl()
/openbmc/linux/fs/f2fs/
H A Dfile.c952 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in __setattr_copy()