Documentation ¶
Overview ¶
Package libseccomp provides a wrapper for "github.com/seccomp/libseccomp-golang"
Index ¶
Constants ¶
View Source
const ( MsgDisallow int16 = iota + 1 MsgHandle )
MsgDisallow, Msghandle defines the action needed when trapped by seccomp filter
Variables ¶
This section is empty.
Functions ¶
func ExportBPF ¶
func ExportBPF(filter []bpf.Instruction) (seccomp.Filter, error)
ExportBPF convert libseccomp filter to kernel readable BPF content
func ToSeccompAction ¶
func ToSeccompAction(a Action) libseccomp.Action
ToSeccompAction convert action to libseccomp compatible action
func ToSyscallName ¶
ToSyscallName convert syscallno to syscall name
Types ¶
Click to show internal directories.
Click to hide internal directories.