$RodHat_/search
capabilities reference

CAP_SYS_NICE

Raise priority, set real-time policies, set CPU affinity and I/O priority for arbitrary processes.

Bit number
23
Mask in /proc/PID/status
0000000000800000
Added in Linux
Original 2.2 set
Group
Scheduling and resource limits

Lowering the nice value, SCHED_FIFO, SCHED_RR and SCHED_DEADLINE, sched_setaffinity on other users' processes, and ioprio_set for the real-time I/O class. Audio and low-latency services want this, or an RLIMIT_RTPRIO allowance, which is the narrower option for real-time priority alone.

Narrower option: RLIMIT_RTPRIO grants real-time scheduling priority without the capability.

Check a running process with grep Cap /proc/PID/status, or paste the hex into the mask decoder.

Syscall cards that mention it

  • process_madvise(2)Linux · Memory

    madvise() for another process's address space, addressed by pidfd and an iovec of ranges.

  • sched_setaffinity(2)Linux · Processes

    Set the set of CPUs a thread may run on (taskset is the CLI wrapper).

  • ioprio_set(2)Linux · I/O

    Set a thread's I/O scheduling class and priority (ionice is the CLI wrapper).

  • sched_setattr(2)Linux · Scheduling

    Set scheduling policy and attributes for a thread, including SCHED_DEADLINE runtime/deadline/period reservations.

Rod on this

Sources

  1. capabilities(7), Linux man-pages
  2. user_namespaces(7), Linux man-pages

Bit numbers are from linux/capability.h. The list of syscall cards is matched by name from the card text on this site, not from the kernel source. Spot one that's wrong? Tell Rod.