CAP_SETUID
Make arbitrary changes to process UIDs.
- Bit number
- 7
- Mask in /proc/PID/status
- 0000000000000080
- Added in Linux
- Original 2.2 set
- Group
- Identity and signals
A process holding it can become any UID, including 0, so treat it as root for anything that file ownership protects. It also lets a process forge a UID when passing credentials over a UNIX domain socket and write a user ID mapping in a user namespace. Keep it only for the instant of the drop to the service account.
Check a running process with grep Cap /proc/PID/status, or paste the hex into the mask decoder.
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.