CAP_DAC_READ_SEARCH
Bypass file read permission and directory read/execute checks; call open_by_handle_at.
- Bit number
- 2
- Mask in /proc/PID/status
- 0000000000000004
- Added in Linux
- Original 2.2 set
- Group
- Files and ownership
The open_by_handle_at(2) part is the dangerous one: a file handle names an inode directly, bypassing every directory permission on the way to it. That is what the 2014 "shocker" container breakout used, and why container runtimes stopped granting this capability by default.
Check a running process with grep Cap /proc/PID/status, or paste the hex into the mask decoder.
Syscall cards that mention it
- name_to_handle_at / open_by_handle_at(2)Linux · Filesystem
Get a stable opaque file handle for a path and reopen it later, surviving remounts and bind-mount rearrangement.
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.