Add /sys to whitelist mode

This commit is contained in:
2026-03-25 22:22:35 +01:00
parent dccf2309a5
commit 0bd91ffad2
2 changed files with 16 additions and 0 deletions

View File

@@ -116,6 +116,8 @@ fn add_whitelist_mode(cmd: &mut Command) -> Result<(), SandboxError> {
cmd.args(["--ro-bind-try", path, path]);
}
cmd.args(["--ro-bind-try", "/sys", "/sys"]);
let local_bin = format!("{home}/.local/bin");
cmd.arg("--ro-bind-try").arg(&local_bin).arg(&local_bin);