Skip to main content
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

The original path as specified by the user.

resolved

The canonicalized absolute path after resolving symlinks.
On macOS, common paths like /tmp, /var, and /etc are symlinks to /private/tmp, /private/var, and /private/etc respectively.

access

The access mode granted for this path.

is_file

True if this capability grants access to a single file, False for a directory (recursive access).

source

The origin of this capability (user, group, or system).
See CapabilitySource for details.

String Representation

Example: Listing Capabilities

Output: