CAP_SETPCAP
Add to the inheritable set from the bounding set, drop from the bounding set, change securebits.
- Bit number
- 8
- Mask in /proc/PID/status
- 0000000000000100
- Added in Linux
- Original 2.2 set
- Group
- Identity and signals
The capability about capabilities. It is what lets a process run prctl(PR_CAPBSET_DROP) to shrink the bounding set (irreversible for that process and its descendants) and set the securebits flags such as no-root. The set model Tip walks through how the sets transform across execve.
Check a running process with grep Cap /proc/PID/status, or paste the hex into the mask decoder.
Syscall cards that mention it
- capset(2)Linux · Security
Raw syscall to set a thread's permitted, effective and inheritable capability sets.
Rod on this
Sources
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.