Searched refs:CAP_SYS_NICE (Results 1 – 17 of 17) sorted by relevance
294 #define CAP_SYS_NICE 23 macro
106 if (!check_same_owner(p) && !capable(CAP_SYS_NICE)) { in mipsmt_sys_sched_setaffinity()
47 if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_NICE)) in ioprio_check_cap()
259 !uid_eq(tcred->uid, cred->uid) && !capable(CAP_SYS_NICE)) { in set_task_ioprio()
316 return capable(CAP_SYS_NICE) ? XE_EXEC_QUEUE_PRIORITY_HIGH : in xe_exec_queue_device_get_max_priority()338 return !capable(CAP_SYS_NICE); in xe_exec_queue_enforce_schedule_limit()364 if (capable(CAP_SYS_NICE)) { in xe_exec_queue_get_prop_minmax()
141 return is_nice_reduction(p, nice) || capable(CAP_SYS_NICE); in can_nice()520 if (!capable(CAP_SYS_NICE)) in user_check_sched_setscheduler()1270 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) in sched_setaffinity()
44 if (!capable(CAP_SYS_NICE) && !drm_is_current_master(from_pvr_file(pvr_file))) in remap_priority()
413 !capable(CAP_SYS_NICE)) in spufs_create_context()
1278 if ((flags & MPOL_MF_MOVE_ALL) && !capable(CAP_SYS_NICE)) in do_mbind()1687 if (!nodes_subset(*new, task_nodes) && !capable(CAP_SYS_NICE)) { in kernel_migrate_pages()1710 capable(CAP_SYS_NICE) ? MPOL_MF_MOVE_ALL : MPOL_MF_MOVE); in kernel_migrate_pages()
1523 if (mm != current->mm && !capable(CAP_SYS_NICE)) { in SYSCALL_DEFINE5()
2546 if ((flags & MPOL_MF_MOVE_ALL) && !capable(CAP_SYS_NICE)) in kernel_move_pages()
107 if (capable(CAP_SYS_NICE)) in amdgpu_ctx_priority_permit()
1180 if (!is_subset && !ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) in cap_safe_nice()
1012 if (capable(CAP_SYS_NICE) || drm_is_current_master(file)) in group_priority_permit()
2614 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) { in timerslack_ns_write()2654 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) { in timerslack_ns_show()
189 !capable(CAP_SYS_NICE)) in validate_priority()
194 if (ns_capable(pcred->user_ns, CAP_SYS_NICE)) in set_one_prio_perm()