Drop --map-root-user from the seccomp unshare tests

This commit is contained in:
2026-09-17 12:24:55 +02:00
parent 7d5db4f3d5
commit d518c3e482
+2 -2
View File
@@ -3,7 +3,7 @@ use crate::common::*;
#[test]
fn seccomp_on_by_default_blocks_unshare() {
let output = Sandbox::new(&[])
.args(["--", "unshare", "--user", "--map-root-user", "/bin/true"])
.args(["--", "unshare", "--user", "/bin/true"])
.output()
.expect("agent-sandbox binary failed to execute");
@@ -16,7 +16,7 @@ fn seccomp_on_by_default_blocks_unshare() {
#[test]
fn seccomp_off_allows_blocked_syscall() {
let output = Sandbox::new(&["--no-seccomp"])
.args(["--", "unshare", "--user", "--map-root-user", "/bin/true"])
.args(["--", "unshare", "--user", "/bin/true"])
.output()
.expect("agent-sandbox binary failed to execute");