seccomputils

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SeccompProfileTemplate string

Functions

func BuildProfile

func BuildProfile(syscalls []string) (string, error)

BuildProfile builds the seccomp profile from the list of syscalls

func IsValidSyscall added in v0.8.1

func IsValidSyscall(syscall string) bool

IsValidSyscall returns true if a valid system call was passed to the function. Returns false otherwise.

func Print added in v0.8.1

func Print(writer io.Writer, syscalls []uint32) error

Print takes an io.Writer and slice of syscall ids, to print them on the writer (this could be a file or stdout). it convert the ids to their equivalent name. e.g. id=1 -> syscall=write

Types

type SeccompContent

type SeccompContent struct {
	Syscalls []string
}

Data to hold the syscalls

Jump to

Keyboard shortcuts

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