Merge pull request #5307 from ricardobranco777/seccomp

tests/integration: fix seccomp tests on big-endian architectures
This commit is contained in:
Kir Kolyshkin
2026-06-17 15:24:39 -07:00
committed by GitHub
3 changed files with 0 additions and 20 deletions
-6
View File
@@ -43,7 +43,6 @@ function teardown() {
| .process.noNewPrivileges = false | .process.noNewPrivileges = false
| .linux.seccomp = { | .linux.seccomp = {
"defaultAction":"SCMP_ACT_ALLOW", "defaultAction":"SCMP_ACT_ALLOW",
"architectures":["SCMP_ARCH_X86","SCMP_ARCH_X32","SCMP_ARCH_X86_64","SCMP_ARCH_AARCH64","SCMP_ARCH_ARM"],
"syscalls":[{"names":["mkdir","mkdirat"], "action":"SCMP_ACT_ERRNO"}] "syscalls":[{"names":["mkdir","mkdirat"], "action":"SCMP_ACT_ERRNO"}]
}' }'
@@ -57,7 +56,6 @@ function teardown() {
| .process.noNewPrivileges = false | .process.noNewPrivileges = false
| .linux.seccomp = { | .linux.seccomp = {
"defaultAction":"SCMP_ACT_ALLOW", "defaultAction":"SCMP_ACT_ALLOW",
"architectures":["SCMP_ARCH_X86","SCMP_ARCH_X32","SCMP_ARCH_X86_64","SCMP_ARCH_AARCH64","SCMP_ARCH_ARM"],
"syscalls":[{"names":["mkdir","mkdirat"], "action":"SCMP_ACT_ERRNO", "errnoRet": 100}] "syscalls":[{"names":["mkdir","mkdirat"], "action":"SCMP_ACT_ERRNO", "errnoRet": 100}]
}' }'
@@ -96,7 +94,6 @@ function flags_value() {
| .process.noNewPrivileges = false | .process.noNewPrivileges = false
| .linux.seccomp = { | .linux.seccomp = {
"defaultAction":"SCMP_ACT_ALLOW", "defaultAction":"SCMP_ACT_ALLOW",
"architectures":["SCMP_ARCH_X86","SCMP_ARCH_X32","SCMP_ARCH_X86_64","SCMP_ARCH_AARCH64","SCMP_ARCH_ARM"],
"syscalls":[{"names":["mkdir", "mkdirat"], "action":"SCMP_ACT_ERRNO"}] "syscalls":[{"names":["mkdir", "mkdirat"], "action":"SCMP_ACT_ERRNO"}]
}' }'
@@ -161,7 +158,6 @@ function flags_value() {
| .process.rlimits = [{"type": "RLIMIT_CORE", "soft": 0, "hard": 0}] | .process.rlimits = [{"type": "RLIMIT_CORE", "soft": 0, "hard": 0}]
| .linux.seccomp = { | .linux.seccomp = {
"defaultAction":"SCMP_ACT_ALLOW", "defaultAction":"SCMP_ACT_ALLOW",
"architectures":["SCMP_ARCH_X86","SCMP_ARCH_X32","SCMP_ARCH_X86_64","SCMP_ARCH_AARCH64","SCMP_ARCH_ARM"],
"syscalls":[{"names":["mkdir","mkdirat"], "action":"SCMP_ACT_KILL"}] "syscalls":[{"names":["mkdir","mkdirat"], "action":"SCMP_ACT_KILL"}]
}' }'
@@ -174,7 +170,6 @@ function flags_value() {
update_config ' .process.args = ["/bin/true"] update_config ' .process.args = ["/bin/true"]
| .linux.seccomp = { | .linux.seccomp = {
"defaultAction":"SCMP_ACT_ALLOW", "defaultAction":"SCMP_ACT_ALLOW",
"architectures":["SCMP_ARCH_X86","SCMP_ARCH_X32","SCMP_ARCH_X86_64","SCMP_ARCH_AARCH64","SCMP_ARCH_ARM"],
"syscalls":[{"names":["mkdir","mkdirat"], "action":"SCMP_ACT_KILL"}] "syscalls":[{"names":["mkdir","mkdirat"], "action":"SCMP_ACT_KILL"}]
} }
| .process.rlimits = [{"type": "RLIMIT_CORE", "soft": 0, "hard": 0}] | .process.rlimits = [{"type": "RLIMIT_CORE", "soft": 0, "hard": 0}]
@@ -196,7 +191,6 @@ function flags_value() {
| .process.noNewPrivileges = false | .process.noNewPrivileges = false
| .linux.seccomp = { | .linux.seccomp = {
"defaultAction":"SCMP_ACT_ALLOW", "defaultAction":"SCMP_ACT_ALLOW",
"architectures":["SCMP_ARCH_X86","SCMP_ARCH_X32","SCMP_ARCH_X86_64","SCMP_ARCH_AARCH64","SCMP_ARCH_ARM"],
"syscalls":[{"names":["close_range", "fsopen", "fsconfig", "fspick", "openat2", "open_tree", "move_mount", "mount_setattr"], "action":"SCMP_ACT_ERRNO", "errnoRet": 38}] "syscalls":[{"names":["close_range", "fsopen", "fsconfig", "fspick", "openat2", "open_tree", "move_mount", "mount_setattr"], "action":"SCMP_ACT_ERRNO", "errnoRet": 38}]
}' }'
-7
View File
@@ -1,12 +1,5 @@
{ {
"defaultAction": "SCMP_ACT_ERRNO", "defaultAction": "SCMP_ACT_ERRNO",
"architectures": [
"SCMP_ARCH_X86",
"SCMP_ARCH_X32",
"SCMP_ARCH_X86_64",
"SCMP_ARCH_AARCH64",
"SCMP_ARCH_ARM"
],
"syscalls": [ "syscalls": [
{ {
"action": "SCMP_ACT_ALLOW", "action": "SCMP_ACT_ALLOW",
-7
View File
@@ -1,13 +1,6 @@
{ {
"defaultAction": "SCMP_ACT_ERRNO", "defaultAction": "SCMP_ACT_ERRNO",
"defaultErrnoRet": 6, "defaultErrnoRet": 6,
"architectures": [
"SCMP_ARCH_X86",
"SCMP_ARCH_X32",
"SCMP_ARCH_X86_64",
"SCMP_ARCH_AARCH64",
"SCMP_ARCH_ARM"
],
"syscalls": [ "syscalls": [
{ {
"action": "SCMP_ACT_ALLOW", "action": "SCMP_ACT_ALLOW",