Home
last modified time | relevance | path

Searched refs:capable (Results 1 – 22 of 22) sorted by relevance

/kernel/power/
Dwakelock.c192 if (!capable(CAP_BLOCK_SUSPEND)) in pm_wake_lock()
238 if (!capable(CAP_BLOCK_SUSPEND)) in pm_wake_unlock()
Duser.c204 if (!capable(CAP_SYS_ADMIN)) in snapshot_ioctl()
/kernel/
Dcapability.c429 bool capable(int cap) in capable() function
433 EXPORT_SYMBOL(capable);
Dkmod.c659 if (write && (!capable(CAP_SETPCAP) || in proc_cap_handler()
660 !capable(CAP_SYS_MODULE))) in proc_cap_handler()
Dacct.c259 if (!capable(CAP_SYS_PACCT)) in SYSCALL_DEFINE1()
Daudit.c595 if (!capable(CAP_AUDIT_CONTROL)) in audit_netlink_ok()
601 if (!capable(CAP_AUDIT_WRITE)) in audit_netlink_ok()
Dsys.c1645 !capable(CAP_SYS_RESOURCE)) in do_prlimit()
1980 if (!capable(CAP_SYS_RESOURCE)) in prctl_set_mm()
2408 !capable(CAP_SYS_NICE)) in SYSCALL_DEFINE5()
Dfork.c1264 if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_RESOURCE) && in copy_process()
Dsysctl.c2061 if (write && !capable(CAP_SYS_ADMIN)) in proc_taint()
2089 if (write && !capable(CAP_SYS_ADMIN)) in proc_dointvec_minmax_sysadmin()
Dprintk.c398 if (capable(CAP_SYSLOG)) in check_syslog_permissions()
404 if (capable(CAP_SYS_ADMIN)) { in check_syslog_permissions()
Dkexec.c942 if (!capable(CAP_SYS_BOOT)) in SYSCALL_DEFINE4()
Dmodule.c830 if (!capable(CAP_SYS_MODULE) || modules_disabled) in SYSCALL_DEFINE2()
3135 if (!capable(CAP_SYS_MODULE) || modules_disabled) in may_init_module()
Dauditsc.c1976 if (!capable(CAP_AUDIT_CONTROL)) in audit_set_loginuid()
Dcgroup.c2125 if (capable(CAP_SYS_NICE)) in subsys_cgroup_allow_attach()
/kernel/trace/
Dtrace_event_perf.c29 perf_paranoid_kernel() && !capable(CAP_SYS_ADMIN)) in perf_trace_event_perm()
46 if (perf_paranoid_tracepoint_raw() && !capable(CAP_SYS_ADMIN)) in perf_trace_event_perm()
/kernel/time/
Dntp.c614 !capable(CAP_SYS_TIME)) in ntp_validate_timex()
618 if (txc->modes && !capable(CAP_SYS_TIME)) in ntp_validate_timex()
630 if ((txc->modes & ADJ_SETOFFSET) && (!capable(CAP_SYS_TIME))) in ntp_validate_timex()
Dalarmtimer.c522 if (!capable(CAP_WAKE_ALARM)) in alarm_timer_create()
725 if (!capable(CAP_WAKE_ALARM)) in alarm_timer_nsleep()
DKconfig151 hardware is not capable then this option only increases
/kernel/sched/
Dauto_group.c218 if (!capable(CAP_SYS_ADMIN) && time_before(jiffies, next)) in proc_sched_autogroup_set_nice()
Dcore.c3708 capable(CAP_SYS_NICE)); in can_nice()
3889 if (user && !capable(CAP_SYS_NICE)) { in __sched_setscheduler()
/kernel/events/
Dhw_breakpoint.c403 if (!capable(CAP_SYS_ADMIN)) in validate_hw_breakpoint()
Dcore.c2952 if (perf_paranoid_cpu() && !capable(CAP_SYS_ADMIN)) in find_get_context()
3921 !capable(CAP_IPC_LOCK)) { in perf_mmap()
6554 && perf_paranoid_kernel() && !capable(CAP_SYS_ADMIN)) in perf_copy_attr()
6740 if (perf_paranoid_any() && !capable(CAP_SYS_ADMIN)) in SYSCALL_DEFINE5()
6748 if (perf_paranoid_kernel() && !capable(CAP_SYS_ADMIN)) in SYSCALL_DEFINE5()