コード例 #1
0
ファイル: memory.go プロジェクト: tudalex/mig
func init() {
	m := new(module)
	sandbox := sandbox.SandboxProfile{
		DefaultPolicy: seccomp.ActTrap,
		Filters: []sandbox.FilterOperation{
			sandbox.FilterOperation{
				FilterOn: []string{
					"openat",
					"close",
					"pread64",
					"read",
					"futex",
					"lstat",
					"sched_yield", // GO
					"readlinkat",
					"write",
					"mmap",
					"sigaltstack",     // GO
					"gettid",          // GO
					"set_robust_list", // GO
					"getdents64",
					"clone", // GO

					// Used for pretty printing the violating syscall (rare)
					"exit_group",
					"rt_sigreturn",
				},
				Action: seccomp.ActAllow,
			},
		},
	}
	m.SandboxProfile = sandbox
	modules.Register("memory", m)
}
コード例 #2
0
ファイル: timedrift.go プロジェクト: tudalex/mig
func init() {
	m := new(module)
	sandbox := sandbox.SandboxProfile{
		DefaultPolicy: seccomp.ActTrap,
		Filters: []sandbox.FilterOperation{
			sandbox.FilterOperation{
				FilterOn: []string{
					"select",
					"futex",
					"write",
					"read",
					"epoll_ctl",
					"close",
					"epoll_wait",
					"mmap",
					"socket",
					"setsockopt",
					"connect",
					"getsockname",
					"getpeername",
					"rt_sigprocmask",
					"mprotect",
					"openat",
					"sigaltstack",
					"gettid",
					"stat",
					"set_robust_list",

					"sched_yield",
					"clone",
					"epoll_create1",
					// Used for pretty printing the violating syscall (rare)
					"exit_group",
					"rt_sigreturn",
				},
				Action: seccomp.ActAllow,
			},
		},
	}
	m.SandboxProfile = sandbox
	modules.Register("timedrift", m)
}
コード例 #3
0
ファイル: example.go プロジェクト: jvehent/mig
// init is called by the Go runtime at startup. We use this function to
// register the module in a global array of available modules, so the
// agent knows we exist
func init() {
	modules.Register("example", new(module))
}
コード例 #4
0
ファイル: pkg.go プロジェクト: sneha29shukla/mig
func init() {
	modules.Register("pkg", new(module))
}
コード例 #5
0
ファイル: memory.go プロジェクト: jvehent/mig
func init() {
	modules.Register("memory", new(module))
}
コード例 #6
0
ファイル: scribe.go プロジェクト: agnivesh/mig
func init() {
	modules.Register("scribe", new(module))
}
コード例 #7
0
ファイル: agentdestroy.go プロジェクト: ZhuHangpeng/mig
func init() {
	modules.Register("agentdestroy", new(module))
}
コード例 #8
0
ファイル: upgrade.go プロジェクト: tudalex/mig
func init() {
	modules.Register("upgrade", new(module))
}
コード例 #9
0
ファイル: netstat.go プロジェクト: sneha29shukla/mig
func init() {
	modules.Register("netstat", new(module))
}
コード例 #10
0
ファイル: timedrift.go プロジェクト: jvehent/mig
func init() {
	modules.Register("timedrift", new(module))
}