Home
last modified time | relevance | path

Searched refs:mnt_userns (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/fs/
Dmnt_idmapping.c286 struct mnt_idmap *alloc_mnt_idmap(struct user_namespace *mnt_userns) in alloc_mnt_idmap() argument
296 ret = copy_mnt_idmap(&mnt_userns->uid_map, &idmap->uid_map); in alloc_mnt_idmap()
298 ret = copy_mnt_idmap(&mnt_userns->gid_map, &idmap->gid_map); in alloc_mnt_idmap()
Dnamespace.c91 struct user_namespace *mnt_userns; member
4461 if (kattr->mnt_userns == m->mnt_sb->s_user_ns) in can_idmap_mount()
4604 if (kattr->mnt_userns) { in do_mount_setattr()
4607 mnt_idmap = alloc_mnt_idmap(kattr->mnt_userns); in do_mount_setattr()
4675 struct user_namespace *mnt_userns; in build_mount_idmapped() local
4715 mnt_userns = container_of(ns, struct user_namespace, ns); in build_mount_idmapped()
4716 if (mnt_userns == &init_user_ns) { in build_mount_idmapped()
4722 if (!ns_capable(mnt_userns, CAP_SYS_ADMIN)) { in build_mount_idmapped()
4727 kattr->mnt_userns = get_user_ns(mnt_userns); in build_mount_idmapped()
4803 put_user_ns(kattr->mnt_userns); in finish_mount_kattr()
[all …]
Dinternal.h318 struct mnt_idmap *alloc_mnt_idmap(struct user_namespace *mnt_userns);