Home
last modified time | relevance | path

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

12

/kernel/
Dcapability.c369 int capable; in ns_capable_common() local
376 capable = security_capable(current_cred(), ns, cap, opts); in ns_capable_common()
377 if (capable == 0) { in ns_capable_common()
448 bool capable(int cap) in capable() function
452 EXPORT_SYMBOL(capable);
Dreboot.c1117 if (!capable(CAP_SYS_BOOT)) in mode_store()
1149 if (!capable(CAP_SYS_BOOT)) in force_store()
1194 if (!capable(CAP_SYS_BOOT)) in type_store()
1230 if (!capable(CAP_SYS_BOOT)) in cpu_store()
Dumh.c508 if (write && (!capable(CAP_SETPCAP) || in proc_cap_handler()
509 !capable(CAP_SYS_MODULE))) in proc_cap_handler()
Dkexec.c196 if (!capable(CAP_SYS_BOOT) || kexec_load_disabled) in kexec_load_check()
Ddelayacct.c56 if (write && !capable(CAP_SYS_ADMIN)) in sysctl_delayacct()
Dseccomp.c2101 if (!capable(CAP_SYS_ADMIN) || in seccomp_get_filter()
2139 if (!capable(CAP_SYS_ADMIN) || in seccomp_get_metadata()
2298 if (!capable(CAP_SYS_ADMIN)) in write_actions_logged()
Dsys.c1477 !capable(CAP_SYS_RESOURCE)) in do_prlimit()
2144 if (!capable(CAP_SYS_RESOURCE)) in prctl_set_mm()
2610 if (!capable(CAP_SYS_RESOURCE)) in SYSCALL_DEFINE5()
2624 if (!capable(CAP_SYS_RESOURCE)) in SYSCALL_DEFINE5()
Dacct.c296 if (!capable(CAP_SYS_PACCT)) in SYSCALL_DEFINE1()
Dsysctl.c796 if (write && !capable(CAP_SYS_ADMIN)) in proc_taint()
1619 if (write && !capable(CAP_SYS_ADMIN)) in proc_do_static_key()
Daudit.c1635 if (!capable(CAP_AUDIT_READ)) in audit_multicast_bind()
2316 if (!capable(CAP_AUDIT_CONTROL)) in audit_set_loginuid_perm()
Dptrace.c378 if (!capable(CAP_SYS_ADMIN)) in check_ptrace_options()
Dkexec_file.c333 if (!capable(CAP_SYS_BOOT) || kexec_load_disabled) in SYSCALL_DEFINE5()
/kernel/power/
Dwakelock.c211 if (!capable(CAP_BLOCK_SUSPEND)) in pm_wake_lock()
257 if (!capable(CAP_BLOCK_SUSPEND)) in pm_wake_unlock()
Duser.c266 if (!capable(CAP_SYS_ADMIN)) in snapshot_ioctl()
/kernel/printk/
Dsysctl.c17 if (write && !capable(CAP_SYS_ADMIN)) in proc_dointvec_minmax_sysadmin()
Dprintk.c530 if (capable(CAP_SYSLOG)) in check_syslog_permissions()
536 if (capable(CAP_SYS_ADMIN)) { in check_syslog_permissions()
/kernel/bpf/
Dsyscall.c2512 if (is_net_admin_prog_type(type) && !capable(CAP_NET_ADMIN) && !capable(CAP_SYS_ADMIN)) in bpf_prog_load()
3395 if (!capable(CAP_NET_ADMIN)) in bpf_prog_attach_check_attach_type()
3578 if (!capable(CAP_NET_ADMIN)) in bpf_prog_query()
3669 if (!capable(CAP_SYS_ADMIN)) in bpf_obj_get_next_id()
3750 if (!capable(CAP_SYS_ADMIN)) in bpf_prog_get_fd_by_id()
3777 if (!capable(CAP_SYS_ADMIN)) in bpf_map_get_fd_by_id()
4354 if (!capable(CAP_SYS_ADMIN)) in bpf_btf_get_fd_by_id()
4422 if (!capable(CAP_SYS_ADMIN)) in bpf_task_fd_query()
4778 if (!capable(CAP_SYS_ADMIN)) in bpf_link_get_fd_by_id()
4834 if (!capable(CAP_SYS_ADMIN)) in bpf_enable_stats()
[all …]
Doffload.c366 if (!capable(CAP_SYS_ADMIN)) in bpf_map_offload_map_alloc()
Ddevmap.c163 if (!capable(CAP_NET_ADMIN)) in dev_map_alloc()
/kernel/sched/
Dautogroup.c249 if (!capable(CAP_SYS_ADMIN) && time_before(jiffies, next)) in proc_sched_autogroup_set_nice()
/kernel/time/
Dalarmtimer.c735 if (!capable(CAP_WAKE_ALARM)) in alarm_timer_create()
859 if (!capable(CAP_WAKE_ALARM)) in alarm_timer_nsleep()
DKconfig196 hardware is not capable then this option only increases
Dtimekeeping.c2358 !capable(CAP_SYS_TIME)) in timekeeping_validate_timex()
2362 if (txc->modes && !capable(CAP_SYS_TIME)) in timekeeping_validate_timex()
2376 if (!capable(CAP_SYS_TIME)) in timekeeping_validate_timex()
/kernel/events/
Dhw_breakpoint.c734 if (!capable(CAP_SYS_ADMIN)) in hw_breakpoint_parse()
/kernel/cgroup/
Dcgroup-v1.c985 if ((fc->user_ns != &init_user_ns) || !capable(CAP_SYS_ADMIN)) in cgroup1_parse_param()

12