Searched refs:ns_capable (Results 1 – 13 of 13) sorted by relevance
/kernel/cgroup/ |
D | namespace.c | 66 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in copy_cgroup_ns() 102 if (!ns_capable(current_user_ns(), CAP_SYS_ADMIN) || in cgroupns_install() 103 !ns_capable(cgroup_ns->user_ns, CAP_SYS_ADMIN)) in cgroupns_install()
|
D | cgroup-v1.c | 517 !ns_capable(tcred->user_ns, CAP_SYS_NICE)) in __cgroup1_procs_write() 1208 if (!ns_capable(ctx->ns->user_ns, CAP_SYS_ADMIN)) in cgroup1_get_tree()
|
/kernel/ |
D | capability.c | 394 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() function 398 EXPORT_SYMBOL(ns_capable); 449 return ns_capable(&init_user_ns, cap); in capable() 506 return ns_capable(ns, cap) && privileged_wrt_inode_uidgid(ns, inode); in capable_wrt_inode_uidgid()
|
D | utsname.c | 147 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) || in utsns_install() 148 !ns_capable(current_user_ns(), CAP_SYS_ADMIN)) in utsns_install()
|
D | pid_namespace.c | 274 if (write && !ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN)) in pid_ns_ctl_handler() 388 if (!ns_capable(new->user_ns, CAP_SYS_ADMIN) || in pidns_install() 389 !ns_capable(current_user_ns(), CAP_SYS_ADMIN)) in pidns_install()
|
D | nsproxy.c | 147 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in copy_namespaces() 199 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in unshare_nsproxy_namespaces()
|
D | sys.c | 165 if (ns_capable(pcred->user_ns, CAP_SYS_NICE)) in set_one_prio_perm() 377 ns_capable(old->user_ns, CAP_SETGID)) in __sys_setregid() 386 ns_capable(old->user_ns, CAP_SETGID)) in __sys_setregid() 432 if (ns_capable(old->user_ns, CAP_SETGID)) in __sys_setgid() 740 if (!ns_capable(old->user_ns, CAP_SETGID)) { in __sys_setresgid() 863 ns_capable(old->user_ns, CAP_SETGID)) { in __sys_setfsgid() 1312 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2() 1365 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2() 1602 if (!id_match && !ns_capable(tcred->user_ns, CAP_SYS_RESOURCE)) in check_prlimit_permission() 2000 if (!ns_capable(current_user_ns(), CAP_SYS_ADMIN)) in prctl_set_mm_map()
|
D | groups.c | 181 return ns_capable(user_ns, CAP_SETGID) && in may_setgroups()
|
D | ucount.c | 42 if (ns_capable(user_ns, CAP_SYS_RESOURCE)) in set_permissions()
|
D | reboot.c | 320 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT)) in SYSCALL_DEFINE4()
|
D | user_namespace.c | 1115 if (ns_capable(ns->parent, cap_setid) && in new_idmap_permitted() 1274 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in userns_install()
|
D | signal.c | 815 ns_capable(tcred->user_ns, CAP_KILL); in kill_ok_by_cred()
|
/kernel/sched/ |
D | core.c | 5419 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) { in sched_setaffinity()
|