FsCapability represents a single filesystem permission grant. It’s a read-only view returned by CapabilitySet.fs_capabilities().
You don’t create
FsCapability objects directly. They’re created internally when you call allow_path() or allow_file() on a CapabilitySet.Properties
original
resolved
On macOS, common paths like
/tmp, /var, and /etc are symlinks to /private/tmp, /private/var, and /private/etc respectively.access
is_file
True if this capability grants access to a single file, False for a directory (recursive access).
source
String Representation
Example: Listing Capabilities
Related
- CapabilitySet.fs_capabilities() - Get all capabilities
- CapabilitySource - Capability origin
- AccessMode - Access modes