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()
866 const struct user_namespace *file_ns = file->f_cred->user_ns; in verify_root_map()
1305 struct user_namespace *user_ns; in userns_get() local
1308 user_ns = get_user_ns(__task_cred(task)->user_ns); in userns_get()
1311 return user_ns ? &user_ns->ns : NULL; in userns_get()
1321 struct user_namespace *user_ns = to_user_ns(ns); in userns_install() local
1327 if (user_ns == current_user_ns()) in userns_install()
1337 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in userns_install()
1344 put_user_ns(cred->user_ns); in userns_install()
1345 set_cred_user_ns(cred, get_user_ns(user_ns)); in userns_install()