$RodHat_/search
capabilities reference

CAP_SETFCAP

Set arbitrary capabilities on a file.

Bit number
31
Mask in /proc/PID/status
0000000080000000
Added in Linux
2.6.24
Group
Files and ownership

This is what setcap needs, and it is how a file capability becomes a capability a process holds after exec. Since Linux 5.12 it is also needed to write a user namespace mapping that maps UID 0.

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

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.