Searched refs:mnt_userns (Results 1 – 3 of 3) sorted by relevance
69 static inline bool no_idmapping(const struct user_namespace *mnt_userns, in no_idmapping() argument72 return initial_idmapping(mnt_userns) || mnt_userns == fs_userns; in no_idmapping()101 struct user_namespace *mnt_userns = idmap->owner; in make_vfsuid() local103 if (no_idmapping(mnt_userns, fs_userns)) in make_vfsuid()111 return VFSUIDT_INIT(make_kuid(mnt_userns, uid)); in make_vfsuid()139 struct user_namespace *mnt_userns = idmap->owner; in make_vfsgid() local141 if (no_idmapping(mnt_userns, fs_userns)) in make_vfsgid()149 return VFSGIDT_INIT(make_kgid(mnt_userns, gid)); in make_vfsgid()168 struct user_namespace *mnt_userns = idmap->owner; in from_vfsuid() local170 if (no_idmapping(mnt_userns, fs_userns)) in from_vfsuid()[all …]
84 struct user_namespace *mnt_userns; member4439 if (kattr->mnt_userns) { in do_mount_setattr()4442 mnt_idmap = alloc_mnt_idmap(kattr->mnt_userns); in do_mount_setattr()4510 struct user_namespace *mnt_userns; in build_mount_idmapped() local4550 mnt_userns = container_of(ns, struct user_namespace, ns); in build_mount_idmapped()4551 if (mnt_userns == &init_user_ns) { in build_mount_idmapped()4557 if (!ns_capable(mnt_userns, CAP_SYS_ADMIN)) { in build_mount_idmapped()4562 kattr->mnt_userns = get_user_ns(mnt_userns); in build_mount_idmapped()4638 put_user_ns(kattr->mnt_userns); in finish_mount_kattr()4639 kattr->mnt_userns = NULL; in finish_mount_kattr()
298 struct mnt_idmap *alloc_mnt_idmap(struct user_namespace *mnt_userns);