Home
last modified time | relevance | path

Searched refs:fs_userns (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/fs/
Dmnt_idmapping.c70 const struct user_namespace *fs_userns) in no_idmapping() argument
72 return initial_idmapping(mnt_userns) || mnt_userns == fs_userns; in no_idmapping()
97 struct user_namespace *fs_userns, in make_vfsuid() argument
103 if (no_idmapping(mnt_userns, fs_userns)) in make_vfsuid()
105 if (initial_idmapping(fs_userns)) in make_vfsuid()
108 uid = from_kuid(fs_userns, kuid); in make_vfsuid()
136 struct user_namespace *fs_userns, kgid_t kgid) in make_vfsgid() argument
141 if (no_idmapping(mnt_userns, fs_userns)) in make_vfsgid()
143 if (initial_idmapping(fs_userns)) in make_vfsgid()
146 gid = from_kgid(fs_userns, kgid); in make_vfsgid()
[all …]
Dposix_acl.c380 struct user_namespace *fs_userns = i_user_ns(inode); in posix_acl_permission() local
396 vfsuid = make_vfsuid(idmap, fs_userns, in posix_acl_permission()
410 vfsgid = make_vfsgid(idmap, fs_userns, in posix_acl_permission()
896 struct user_namespace *fs_userns, *caller_userns; in vfs_posix_acl_to_xattr() local
910 fs_userns = i_user_ns(inode); in vfs_posix_acl_to_xattr()
918 vfsuid = make_vfsuid(idmap, fs_userns, acl_e->e_uid); in vfs_posix_acl_to_xattr()
923 vfsgid = make_vfsgid(idmap, fs_userns, acl_e->e_gid); in vfs_posix_acl_to_xattr()
1057 struct user_namespace *fs_userns, in vfs_set_acl_idmapped_mnt() argument
1065 acl_e->e_uid = from_vfsuid(idmap, fs_userns, in vfs_set_acl_idmapped_mnt()
1069 acl_e->e_gid = from_vfsgid(idmap, fs_userns, in vfs_set_acl_idmapped_mnt()
Dopen.c751 struct user_namespace *fs_userns; in chown_common() local
763 fs_userns = i_user_ns(inode); in chown_common()
780 from_vfsuid(idmap, fs_userns, newattrs.ia_vfsuid), in chown_common()
781 from_vfsgid(idmap, fs_userns, newattrs.ia_vfsgid)); in chown_common()
Dnamespace.c4291 struct user_namespace *fs_userns = m->mnt_sb->s_user_ns; in can_idmap_mount() local
4316 if (!ns_capable(fs_userns, CAP_SYS_ADMIN)) in can_idmap_mount()
/linux-6.6.21/include/linux/
Dmnt_idmapping.h119 struct user_namespace *fs_userns, kuid_t kuid);
122 struct user_namespace *fs_userns, kgid_t kgid);
125 struct user_namespace *fs_userns, vfsuid_t vfsuid);
128 struct user_namespace *fs_userns, vfsgid_t vfsgid);
143 struct user_namespace *fs_userns, in vfsuid_has_fsmapping() argument
146 return uid_valid(from_vfsuid(idmap, fs_userns, vfsuid)); in vfsuid_has_fsmapping()
181 struct user_namespace *fs_userns, in vfsgid_has_fsmapping() argument
184 return gid_valid(from_vfsgid(idmap, fs_userns, vfsgid)); in vfsgid_has_fsmapping()
220 struct user_namespace *fs_userns) in mapped_fsuid() argument
222 return from_vfsuid(idmap, fs_userns, VFSUIDT_INIT(current_fsuid())); in mapped_fsuid()
[all …]
Dfs.h1499 struct user_namespace *fs_userns = sb->s_user_ns; in fsuidgid_has_mapping() local
1503 kuid = mapped_fsuid(idmap, fs_userns); in fsuidgid_has_mapping()
1506 kgid = mapped_fsgid(idmap, fs_userns); in fsuidgid_has_mapping()
1509 return kuid_has_mapping(fs_userns, kuid) && in fsuidgid_has_mapping()
1510 kgid_has_mapping(fs_userns, kgid); in fsuidgid_has_mapping()
/linux-6.6.21/fs/overlayfs/
Dinode.c476 struct user_namespace *fs_userns = i_user_ns(realinode); in ovl_idmap_posix_acl() local
485 vfsuid = make_vfsuid(idmap, fs_userns, e->e_uid); in ovl_idmap_posix_acl()
489 vfsgid = make_vfsgid(idmap, fs_userns, e->e_gid); in ovl_idmap_posix_acl()