Searched refs:mnt_userns (Results 1 – 3 of 3) sorted by relevance
286 struct mnt_idmap *alloc_mnt_idmap(struct user_namespace *mnt_userns) in alloc_mnt_idmap() argument296 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()
91 struct user_namespace *mnt_userns; member4461 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() local4715 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 …]
318 struct mnt_idmap *alloc_mnt_idmap(struct user_namespace *mnt_userns);