Plan OPNsense POSIX root scripts with explicit device policy, profile and approval
This commit is contained in:
@@ -441,7 +441,7 @@ pub(crate) async fn plan_resolved(
|
||||
let row = &rows[0];
|
||||
let caps = capabilities(row.get("capabilities"))?;
|
||||
let action = target_action(&input, &caps)?;
|
||||
if caps.iter().any(|s| s=="opnsense.base/1") &&
|
||||
if input.execution_identity=="agent_service" && caps.iter().any(|s| s=="opnsense.base/1") &&
|
||||
(input.max_runtime_seconds != 10 || input.max_output_bytes != 1024) {
|
||||
return Err(fail("UNSUPPORTED_CAPABILITY"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user