Dylan Hurd
de6e72addd
Add opt-in Unicode canonical matching to exec policy rules ( #59535 )
...
## What changed
- Support `canonical_matching=True` in `prefix_rule` and `canonical_matching = true` in managed TOML prefix rules. Apply Unicode canonical caseless matching to every prefix token, including alternatives, while keeping exact matching as the default.
- Match case and canonically equivalent Unicode spellings, such as `bash` and `bAſh`, without resolving executables on the filesystem.
- Preserve managed restrictions when checking absolute-path rule amendments, and enforce applicable `host_executable` path allowlists during basename fallback.
## Testing
Add coverage for case folding, Unicode normalization, token alternatives, exact-match defaults, and host executable allowlists. Extend managed-policy and shell-execution tests to cover canonical matching.
GitOrigin-RevId: c2f79069dc38d55c77028c457b22beb468d5c571
2026-11-05 00:55:46 +00:00
..
2026-11-05 00:39:39 +00:00
2026-10-17 04:02:21 +00:00
2026-11-05 00:55:46 +00:00
2026-11-05 00:39:39 +00:00
2026-11-05 00:39:39 +00:00
2026-11-03 02:37:20 +00:00
2026-10-30 18:20:57 +00:00
2026-11-04 20:37:39 +00:00
2026-10-22 01:42:11 +00:00
2026-10-14 20:53:59 +00:00
2026-11-04 01:13:54 +00:00
2026-11-03 02:26:29 +00:00
2026-10-07 21:52:43 +00:00
2026-11-05 00:39:39 +00:00
2026-11-05 00:39:39 +00:00
2026-11-05 00:39:39 +00:00
2026-11-03 15:02:57 +00:00
2026-11-05 00:30:20 +00:00
2026-11-03 23:49:01 +00:00
2026-11-03 02:37:20 +00:00
2026-10-26 21:48:19 +00:00
2026-11-04 16:34:49 +00:00
2026-11-04 16:34:49 +00:00
2026-11-04 16:34:49 +00:00
2026-10-26 21:15:23 +00:00
2026-10-26 21:15:23 +00:00
2026-11-04 19:58:24 +00:00
2026-11-04 19:58:24 +00:00
2026-11-03 15:02:57 +00:00
2026-11-04 04:02:00 +00:00
2026-11-04 19:58:24 +00:00
2026-11-04 19:58:24 +00:00
2026-10-28 21:34:25 +00:00
2026-10-28 21:34:25 +00:00
2026-10-29 19:29:05 +00:00
2026-10-26 21:48:19 +00:00
2026-11-03 15:02:57 +00:00
2026-11-04 22:55:22 +00:00
2026-10-12 18:53:49 +00:00
2026-11-04 13:03:01 +00:00
2026-11-04 00:19:12 +00:00
2026-11-04 19:58:24 +00:00
2026-11-05 00:39:39 +00:00
2026-11-04 00:19:12 +00:00
2026-11-04 00:19:12 +00:00
2026-11-04 00:19:12 +00:00
2026-11-04 13:03:01 +00:00
2026-10-10 17:30:25 +00:00
2026-10-29 11:15:52 +00:00
2026-10-05 16:10:27 +00:00
2026-11-05 00:39:39 +00:00
2026-10-26 21:08:15 +00:00
2026-10-29 23:24:52 +00:00
2026-11-04 09:51:28 +00:00
2026-11-03 02:37:20 +00:00
2026-11-03 02:37:20 +00:00
2026-11-04 04:02:00 +00:00
2026-11-03 21:53:26 +00:00
2026-10-05 23:52:06 +00:00
2026-10-08 13:45:19 +00:00
2026-11-03 11:14:59 +00:00
2026-10-14 19:47:50 +00:00
2026-11-03 11:14:59 +00:00
2026-10-29 20:39:04 +00:00
2026-11-05 00:30:20 +00:00
2026-10-07 03:07:51 +00:00
2026-10-29 09:48:55 +00:00
2026-11-03 02:37:20 +00:00
2026-10-19 11:40:15 +00:00
2026-11-03 21:24:16 +00:00
2026-10-27 22:59:22 +00:00
2026-10-27 22:59:22 +00:00
2026-11-03 01:18:58 +00:00
2026-11-05 00:39:39 +00:00
2026-11-03 02:37:20 +00:00
2026-10-08 18:42:58 +00:00
2026-11-04 20:37:39 +00:00
2026-11-04 20:37:39 +00:00
2026-10-21 01:55:56 +00:00
2026-11-03 02:08:56 +00:00
2026-10-26 19:37:32 +00:00
2026-10-28 11:48:00 +00:00
2026-11-03 02:08:56 +00:00
2026-10-28 05:46:04 +00:00
2026-11-03 15:02:57 +00:00
2026-11-02 13:51:49 +00:00
2026-10-30 02:43:02 +00:00
2026-11-03 21:24:16 +00:00
2026-11-03 02:26:29 +00:00
2026-10-27 12:17:14 +00:00
2026-11-04 06:05:16 +00:00
2026-11-02 21:37:17 +00:00
2026-10-26 18:31:49 +00:00
2026-11-03 15:02:57 +00:00
2026-10-17 04:02:21 +00:00
2026-10-16 17:31:47 +00:00
2026-10-16 17:31:47 +00:00
2026-10-07 17:59:22 +00:00
2026-11-05 00:30:20 +00:00
2026-11-03 02:37:20 +00:00
2026-10-08 13:45:19 +00:00
2026-11-04 01:15:38 +00:00
2026-10-08 16:19:09 +00:00
2026-11-03 02:26:29 +00:00
2026-11-04 17:13:00 +00:00
2026-11-03 22:29:33 +00:00
2026-10-30 18:34:10 +00:00
2026-11-03 15:02:57 +00:00
2026-11-03 15:02:57 +00:00
2026-10-10 01:25:00 +00:00
2026-10-06 10:39:16 +00:00
2026-10-27 23:02:27 +00:00
2026-10-02 16:55:41 +00:00
2026-11-03 14:15:56 +00:00
2026-10-28 11:48:00 +00:00
2026-10-14 18:01:54 +00:00
2026-11-03 23:49:01 +00:00
2026-11-03 23:49:01 +00:00
2026-10-17 04:02:21 +00:00
2026-10-08 06:31:56 +00:00