seccomp

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSeccompNotEnabled = errors.New("seccomp: config provided but seccomp not supported")

Functions

func ConvertStringToAction added in v0.0.4

func ConvertStringToAction(in string) (configs.Action, error)

ConvertStringToAction converts a string into a Seccomp rule match action. Actions use the names they are assigned in Libseccomp's header, though some (notable, SCMP_ACT_TRACE) are not available in this implementation and will return errors. Attempting to convert a string that is not a valid action results in an error.

func ConvertStringToArch added in v0.0.5

func ConvertStringToArch(in string) (string, error)

ConvertStringToArch converts a string into a Seccomp comparison arch.

func ConvertStringToOperator added in v0.0.4

func ConvertStringToOperator(in string) (configs.Operator, error)

ConvertStringToOperator converts a string into a Seccomp comparison operator. Comparison operators use the names they are assigned by Libseccomp's header. Attempting to convert a string that is not a valid operator results in an error.

func InitSeccomp added in v0.0.4

func InitSeccomp(config *configs.Seccomp) error

Seccomp not supported, do nothing

func IsEnabled added in v0.0.7

func IsEnabled() bool

IsEnabled returns false, because it is not supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL