Skip to main content

Module permissions

Module permissions 

Source
Expand description

Fine-grained permission rule set with glob-based matching and directory scoping.

Provides PermissionRuleSet for ordered, priority-based permission evaluation, with optional per-directory scoping via glob patterns.

Structs§

PermissionRule
A single permission rule with glob pattern matching and optional directory scope.
PermissionRuleSet
An ordered collection of permission rules evaluated highest-priority-first.

Enums§

PermissionAction
Action to take when a permission rule matches.

Functions§

glob_matches
Glob matching for tool permission patterns.
glob_matches_path
Path-aware glob matching where * does NOT match / but ** does.
is_sensitive_file
Check whether a file path points to a sensitive file that should be denied by default.