Bind Windows script contexts to the installed signed helper

This commit is contained in:
2026-11-18 11:58:55 +01:00
parent ab20cb0778
commit c692316abe
10 changed files with 345 additions and 14 deletions
@@ -1153,6 +1153,9 @@ impl SystemHelper {
request,
} => {
let job = self.settings.binding.job(&request.job_bytes)?;
if self.settings.managed_scripts() {
ensure!(self.settings.permits_script(&job), "MANAGED_SYSTEM_SCRIPT_REQUIRED");
}
if matches!(job.action, Action::UpdateAgent { .. }) {
ensure!(
self.pending_update_activation.is_none(),