Home
last modified time | relevance | path

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

/kernel/cgroup/
Dnamespace.c66 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()
Dcgroup-v1.c517 !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/
Dcapability.c394 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()
Dutsname.c147 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) || in utsns_install()
148 !ns_capable(current_user_ns(), CAP_SYS_ADMIN)) in utsns_install()
Dpid_namespace.c274 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()
Dnsproxy.c147 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in copy_namespaces()
199 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in unshare_nsproxy_namespaces()
Dsys.c165 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()
Dgroups.c181 return ns_capable(user_ns, CAP_SETGID) && in may_setgroups()
Ducount.c42 if (ns_capable(user_ns, CAP_SYS_RESOURCE)) in set_permissions()
Dreboot.c320 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT)) in SYSCALL_DEFINE4()
Duser_namespace.c1115 if (ns_capable(ns->parent, cap_setid) && in new_idmap_permitted()
1274 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in userns_install()
Dsignal.c815 ns_capable(tcred->user_ns, CAP_KILL); in kill_ok_by_cred()
/kernel/sched/
Dcore.c5419 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) { in sched_setaffinity()