|
@@ -42,6 +42,7 @@ func arches() []Architecture {
|
|
|
|
|
|
// DefaultProfile defines the allowed syscalls for the default seccomp profile.
|
|
|
func DefaultProfile() *Seccomp {
|
|
|
+ nosys := uint(unix.ENOSYS)
|
|
|
syscalls := []*Syscall{
|
|
|
{
|
|
|
LinuxSyscall: specs.LinuxSyscall{
|
|
@@ -546,6 +547,7 @@ func DefaultProfile() *Seccomp {
|
|
|
Names: []string{
|
|
|
"bpf",
|
|
|
"clone",
|
|
|
+ "clone3",
|
|
|
"fanotify_init",
|
|
|
"fsconfig",
|
|
|
"fsmount",
|
|
@@ -615,6 +617,18 @@ func DefaultProfile() *Seccomp {
|
|
|
Caps: []string{"CAP_SYS_ADMIN"},
|
|
|
},
|
|
|
},
|
|
|
+ {
|
|
|
+ LinuxSyscall: specs.LinuxSyscall{
|
|
|
+ Names: []string{
|
|
|
+ "clone3",
|
|
|
+ },
|
|
|
+ Action: specs.ActErrno,
|
|
|
+ ErrnoRet: &nosys,
|
|
|
+ },
|
|
|
+ Excludes: &Filter{
|
|
|
+ Caps: []string{"CAP_SYS_ADMIN"},
|
|
|
+ },
|
|
|
+ },
|
|
|
{
|
|
|
LinuxSyscall: specs.LinuxSyscall{
|
|
|
Names: []string{
|