apparmor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Empty      = ""
	Unconfined = "unconfined"
)

Variables

View Source
var (
	ErrServiceAppArmor    = errors.New("apparmor service error")
	ErrUnsupported        = errors.New("it does not seem like apparmor is enabled on the host")
	ErrCannotLoadOrUnload = errors.New("not enough permissions to load or unload profiles")
	ErrCannotApply        = errors.New("requested profile cannot be applied (you should check if it is loaded)")
)

Functions

func GetInfo

func GetInfo(withName string) (bool, error)

func GetSpecOptions

func GetSpecOptions(securityOpt string) (oci.SpecOpts, error)

func Inspect

func Inspect(asName string) (string, error)

func List

func List() ([]*apparmor.Profile, error)

func ListNames

func ListNames() ([]string, error)

func Load

func Load(asName string) error

func Unload

func Unload(profileName string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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