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
2026-02-16 23:11:59 -08:00
..
2026-02-16 16:29:32 +00:00
2026-02-16 22:01:49 +00:00
2026-02-09 20:48:58 -08:00
2026-01-13 10:22:51 -08:00
2026-02-16 16:29:32 +00:00
2026-02-12 15:56:48 +00:00
2026-02-10 11:58:00 -08:00
2026-02-16 15:28:31 +00:00
2026-02-03 02:52:26 +00:00
2026-02-14 01:43:44 +00:00
2026-02-16 16:18:53 +00:00
2026-02-15 18:46:05 -08:00
2026-02-13 12:59:17 +00:00
2026-02-14 04:18:12 +00:00
2026-02-14 01:43:44 +00:00
2026-02-15 19:18:41 -08:00
2026-02-16 09:11:00 +00:00
2026-02-16 22:30:23 +00:00
2026-02-16 09:11:00 +00:00
2026-02-13 12:00:16 -08:00
2026-02-12 14:10:30 -08:00
2026-01-27 11:04:23 -08:00
2026-02-10 22:44:02 -08:00
2026-02-10 16:12:31 +00:00
2026-02-13 12:48:29 -08:00
2026-02-14 04:18:12 +00:00
2026-02-09 23:10:26 -08:00
2026-02-16 22:13:36 -08:00
2026-02-10 11:46:40 -08:00
2026-02-13 19:02:53 -08:00
2026-02-13 19:02:53 -08:00
2026-02-13 03:55:10 +00:00
2026-02-11 16:43:36 -08:00
2026-01-08 21:48:30 -08:00
2026-02-08 15:16:50 -08:00
2026-02-14 04:18:12 +00:00
2026-02-07 02:39:52 +00:00
2026-02-03 11:31:12 -08:00
2026-02-16 23:11:59 -08:00
2026-02-14 04:18:12 +00:00
2026-02-16 22:30:23 +00:00
2026-02-11 14:08:03 -08:00
2026-02-13 12:48:29 -08:00
2026-02-11 18:31:14 -08:00
2026-02-14 04:18:12 +00:00
2026-02-16 18:40:45 +00:00
2026-02-13 12:00:16 -08:00
2026-02-10 10:10:24 +00:00
2026-02-10 11:45:23 -08:00
2026-02-10 09:38:00 -08:00
2026-02-14 04:18:12 +00:00
2026-02-09 19:26:39 -08:00
2026-01-30 22:20:02 -08:00
2026-01-18 19:22:28 -08:00
2026-01-31 19:38:06 -08:00
2026-02-12 15:41:05 -08:00
2026-01-30 18:59:30 +00:00
2026-02-11 18:31:14 -08:00
2026-02-14 19:00:01 +00:00
2026-02-12 23:30:22 +00:00
2026-02-10 07:44:21 +00:00
2026-02-14 01:43:44 +00:00
2026-02-14 01:43:44 +00:00
2026-02-05 16:39:11 +00:00
2026-02-10 17:03:46 -08:00
2026-02-09 22:14:39 +00:00
2026-02-10 17:03:46 -08:00
2026-02-10 07:44:21 +00:00
2026-02-12 12:49:31 +00:00
2026-02-04 16:12:47 -08:00
2026-01-30 18:59:30 +00:00
2026-01-20 16:17:38 -08:00
2026-02-10 22:44:02 -08:00
2026-02-12 19:34:22 +00:00
2026-02-09 20:48:58 -08:00
2026-02-09 12:42:20 -08:00
2026-02-14 19:00:01 +00:00
2026-02-03 02:52:26 +00:00
2026-02-05 01:52:12 +00:00
2026-01-30 16:37:56 -08:00
2026-02-12 12:48:36 -08:00
2026-02-12 14:42:54 -08:00