mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Restrict seccomp filters for UDS support.
This commit further restricts the seccomp filters required for Gofer access ot Unix Domain Sockets (UDS).
This commit is contained in:
@@ -39,6 +39,8 @@ var allowedSyscalls = seccomp.SyscallRules{
|
||||
syscall.SYS_SETSOCKOPT: []seccomp.Rule{
|
||||
{
|
||||
seccomp.AllowAny{},
|
||||
seccomp.AllowValue(syscall.SOL_SOCKET),
|
||||
seccomp.AllowValue(syscall.SO_BROADCAST),
|
||||
},
|
||||
},
|
||||
syscall.SYS_GETSOCKNAME: []seccomp.Rule{
|
||||
@@ -110,6 +112,7 @@ var allowedSyscalls = seccomp.SyscallRules{
|
||||
},
|
||||
{
|
||||
seccomp.AllowAny{},
|
||||
seccomp.AllowValue(syscall.F_DUPFD_CLOEXEC),
|
||||
},
|
||||
},
|
||||
syscall.SYS_FSTAT: {},
|
||||
|
||||
Reference in New Issue
Block a user