We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7dda6e commit 57f1befCopy full SHA for 57f1bef
tests/integration/personality.bats
@@ -62,3 +62,21 @@ function teardown() {
62
[ "$status" -eq 0 ]
63
[[ "$output" == *"x86_64"* ]]
64
}
65
+
66
+# check that personality can be set when the personality syscall is blocked by seccomp
67
+@test "runc run with personality syscall blocked by seccomp" {
68
+ update_config '
69
+ .linux.personality = {
70
+ "domain": "LINUX",
71
+ }
72
+ | .linux.seccomp = {
73
+ "defaultAction":"SCMP_ACT_ALLOW",
74
+ "syscalls":[{"names":["personality"], "action":"SCMP_ACT_ERRNO"}]
75
+ }'
76
77
+ runc run -d --console-socket "$CONSOLE_SOCKET" test_busybox
78
+ [ "$status" -eq 0 ]
79
+ runc exec test_busybox /bin/sh -c "uname -a"
80
81
+ [[ "$output" == *"x86_64"* ]]
82
+}
0 commit comments