Skip to content

Commit

Permalink
Merge pull request #44712 from neersighted/20.10_revert_vsock_filter
Browse files Browse the repository at this point in the history
[20.10] Revert "seccomp: block socket calls to AF_VSOCK in default profile"
  • Loading branch information
thaJeztah committed Dec 29, 2022
2 parents d46fe80 + dcf27af commit ae6a931
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
17 changes: 1 addition & 16 deletions profiles/seccomp/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@
"signalfd4",
"sigprocmask",
"sigreturn",
"socket",
"socketcall",
"socketpair",
"splice",
Expand Down Expand Up @@ -416,22 +417,6 @@
},
"excludes": {}
},
{
"names": [
"socket"
],
"action": "SCMP_ACT_ALLOW",
"args": [
{
"index": 0,
"value": 40,
"op": "SCMP_CMP_NE"
}
],
"comment": "",
"includes": {},
"excludes": {}
},
{
"names": [
"personality"
Expand Down
12 changes: 1 addition & 11 deletions profiles/seccomp/default_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ func DefaultProfile() *Seccomp {
"signalfd4",
"sigprocmask",
"sigreturn",
"socket",
"socketcall",
"socketpair",
"splice",
Expand Down Expand Up @@ -403,17 +404,6 @@ func DefaultProfile() *Seccomp {
MinKernel: &KernelVersion{4, 8},
},
},
{
Names: []string{"socket"},
Action: specs.ActAllow,
Args: []*specs.LinuxSeccompArg{
{
Index: 0,
Value: unix.AF_VSOCK,
Op: specs.OpNotEqual,
},
},
},
{
Names: []string{"personality"},
Action: specs.ActAllow,
Expand Down

0 comments on commit ae6a931

Please sign in to comment.