$RodHat_/search
capabilities reference

CAP_SETGID

Make arbitrary changes to process GIDs and the supplementary group list.

Bit number
6
Mask in /proc/PID/status
0000000000000040
Added in Linux
Original 2.2 set
Group
Identity and signals

Also lets a process forge a GID when passing credentials over a UNIX domain socket, and write a group ID mapping in a user namespace. A daemon that starts as root and drops to a service account needs both this and CAP_SETUID during the drop, and nothing afterwards.

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.