Searched refs:ns_capable (Results 1 – 15 of 15) sorted by relevance
/kernel/cgroup/ |
D | namespace.c | 66 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()
|
D | cgroup-v1.c | 518 !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/ |
D | capability.c | 395 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()
|
D | utsname.c | 145 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()
|
D | pid_namespace.c | 398 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()
|
D | nsproxy.c | 164 } 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()
|
D | ucount.c | 48 if (ns_capable(user_ns, CAP_SYS_RESOURCE)) in set_permissions()
|
D | user_namespace.c | 1195 if (ns_capable(ns->parent, cap_setid) && in new_idmap_permitted() 1354 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in userns_install()
|
D | sys.c | 180 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()
|
D | reboot.c | 710 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT)) in SYSCALL_DEFINE4()
|
D | ptrace.c | 282 return ns_capable(ns, CAP_SYS_PTRACE); in ptrace_has_cap()
|
D | signal.c | 835 ns_capable(tcred->user_ns, CAP_KILL); in kill_ok_by_cred()
|
/kernel/time/ |
D | namespace.c | 294 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/ |
D | core.c | 8404 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) { in sched_setaffinity()
|
/kernel/events/ |
D | core.c | 12239 is_capable &= ns_capable(__task_cred(task)->user_ns, CAP_KILL); in perf_check_permission()
|