Dylan Hurd
0fbe10a807
fix(core) exec_policy parsing fixes ( #11951 )
...
## 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 #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
- [x] Updated unit tests, added approvals ScenarioSpecs
History
..
2026-02-14 19:57:10 -08:00
2026-01-20 13:07:28 -08:00
2026-02-06 14:40:50 -08:00
2026-02-12 09:37:24 +00:00
2026-02-16 23:11:59 -08:00
2026-01-30 11:18:39 -08:00
2026-02-10 19:25:07 +00:00
2026-02-13 12:48:29 -08:00
2026-02-15 19:18:41 -08:00
2026-02-12 14:42:54 -08:00
2026-02-12 14:42:54 -08:00
2026-02-14 19:57:10 -08:00
2026-02-13 09:51:22 -08:00
2026-02-14 19:57:10 -08:00
2026-02-02 21:17:01 -08:00
2026-02-10 19:22:23 -08:00
2026-02-14 04:18:12 +00:00
2026-02-12 19:34:22 +00:00
2025-11-21 22:10:52 +00:00
2026-02-04 08:38:06 -08:00
2026-02-03 02:52:26 +00:00
2026-01-30 16:37:56 -08:00
2026-01-22 12:04:23 -08:00
2025-11-13 17:12:10 -08:00
2025-12-23 19:29:32 -08:00
2026-02-06 15:59:00 -08:00
2026-02-16 22:13:36 -08:00
2026-02-10 22:44:02 -08:00
2026-01-27 11:04:23 -08:00
2026-02-15 18:46:05 -08:00
2026-02-16 18:40:45 +00:00
2026-02-15 18:46:05 -08:00
2026-01-22 12:04:23 -08:00
2026-02-12 14:42:54 -08:00
2026-02-12 14:42:54 -08:00
2026-02-10 18:50:11 -08:00
2026-02-16 22:30:23 +00:00
2026-02-04 19:03:14 -08:00
2026-02-15 18:46:05 -08:00
2026-02-16 18:40:45 +00:00
2026-01-14 16:41:50 -08:00
2025-11-13 17:12:10 -08:00
2026-02-15 18:46:05 -08:00
2026-01-14 16:41:50 -08:00
2026-02-03 12:08:38 -08:00
2026-02-15 18:46:05 -08:00
2026-02-11 03:56:01 +00:00
2026-02-11 18:13:39 +00:00
2026-02-15 18:46:05 -08:00
2026-02-12 19:34:22 +00:00
2026-02-16 22:13:36 -08:00
2026-02-15 19:18:41 -08:00
2026-02-11 18:31:14 -08:00
2026-02-09 20:03:32 -08:00
2025-12-04 11:57:58 -08:00
2026-02-16 09:11:00 +00:00
2026-01-22 12:04:23 -08:00
2026-02-07 23:05:03 -08:00
2026-02-04 08:38:06 -08:00
2026-02-04 16:58:48 -08:00
2025-11-20 11:04:11 -08:00
2026-01-22 12:04:23 -08:00
2026-02-10 10:57:50 -08:00
2026-02-12 14:42:54 -08:00
2026-02-11 18:31:14 -08:00
2026-02-13 12:48:29 -08:00
2026-01-07 17:04:53 +00:00
2026-02-11 18:31:14 -08:00
2026-02-12 19:34:22 +00:00
2026-01-14 16:41:50 -08:00
2026-02-07 23:05:03 -08:00
2026-02-15 18:46:05 -08:00
2026-02-11 18:31:14 -08:00
2026-02-11 22:48:13 -08:00