CAP_SYS_MODULE
Load and unload kernel modules.
- Bit number
- 16
- Mask in /proc/PID/status
- 0000000000010000
- Added in Linux
- Original 2.2 set
- Group
- System administration
Loading a module is running your code in ring 0, so this is root with extra steps. To stop module loading on a running system, set kernel.modules_disabled=1: it is one-way until reboot and does not depend on anyone dropping a capability correctly.
Check a running process with grep Cap /proc/PID/status, or paste the hex into the mask decoder.
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.