/openbmc/linux/include/linux/ |
H A D | mnt_idmapping.h | 20 } 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 D | fs.h | 247 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 D | mnt_idmapping.c | 135 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 D | attr.c | 126 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 D | internal.h | 190 const struct inode *inode, vfsgid_t vfsgid);
|
H A D | posix_acl.c | 383 vfsgid_t vfsgid; in posix_acl_permission() 899 vfsgid_t vfsgid; in vfs_posix_acl_to_xattr()
|
H A D | stat.c | 50 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in generic_fillattr()
|
H A D | exec.c | 1632 vfsgid_t vfsgid; in bprm_fill_uid()
|
H A D | inode.c | 2604 const struct inode *inode, vfsgid_t vfsgid) in in_group_or_capable()
|
H A D | namei.c | 369 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in acl_permission_check()
|
/openbmc/linux/fs/smb/server/ |
H A D | smbacl.h | 229 vfsgid_t vfsgid; in posix_acl_gid_translate()
|
H A D | ndr.c | 349 vfsgid_t vfsgid; in ndr_encode_posix_acl()
|
H A D | oplock.c | 1698 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in create_posix_rsp_buf()
|
H A D | smb2pdu.c | 2642 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 D | idmappings.rst | 652 ``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 D | xfs_itable.c | 70 vfsgid_t vfsgid; in xfs_bulkstat_one_int()
|
H A D | xfs_iops.c | 562 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in xfs_vn_getattr()
|
/openbmc/linux/security/integrity/ima/ |
H A D | ima_policy.c | 83 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 D | util.c | 1404 vfsgid_t vfsgid; in ovl_copyattr()
|
H A D | inode.c | 480 vfsgid_t vfsgid; in ovl_idmap_posix_acl()
|
/openbmc/linux/fs/f2fs/ |
H A D | file.c | 952 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); in __setattr_copy()
|