Searched refs:capable (Results 1 – 22 of 22) sorted by relevance
192 if (!capable(CAP_BLOCK_SUSPEND)) in pm_wake_lock()238 if (!capable(CAP_BLOCK_SUSPEND)) in pm_wake_unlock()
204 if (!capable(CAP_SYS_ADMIN)) in snapshot_ioctl()
429 bool capable(int cap) in capable() function433 EXPORT_SYMBOL(capable);
659 if (write && (!capable(CAP_SETPCAP) || in proc_cap_handler()660 !capable(CAP_SYS_MODULE))) in proc_cap_handler()
259 if (!capable(CAP_SYS_PACCT)) in SYSCALL_DEFINE1()
595 if (!capable(CAP_AUDIT_CONTROL)) in audit_netlink_ok()601 if (!capable(CAP_AUDIT_WRITE)) in audit_netlink_ok()
1645 !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()
1264 if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_RESOURCE) && in copy_process()
2061 if (write && !capable(CAP_SYS_ADMIN)) in proc_taint()2089 if (write && !capable(CAP_SYS_ADMIN)) in proc_dointvec_minmax_sysadmin()
398 if (capable(CAP_SYSLOG)) in check_syslog_permissions()404 if (capable(CAP_SYS_ADMIN)) { in check_syslog_permissions()
942 if (!capable(CAP_SYS_BOOT)) in SYSCALL_DEFINE4()
830 if (!capable(CAP_SYS_MODULE) || modules_disabled) in SYSCALL_DEFINE2()3135 if (!capable(CAP_SYS_MODULE) || modules_disabled) in may_init_module()
1976 if (!capable(CAP_AUDIT_CONTROL)) in audit_set_loginuid()
2125 if (capable(CAP_SYS_NICE)) in subsys_cgroup_allow_attach()
29 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()
614 !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()
522 if (!capable(CAP_WAKE_ALARM)) in alarm_timer_create()725 if (!capable(CAP_WAKE_ALARM)) in alarm_timer_nsleep()
151 hardware is not capable then this option only increases
218 if (!capable(CAP_SYS_ADMIN) && time_before(jiffies, next)) in proc_sched_autogroup_set_nice()
3708 capable(CAP_SYS_NICE)); in can_nice()3889 if (user && !capable(CAP_SYS_NICE)) { in __sched_setscheduler()
403 if (!capable(CAP_SYS_ADMIN)) in validate_hw_breakpoint()
2952 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()