$RodHat_/search
capabilities reference

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

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.