Lines Matching refs:user_ns
72 static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns, in create_pid_namespace() argument
81 if (!in_userns(parent_pid_ns->user_ns, user_ns)) in create_pid_namespace()
87 ucounts = inc_pid_namespaces(user_ns); in create_pid_namespace()
110 ns->user_ns = get_user_ns(user_ns); in create_pid_namespace()
132 put_user_ns(ns->user_ns); in delayed_free_pidns()
146 struct user_namespace *user_ns, struct pid_namespace *old_ns) in copy_pid_ns() argument
152 return create_pid_namespace(user_ns, old_ns); in copy_pid_ns()
286 if (write && !checkpoint_restore_ns_capable(pid_ns->user_ns)) in pid_ns_ctl_handler()
400 if (!ns_capable(new->user_ns, CAP_SYS_ADMIN) || in pidns_install()
401 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in pidns_install()
446 return to_pid_ns(ns)->user_ns; in pidns_owner()