Update the default seccomp to block socket calls to AF_VSOCK
Signed-off-by: Zhuchen Wang <zcwang@google.com>
This commit is contained in:
parent
32aa33a9f4
commit
17a9324035
@ -357,7 +357,6 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
|
|||||||
"signalfd4",
|
"signalfd4",
|
||||||
"sigprocmask",
|
"sigprocmask",
|
||||||
"sigreturn",
|
"sigreturn",
|
||||||
"socket",
|
|
||||||
"socketcall",
|
"socketcall",
|
||||||
"socketpair",
|
"socketpair",
|
||||||
"splice",
|
"splice",
|
||||||
@ -411,6 +410,17 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
|
|||||||
Action: specs.ActAllow,
|
Action: specs.ActAllow,
|
||||||
Args: []specs.LinuxSeccompArg{},
|
Args: []specs.LinuxSeccompArg{},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Names: []string{"socket"},
|
||||||
|
Action: specs.ActAllow,
|
||||||
|
Args: []specs.LinuxSeccompArg{
|
||||||
|
{
|
||||||
|
Index: 0,
|
||||||
|
Value: unix.AF_VSOCK,
|
||||||
|
Op: specs.OpNotEqual,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Names: []string{"personality"},
|
Names: []string{"personality"},
|
||||||
Action: specs.ActAllow,
|
Action: specs.ActAllow,
|
||||||
|
Loading…
Reference in New Issue
Block a user