package seccomp

import "github.com/opencontainers/runc/libcontainer/seccomp"

Index

Variables

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

Functions

func ConvertStringToAction

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

func ConvertStringToArch(in string) (string, error)

ConvertStringToArch converts a string into a Seccomp comparison arch.

func ConvertStringToOperator

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

func InitSeccomp(config *configs.Seccomp) error

InitSeccomp does nothing because seccomp is not supported.

func IsEnabled

func IsEnabled() bool

IsEnabled returns false, because it is not supported.

func Version

func Version() (uint, uint, uint)

Version returns major, minor, and micro.

Source Files

config.go seccomp_unsupported.go

Directories

PathSynopsis
libcontainer/seccomp/patchbpf
Version
v1.0.0-rc93
Published
Feb 3, 2021
Platform
windows/amd64
Imports
3 packages
Last checked
2 hours ago

Tools for package owners.