filter

package
v0.0.0-...-a0bbfda Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0, MIT Imports: 8 Imported by: 3

Documentation

Overview

Package filter installs seccomp filters to prevent prohibited syscalls in case it's compromised.

Index

Constants

View Source
const PrecompilationDisabledAtBuildTime = true

PrecompilationDisabledAtBuildTime is a constant that is used to indicate that precompilation was disabled at build time.

Variables

This section is empty.

Functions

func GetPrecompiled

func GetPrecompiled(programName string) (precompiledseccomp.Program, bool)

GetPrecompiled returns the precompiled program for the given name, and whether that program name exists.

func Install

func Install(opt Options) error

Install seccomp filters based on the given platform.

func ListPrecompiled

func ListPrecompiled() []string

ListPrecompiled returns a list of all registered program names.

Types

type Options

type Options = config.Options

Options is a re-export of the config Options type under this package.

Directories

Path Synopsis
Package config defines all syscalls the sandbox is allowed to make to the host.
Package config defines all syscalls the sandbox is allowed to make to the host.

Jump to

Keyboard shortcuts

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