Skip to content

fix(core) exec_policy parsing fixes - #11951

Merged
dylan-hurd-oai merged 1 commit into
mainfrom
dh--cleanup-prefix-matching
Feb 17, 2026
Merged

dylan-hurd-oai merged 1 commit into
mainfrom
dh--cleanup-prefix-matching

Conversation

@dylan-hurd-oai

@dylan-hurd-oai dylan-hurd-oai commented Feb 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes a few things in our exec_policy handling of prefix_rules:

  1. Correctly match redirects specifically for exec_policy parsing. i.e. if you have prefix_rule(["echo"], decision="allow") then echo hello > output.txt should match - this should fix Asks for permission to run command xcodebuild, even after permitting all xcodebuild commands #10321
  2. If there already exists any rule that would match our prefix rule (not just a prompt), then drop it, since it won't do anything.

Testing

  • Updated unit tests, added approvals ScenarioSpecs

@dylan-hurd-oai
dylan-hurd-oai merged commit 0fbe10a into main Feb 17, 2026
52 of 55 checks passed
@dylan-hurd-oai
dylan-hurd-oai deleted the dh--cleanup-prefix-matching branch February 17, 2026 07:12
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Asks for permission to run command xcodebuild, even after permitting all xcodebuild commands

2 participants