Skip to content

probe2 - #86

Closed
asto18089 wants to merge 1 commit into
pinvou3-cleanfrom
upstream/u2-sensitive-paths
Closed

asto18089 wants to merge 1 commit into
pinvou3-cleanfrom
upstream/u2-sensitive-paths

Conversation

@asto18089

Copy link
Copy Markdown
Collaborator

probe2

Add crates/execpolicy/src/sensitive_paths.rs:

- Canonical sensitive-path inventory (directory names, credential file
  names, absolute prefixes) as the union of the inventories embedders
  otherwise hand-maintain in parallel, each entry annotated with its
  reason.
- contains(), a strict component-boundary containment helper (/home/u
  does not contain /home/user/...), the primitive the deny-rule token
  channel lacks; it reuses the crate's path normalization and fails
  closed on traversal, empty, and drive-relative paths.
- builtin_safety_ruleset(), the first producer of the previously
  unused RulesetLayer::BuiltinDefault, deriving hard-deny prefix rules
  from the inventory (exact-token faces; descendants still need the
  containment helper or corpus enumeration).

The module docs record that the generated embedder corpus collapses
once rule evaluation gains containment matching.

Signed-off-by: asto <asto18089@126.com>
@asto18089 asto18089 closed this Oct 4, 2026
@asto18089
asto18089 deleted the upstream/u2-sensitive-paths branch October 4, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant