Home
last modified time | relevance | path

Searched refs:CAP_SYS_NICE (Results 1 – 17 of 17) sorted by relevance

/linux/include/uapi/linux/
H A Dcapability.h294 #define CAP_SYS_NICE 23 macro
/linux/arch/mips/kernel/
H A Dmips-mt-fpaff.c106 if (!check_same_owner(p) && !capable(CAP_SYS_NICE)) { in mipsmt_sys_sched_setaffinity()
/linux/block/
H A Dioprio.c47 if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_NICE)) in ioprio_check_cap()
H A Dblk-ioc.c259 !uid_eq(tcred->uid, cred->uid) && !capable(CAP_SYS_NICE)) { in set_task_ioprio()
/linux/drivers/gpu/drm/xe/
H A Dxe_exec_queue.c316 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()
/linux/kernel/sched/
H A Dsyscalls.c141 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()
/linux/drivers/gpu/drm/imagination/
H A Dpvr_context.c44 if (!capable(CAP_SYS_NICE) && !drm_is_current_master(from_pvr_file(pvr_file))) in remap_priority()
/linux/arch/powerpc/platforms/cell/spufs/
H A Dinode.c413 !capable(CAP_SYS_NICE)) in spufs_create_context()
/linux/mm/
H A Dmempolicy.c1278 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()
H A Dmadvise.c1523 if (mm != current->mm && !capable(CAP_SYS_NICE)) { in SYSCALL_DEFINE5()
H A Dmigrate.c2546 if ((flags & MPOL_MF_MOVE_ALL) && !capable(CAP_SYS_NICE)) in kernel_move_pages()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ctx.c107 if (capable(CAP_SYS_NICE)) in amdgpu_ctx_priority_permit()
/linux/security/
H A Dcommoncap.c1180 if (!is_subset && !ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) in cap_safe_nice()
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_drv.c1012 if (capable(CAP_SYS_NICE) || drm_is_current_master(file)) in group_priority_permit()
/linux/fs/proc/
H A Dbase.c2614 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()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_context.c189 !capable(CAP_SYS_NICE)) in validate_priority()
/linux/kernel/
H A Dsys.c194 if (ns_capable(pcred->user_ns, CAP_SYS_NICE)) in set_one_prio_perm()