Home
last modified time | relevance | path

Searched refs:vfsuid_t (Results 1 – 24 of 24) sorted by relevance

/openbmc/linux/include/linux/
H A Dmnt_idmapping.h16 } 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 Dfs.h243 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 Dmnt_idmapping.c96 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 Dattr.c99 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 Dposix_acl.c382 vfsuid_t vfsuid; in posix_acl_permission()
898 vfsuid_t vfsuid; in vfs_posix_acl_to_xattr()
H A Dstat.c49 vfsuid_t vfsuid = i_uid_into_vfsuid(idmap, inode); in generic_fillattr()
H A Dnamei.c343 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 Dinode.c2444 vfsuid_t vfsuid; in inode_owner_or_capable()
H A Dexec.c1608 vfsuid_t vfsuid; in bprm_fill_uid()
H A Dlocks.c1874 vfsuid_t vfsuid = i_uid_into_vfsuid(file_mnt_idmap(filp), inode); in generic_setlease()
/openbmc/linux/security/
H A Dcommoncap.c331 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 Dsmbacl.h217 vfsuid_t vfsuid; in posix_acl_uid_translate()
H A Dndr.c348 vfsuid_t vfsuid; in ndr_encode_posix_acl()
H A Doplock.c1697 vfsuid_t vfsuid = i_uid_into_vfsuid(idmap, inode); in create_posix_rsp_buf()
H A Dsmb2pdu.c2638 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 Didmappings.rst652 ``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 Dlsm.c236 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 Dfile.c491 vfsuid_t vfsuid = i_uid_into_vfsuid(file_mnt_idmap(file), in __file_path_perm()
H A Ddomain.c881 vfsuid_t vfsuid = i_uid_into_vfsuid(file_mnt_idmap(bprm->file), in apparmor_bprm_creds_for_exec()
/openbmc/linux/fs/xfs/
H A Dxfs_itable.c69 vfsuid_t vfsuid; in xfs_bulkstat_one_int()
H A Dxfs_iops.c560 vfsuid_t vfsuid = i_uid_into_vfsuid(idmap, inode); in xfs_vn_getattr()
/openbmc/linux/security/integrity/ima/
H A Dima_policy.c78 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 Dinode.c479 vfsuid_t vfsuid; in ovl_idmap_posix_acl()
H A Dutil.c1400 vfsuid_t vfsuid; in ovl_copyattr()