2015-12-29 03:24:44 +00:00
|
|
|
// +build linux,seccomp
|
2015-12-18 18:01:58 +00:00
|
|
|
|
2016-01-19 22:57:03 +00:00
|
|
|
package seccomp
|
2015-12-18 18:01:58 +00:00
|
|
|
|
2015-12-29 21:06:10 +00:00
|
|
|
import (
|
|
|
|
"syscall"
|
|
|
|
|
2016-02-18 05:06:07 +00:00
|
|
|
"github.com/docker/engine-api/types"
|
2016-05-06 14:17:41 +00:00
|
|
|
"github.com/opencontainers/specs/specs-go"
|
2016-01-05 14:27:32 +00:00
|
|
|
libseccomp "github.com/seccomp/libseccomp-golang"
|
2015-12-29 21:06:10 +00:00
|
|
|
)
|
2015-12-18 18:01:58 +00:00
|
|
|
|
2016-02-18 05:06:07 +00:00
|
|
|
func arches() []types.Arch {
|
2016-01-05 14:27:32 +00:00
|
|
|
var native, err = libseccomp.GetNativeArch()
|
|
|
|
if err != nil {
|
2016-02-18 05:06:07 +00:00
|
|
|
return []types.Arch{}
|
2016-01-05 14:27:32 +00:00
|
|
|
}
|
|
|
|
var a = native.String()
|
|
|
|
switch a {
|
|
|
|
case "amd64":
|
2016-02-18 05:06:07 +00:00
|
|
|
return []types.Arch{types.ArchX86_64, types.ArchX86, types.ArchX32}
|
2016-01-05 14:27:32 +00:00
|
|
|
case "arm64":
|
2016-02-18 05:06:07 +00:00
|
|
|
return []types.Arch{types.ArchARM, types.ArchAARCH64}
|
2016-01-05 14:27:32 +00:00
|
|
|
case "mips64":
|
2016-02-18 05:06:07 +00:00
|
|
|
return []types.Arch{types.ArchMIPS, types.ArchMIPS64, types.ArchMIPS64N32}
|
2016-01-05 14:27:32 +00:00
|
|
|
case "mips64n32":
|
2016-02-18 05:06:07 +00:00
|
|
|
return []types.Arch{types.ArchMIPS, types.ArchMIPS64, types.ArchMIPS64N32}
|
2016-01-05 14:27:32 +00:00
|
|
|
case "mipsel64":
|
2016-02-18 05:06:07 +00:00
|
|
|
return []types.Arch{types.ArchMIPSEL, types.ArchMIPSEL64, types.ArchMIPSEL64N32}
|
2016-01-05 14:27:32 +00:00
|
|
|
case "mipsel64n32":
|
2016-02-18 05:06:07 +00:00
|
|
|
return []types.Arch{types.ArchMIPSEL, types.ArchMIPSEL64, types.ArchMIPSEL64N32}
|
2016-05-31 13:27:28 +00:00
|
|
|
case "s390x":
|
|
|
|
return []types.Arch{types.ArchS390, types.ArchS390X}
|
2016-01-05 14:27:32 +00:00
|
|
|
default:
|
2016-02-18 05:06:07 +00:00
|
|
|
return []types.Arch{}
|
2016-01-05 14:27:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-18 05:06:07 +00:00
|
|
|
// DefaultProfile defines the whitelist for the default seccomp profile.
|
2016-05-06 14:17:41 +00:00
|
|
|
func DefaultProfile(rs *specs.Spec) *types.Seccomp {
|
|
|
|
|
|
|
|
syscalls := []*types.Syscall{
|
2015-12-18 18:01:58 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "accept",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "accept4",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "access",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "alarm",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "bind",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "brk",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "capget",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
2015-12-29 17:28:30 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "capset",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 17:28:30 +00:00
|
|
|
},
|
2015-12-29 12:48:16 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "chdir",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 12:48:16 +00:00
|
|
|
},
|
2015-12-18 18:01:58 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "chmod",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2016-05-25 19:49:30 +00:00
|
|
|
{
|
|
|
|
Name: "chown",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "chown32",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "clock_getres",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "clock_gettime",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "clock_nanosleep",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "close",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "connect",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
2016-03-16 21:17:32 +00:00
|
|
|
{
|
|
|
|
Name: "copy_file_range",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
2015-12-29 12:31:33 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "creat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 12:31:33 +00:00
|
|
|
},
|
2015-12-18 18:01:58 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "dup",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "dup2",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "dup3",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "epoll_create",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "epoll_create1",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
2015-12-29 17:02:11 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "epoll_ctl",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 17:02:11 +00:00
|
|
|
},
|
2015-12-18 18:01:58 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "epoll_ctl_old",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "epoll_pwait",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "epoll_wait",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "epoll_wait_old",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "eventfd",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "eventfd2",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "execve",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "execveat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "exit",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "exit_group",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "faccessat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "fadvise64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "fadvise64_64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-18 18:01:58 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "fallocate",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
2015-12-29 17:02:11 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "fanotify_mark",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 17:02:11 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "fchdir",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 17:02:11 +00:00
|
|
|
},
|
2015-12-18 18:01:58 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "fchmod",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "fchmodat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
2016-05-25 19:49:30 +00:00
|
|
|
{
|
|
|
|
Name: "fchown",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "fchown32",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "fchownat",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
2015-12-18 18:01:58 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "fcntl",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "fcntl64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-18 18:01:58 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "fdatasync",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "fgetxattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "flistxattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "flock",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "fork",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "fremovexattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "fsetxattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "fstat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "fstat64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "fstatat64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "fstatfs",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "fstatfs64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "fsync",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "ftruncate",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "ftruncate64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "futex",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "futimesat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getcpu",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getcwd",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getdents",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getdents64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getegid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "getegid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "geteuid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "geteuid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "getgid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "getgid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "getgroups",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "getgroups32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "getitimer",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getpeername",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getpgid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getpgrp",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getpid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getppid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getpriority",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getrandom",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getresgid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "getresgid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "getresuid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "getresuid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "getrlimit",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "get_robust_list",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getrusage",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getsid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getsockname",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getsockopt",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "get_thread_area",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "gettid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "gettimeofday",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "getuid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "getuid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "getxattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "inotify_add_watch",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "inotify_init",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "inotify_init1",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "inotify_rm_watch",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "io_cancel",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "ioctl",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "io_destroy",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "io_getevents",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "ioprio_get",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "ioprio_set",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "io_setup",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "io_submit",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2016-03-05 22:10:12 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "ipc",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "kill",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2016-05-25 19:49:30 +00:00
|
|
|
{
|
|
|
|
Name: "lchown",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "lchown32",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "lgetxattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "link",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "linkat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "listen",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "listxattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "llistxattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2016-01-04 18:21:51 +00:00
|
|
|
{
|
|
|
|
Name: "_llseek",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2016-01-04 18:21:51 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "lremovexattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "lseek",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "lsetxattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "lstat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "lstat64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "madvise",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "memfd_create",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mincore",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mkdir",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mkdirat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mknod",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mknodat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2016-06-15 20:25:27 +00:00
|
|
|
{
|
|
|
|
Name: "mlock",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mlock2",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mlockall",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "mmap",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mmap2",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mprotect",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mq_getsetattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mq_notify",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mq_open",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mq_timedreceive",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mq_timedsend",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mq_unlink",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mremap",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "msgctl",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "msgget",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "msgrcv",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "msgsnd",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "msync",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "munlock",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "munlockall",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "munmap",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "nanosleep",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "newfstatat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "_newselect",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "open",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "openat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "pause",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2016-02-24 19:47:50 +00:00
|
|
|
{
|
|
|
|
Name: "personality",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{
|
|
|
|
{
|
|
|
|
Index: 0,
|
|
|
|
Value: 0x0,
|
|
|
|
Op: types.OpEqualTo,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "personality",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{
|
|
|
|
{
|
|
|
|
Index: 0,
|
|
|
|
Value: 0x0008,
|
|
|
|
Op: types.OpEqualTo,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "personality",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{
|
|
|
|
{
|
|
|
|
Index: 0,
|
|
|
|
Value: 0xffffffff,
|
|
|
|
Op: types.OpEqualTo,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "pipe",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "pipe2",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "poll",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "ppoll",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "prctl",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "pread64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "preadv",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "prlimit64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "pselect6",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "pwrite64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "pwritev",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "read",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "readahead",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "readlink",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "readlinkat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "readv",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2016-01-19 03:24:01 +00:00
|
|
|
{
|
|
|
|
Name: "recv",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2016-01-19 03:24:01 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "recvfrom",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "recvmmsg",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "recvmsg",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "remap_file_pages",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "removexattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "rename",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "renameat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "renameat2",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2016-03-11 11:01:20 +00:00
|
|
|
{
|
|
|
|
Name: "restart_syscall",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "rmdir",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "rt_sigaction",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "rt_sigpending",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "rt_sigprocmask",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "rt_sigqueueinfo",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "rt_sigreturn",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "rt_sigsuspend",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "rt_sigtimedwait",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "rt_tgsigqueueinfo",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sched_getaffinity",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sched_getattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sched_getparam",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sched_get_priority_max",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sched_get_priority_min",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sched_getscheduler",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sched_rr_get_interval",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sched_setaffinity",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sched_setattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sched_setparam",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sched_setscheduler",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sched_yield",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "seccomp",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "select",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "semctl",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "semget",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "semop",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "semtimedop",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
2016-01-19 03:24:01 +00:00
|
|
|
Name: "send",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2016-01-19 03:24:01 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "sendfile",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "sendfile64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "sendmmsg",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sendmsg",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sendto",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "setfsgid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "setfsgid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "setfsuid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "setfsuid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "setgid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "setgid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "setgroups",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "setgroups32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "setitimer",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "setpgid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "setpriority",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "setregid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "setregid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "setresgid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "setresgid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "setresuid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "setresuid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "setreuid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "setreuid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "setrlimit",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "set_robust_list",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "setsid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "setsockopt",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "set_thread_area",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "set_tid_address",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:48:31 +00:00
|
|
|
Name: "setuid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:48:31 +00:00
|
|
|
Name: "setuid32",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "setxattr",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "shmat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "shmctl",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "shmdt",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "shmget",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "shutdown",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sigaltstack",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "signalfd",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "signalfd4",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2016-01-04 23:56:01 +00:00
|
|
|
{
|
|
|
|
Name: "sigreturn",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2016-01-04 23:56:01 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "socket",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2016-05-23 22:19:19 +00:00
|
|
|
{
|
|
|
|
Name: "socketcall",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "socketpair",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "splice",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "stat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "stat64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "statfs",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "statfs64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "symlink",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "symlinkat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sync",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sync_file_range",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "syncfs",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sysinfo",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "syslog",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "tee",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "tgkill",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "time",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "timer_create",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "timer_delete",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "timerfd_create",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "timerfd_gettime",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "timerfd_settime",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "timer_getoverrun",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "timer_gettime",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "timer_settime",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "times",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "tkill",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "truncate",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 21:48:31 +00:00
|
|
|
{
|
|
|
|
Name: "truncate64",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "ugetrlimit",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:48:31 +00:00
|
|
|
},
|
2015-12-29 21:06:10 +00:00
|
|
|
{
|
|
|
|
Name: "umask",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "uname",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "unlink",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "unlinkat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 21:06:10 +00:00
|
|
|
},
|
2015-12-29 15:22:52 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "utime",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 15:22:52 +00:00
|
|
|
},
|
2015-12-18 18:01:58 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "utimensat",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "utimes",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "vfork",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "vmsplice",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "wait4",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "waitid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-18 18:01:58 +00:00
|
|
|
},
|
2016-01-05 15:29:59 +00:00
|
|
|
{
|
|
|
|
Name: "waitpid",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2016-01-05 15:29:59 +00:00
|
|
|
},
|
2015-12-29 15:47:23 +00:00
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "write",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 15:47:23 +00:00
|
|
|
},
|
|
|
|
{
|
2015-12-29 21:06:10 +00:00
|
|
|
Name: "writev",
|
2016-02-18 05:06:07 +00:00
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
2015-12-29 15:47:23 +00:00
|
|
|
},
|
2016-05-06 14:17:41 +00:00
|
|
|
}
|
|
|
|
|
2016-05-31 13:27:28 +00:00
|
|
|
var sysCloneFlagsIndex uint
|
2016-05-06 14:17:41 +00:00
|
|
|
var arch string
|
|
|
|
var native, err = libseccomp.GetNativeArch()
|
|
|
|
if err == nil {
|
|
|
|
arch = native.String()
|
|
|
|
}
|
|
|
|
switch arch {
|
|
|
|
case "arm", "arm64":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "breakpoint",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "cacheflush",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "set_tls",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
case "amd64", "x32":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "arch_prctl",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
fallthrough
|
|
|
|
case "x86":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "modify_ldt",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
2016-05-31 13:27:28 +00:00
|
|
|
case "s390", "s390x":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "s390_pci_mmio_read",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "s390_pci_mmio_write",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "s390_runtime_instr",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
/* Flags parameter of the clone syscall is the 2nd on s390 */
|
|
|
|
sysCloneFlagsIndex = 1
|
2016-05-06 14:17:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
capSysAdmin := false
|
|
|
|
|
|
|
|
var cap string
|
|
|
|
for _, cap = range rs.Process.Capabilities {
|
|
|
|
switch cap {
|
|
|
|
case "CAP_DAC_READ_SEARCH":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "name_to_handle_at",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "open_by_handle_at",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
case "CAP_SYS_ADMIN":
|
|
|
|
capSysAdmin = true
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "bpf",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "clone",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "fanotify_init",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "lookup_dcookie",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "mount",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "perf_event_open",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "setdomainname",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "sethostname",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "setns",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "umount",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "umount2",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "unshare",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
case "CAP_SYS_BOOT":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "reboot",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
case "CAP_SYS_CHROOT":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "chroot",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
case "CAP_SYS_MODULE":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "delete_module",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "init_module",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "finit_module",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "query_module",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
case "CAP_SYS_PACCT":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "acct",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
case "CAP_SYS_PTRACE":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "kcmp",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "process_vm_readv",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "process_vm_writev",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "ptrace",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
case "CAP_SYS_RAWIO":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "iopl",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "ioperm",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
case "CAP_SYS_TIME":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "settimeofday",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "stime",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "adjtimex",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
case "CAP_SYS_TTY_CONFIG":
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "vhangup",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if !capSysAdmin {
|
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|
|
|
|
{
|
|
|
|
Name: "clone",
|
|
|
|
Action: types.ActAllow,
|
|
|
|
Args: []*types.Arg{
|
|
|
|
{
|
2016-05-31 13:27:28 +00:00
|
|
|
Index: sysCloneFlagsIndex,
|
2016-05-06 14:17:41 +00:00
|
|
|
Value: syscall.CLONE_NEWNS | syscall.CLONE_NEWUTS | syscall.CLONE_NEWIPC | syscall.CLONE_NEWUSER | syscall.CLONE_NEWPID | syscall.CLONE_NEWNET,
|
|
|
|
ValueTwo: 0,
|
|
|
|
Op: types.OpMaskedEqual,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}...)
|
|
|
|
}
|
|
|
|
|
|
|
|
return &types.Seccomp{
|
|
|
|
DefaultAction: types.ActErrno,
|
|
|
|
Architectures: arches(),
|
|
|
|
Syscalls: syscalls,
|
|
|
|
}
|
2015-12-18 18:01:58 +00:00
|
|
|
}
|