feat: add forbidden_reason arg to prefix_rule() in *.rules

This commit is contained in:
Michael Bolin
2026-01-05 11:54:58 -08:00
parent 1d8e2b4da8
commit c8c3ecd708
10 changed files with 297 additions and 24 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ async fn execpolicy_blocks_shell_invocation() -> Result<()> {
assert!(
end.aggregated_output
.contains("execpolicy forbids this command"),
.contains("`echo blocked` rejected: policy forbids commands starting with `echo`"),
"unexpected output: {}",
end.aggregated_output
);