/openbmc/linux/include/linux/ |
H A D | mnt_idmapping.h | 16 } vfsuid_t; typedef 22 static_assert(sizeof(vfsuid_t) == sizeof(kuid_t)); 28 static inline uid_t __vfsuid_val(vfsuid_t uid) in __vfsuid_val() 38 static inline uid_t __vfsuid_val(vfsuid_t uid) in __vfsuid_val() 49 static inline bool vfsuid_valid(vfsuid_t uid) in vfsuid_valid() 59 static inline bool vfsuid_eq(vfsuid_t left, vfsuid_t right) in vfsuid_eq() 103 #define VFSUIDT_INIT(val) (vfsuid_t){ __kuid_val(val) } 118 vfsuid_t make_vfsuid(struct mnt_idmap *idmap, 144 vfsuid_t vfsuid) in vfsuid_has_fsmapping() 150 vfsuid_t vfsuid) in vfsuid_has_mapping() [all …]
|
H A D | fs.h | 243 vfsuid_t ia_vfsuid; 1362 static inline vfsuid_t i_uid_into_vfsuid(struct mnt_idmap *idmap, in i_uid_into_vfsuid()
|
/openbmc/linux/fs/ |
H A D | mnt_idmapping.c | 96 vfsuid_t make_vfsuid(struct mnt_idmap *idmap, in make_vfsuid() 165 struct user_namespace *fs_userns, vfsuid_t vfsuid) in from_vfsuid()
|
H A D | attr.c | 99 const struct inode *inode, vfsuid_t ia_vfsuid) in chown_ok() 101 vfsuid_t vfsuid = i_uid_into_vfsuid(idmap, inode); in chown_ok() 129 vfsuid_t vfsuid = i_uid_into_vfsuid(idmap, inode); in chgrp_ok()
|
H A D | posix_acl.c | 382 vfsuid_t vfsuid; in posix_acl_permission() 898 vfsuid_t vfsuid; in vfs_posix_acl_to_xattr()
|
H A D | stat.c | 49 vfsuid_t vfsuid = i_uid_into_vfsuid(idmap, inode); in generic_fillattr()
|
H A D | namei.c | 343 vfsuid_t vfsuid; in acl_permission_check() 588 vfsuid_t dir_vfsuid; 1105 vfsuid_t vfsuid; in may_follow_link() 1242 vfsuid_t dir_vfsuid = nd->dir_vfsuid; in may_create_in_sticky()
|
H A D | inode.c | 2444 vfsuid_t vfsuid; in inode_owner_or_capable()
|
H A D | exec.c | 1608 vfsuid_t vfsuid; in bprm_fill_uid()
|
H A D | locks.c | 1874 vfsuid_t vfsuid = i_uid_into_vfsuid(file_mnt_idmap(filp), inode); in generic_setlease()
|
/openbmc/linux/security/ |
H A D | commoncap.c | 331 static bool rootid_owns_currentns(vfsuid_t rootvfsuid) in rootid_owns_currentns() 386 vfsuid_t vfsroot; in cap_inode_getsecurity() 493 static vfsuid_t rootid_from_xattr(const void *value, size_t size, in rootid_from_xattr() 540 vfsuid_t vfsrootid; in cap_convert_nscap() 645 vfsuid_t rootvfsuid; in get_vfs_caps_from_disk()
|
/openbmc/linux/fs/smb/server/ |
H A D | smbacl.h | 217 vfsuid_t vfsuid; in posix_acl_uid_translate()
|
H A D | ndr.c | 348 vfsuid_t vfsuid; in ndr_encode_posix_acl()
|
H A D | oplock.c | 1697 vfsuid_t vfsuid = i_uid_into_vfsuid(idmap, inode); in create_posix_rsp_buf()
|
H A D | smb2pdu.c | 2638 vfsuid_t vfsuid = i_uid_into_vfsuid(idmap, inode); in ksmbd_acls_fattr() 5141 vfsuid_t vfsuid = i_uid_into_vfsuid(idmap, inode); in find_file_posix_info()
|
/openbmc/linux/Documentation/filesystems/ |
H A D | idmappings.rst | 652 ``vfsuid_t`` and ``vfsgid_t`` types. 662 uid_t <--> kuid_t <--> vfsuid_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`` 680 ``kuid_t`` and ``kgid_t`` must be used. Ownership expressed via ``vfsuid_t`` 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 …]
|
/openbmc/linux/security/apparmor/ |
H A D | lsm.c | 236 vfsuid_t vfsuid = i_uid_into_vfsuid(mnt_idmap(path->mnt), in common_perm_cond() 282 vfsuid_t vfsuid; in common_perm_rm() 388 vfsuid_t vfsuid; in apparmor_path_rename() 474 vfsuid_t vfsuid; in apparmor_file_open()
|
H A D | file.c | 491 vfsuid_t vfsuid = i_uid_into_vfsuid(file_mnt_idmap(file), in __file_path_perm()
|
H A D | domain.c | 881 vfsuid_t vfsuid = i_uid_into_vfsuid(file_mnt_idmap(bprm->file), in apparmor_bprm_creds_for_exec()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_itable.c | 69 vfsuid_t vfsuid; in xfs_bulkstat_one_int()
|
H A D | xfs_iops.c | 560 vfsuid_t vfsuid = i_uid_into_vfsuid(idmap, inode); in xfs_vn_getattr()
|
/openbmc/linux/security/integrity/ima/ |
H A D | ima_policy.c | 78 static inline bool vfsuid_gt_kuid(vfsuid_t vfsuid, kuid_t kuid) in vfsuid_gt_kuid() 88 static inline bool vfsuid_lt_kuid(vfsuid_t vfsuid, kuid_t kuid) in vfsuid_lt_kuid() 112 …bool (*fowner_op)(vfsuid_t vfsuid, kuid_t rule_uid); /* vfsuid_eq_kuid(), vfsuid_gt_kuid(), vfsuid…
|
/openbmc/linux/fs/overlayfs/ |
H A D | inode.c | 479 vfsuid_t vfsuid; in ovl_idmap_posix_acl()
|
H A D | util.c | 1400 vfsuid_t vfsuid; in ovl_copyattr()
|