Home
last modified time | relevance | path

Searched refs:ns_capable (Results 1 – 15 of 15) sorted by relevance

/kernel/cgroup/
Dnamespace.c66 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in copy_cgroup_ns()
103 if (!ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN) || in cgroupns_install()
104 !ns_capable(cgroup_ns->user_ns, CAP_SYS_ADMIN)) in cgroupns_install()
Dcgroup-v1.c518 !ns_capable(tcred->user_ns, CAP_SYS_NICE)) in __cgroup1_procs_write()
1242 if (!ns_capable(ctx->ns->user_ns, CAP_SYS_ADMIN)) in cgroup1_get_tree()
/kernel/
Dcapability.c395 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() function
399 EXPORT_SYMBOL(ns_capable);
450 return ns_capable(&init_user_ns, cap); in capable()
510 return ns_capable(ns, cap) && in capable_wrt_inode_uidgid()
Dutsname.c145 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) || in utsns_install()
146 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in utsns_install()
Dpid_namespace.c398 if (!ns_capable(new->user_ns, CAP_SYS_ADMIN) || in pidns_install()
399 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in pidns_install()
Dnsproxy.c164 } else if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in copy_namespaces()
223 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in unshare_nsproxy_namespaces()
Ducount.c48 if (ns_capable(user_ns, CAP_SYS_RESOURCE)) in set_permissions()
Duser_namespace.c1195 if (ns_capable(ns->parent, cap_setid) && in new_idmap_permitted()
1354 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in userns_install()
Dsys.c180 if (ns_capable(pcred->user_ns, CAP_SYS_NICE)) in set_one_prio_perm()
1374 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2()
1428 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2()
1673 if (!id_match && !ns_capable(tcred->user_ns, CAP_SYS_RESOURCE)) in check_prlimit_permission()
Dreboot.c710 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT)) in SYSCALL_DEFINE4()
Dptrace.c282 return ns_capable(ns, CAP_SYS_PTRACE); in ptrace_has_cap()
Dsignal.c835 ns_capable(tcred->user_ns, CAP_KILL); in kill_ok_by_cred()
/kernel/time/
Dnamespace.c294 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) || in timens_install()
295 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in timens_install()
/kernel/sched/
Dcore.c8404 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) { in sched_setaffinity()
/kernel/events/
Dcore.c12239 is_capable &= ns_capable(__task_cred(task)->user_ns, CAP_KILL); in perf_check_permission()