Documentation ¶
Overview ¶
Package seccomp provides native seccomp ( https://www.kernel.org/doc/Documentation/prctl/seccomp_filter.txt ) support for go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int
Action is the type of action that will be taken when a syscall is performed.
type Arg ¶
type Arg struct { Index uint32 // index of args which start from zero Op Operator // operation, such as EQ/NE/GE/LE Value uint // the value of arg }
Arg represents an argument to the syscall with the argument's index, the operator to apply when matching, and the argument's value at that time.
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context holds syscalls for the current process to limit the type of actions the calling process can make.
func (*Context) Add ¶
Add will add the specified syscall, action, and arguments to the seccomp Context.
type Syscall ¶
type Syscall struct { // Value is the syscall number. Value uint32 // Action is the action to perform when the specified syscall is made. Action Action // Args are filters that can be specified on the arguments to the syscall. Args Args }
Syscall is the specified syscall, action, and any type of arguments to filter on.
Click to show internal directories.
Click to hide internal directories.