Skip to content

Commit

Permalink
Merge pull request #43092 from nmeum/swapcontext-syscall
Browse files Browse the repository at this point in the history
seccomp: add support for "swapcontext" syscall in default policy
  • Loading branch information
thaJeztah committed Jan 6, 2022
2 parents 6faceab + 85eaf23 commit b0806bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion profiles/seccomp/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,8 @@
},
{
"names": [
"sync_file_range2"
"sync_file_range2",
"swapcontext"
],
"action": "SCMP_ACT_ALLOW",
"includes": {
Expand Down
1 change: 1 addition & 0 deletions profiles/seccomp/default_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ func DefaultProfile() *Seccomp {
LinuxSyscall: specs.LinuxSyscall{
Names: []string{
"sync_file_range2",
"swapcontext",
},
Action: specs.ActAllow,
},
Expand Down

0 comments on commit b0806bd

Please sign in to comment.