Lines Matching refs:user_ns
42 static void set_cred_user_ns(struct cred *cred, struct user_namespace *user_ns) in set_cred_user_ns() argument
58 cred->user_ns = user_ns; in set_cred_user_ns()
71 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns()
1242 struct user_namespace *user_ns; in userns_get() local
1245 user_ns = get_user_ns(__task_cred(task)->user_ns); in userns_get()
1248 return user_ns ? &user_ns->ns : NULL; in userns_get()
1258 struct user_namespace *user_ns = to_user_ns(ns); in userns_install() local
1264 if (user_ns == current_user_ns()) in userns_install()
1274 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in userns_install()
1281 put_user_ns(cred->user_ns); in userns_install()
1282 set_cred_user_ns(cred, get_user_ns(user_ns)); in userns_install()