Merge pull request #43092 from nmeum/swapcontext-syscall

seccomp: add support for "swapcontext" syscall in default policy
This commit is contained in:
Sebastiaan van Stijn 2022-01-06 18:20:24 +01:00 committed by GitHub
commit b0806bdb03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -474,7 +474,8 @@
}, },
{ {
"names": [ "names": [
"sync_file_range2" "sync_file_range2",
"swapcontext"
], ],
"action": "SCMP_ACT_ALLOW", "action": "SCMP_ACT_ALLOW",
"includes": { "includes": {

View File

@ -474,6 +474,7 @@ func DefaultProfile() *Seccomp {
LinuxSyscall: specs.LinuxSyscall{ LinuxSyscall: specs.LinuxSyscall{
Names: []string{ Names: []string{
"sync_file_range2", "sync_file_range2",
"swapcontext",
}, },
Action: specs.ActAllow, Action: specs.ActAllow,
}, },