apparmor

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpDefaultProfile added in v1.6.9

func DumpDefaultProfile(name string) (string, error)

DumpDefaultProfile dumps the default profile with the given name.

func LoadDefaultProfile added in v1.6.9

func LoadDefaultProfile(name string) error

LoadDefaultProfile ensures the default profile to be loaded with the given name. Returns nil error if the profile is already loaded.

func WithDefaultProfile

func WithDefaultProfile(name string) oci.SpecOpts

WithDefaultProfile will generate a default apparmor profile under the provided name for the container. It is only generated if a profile under that name does not exist.

func WithProfile

func WithProfile(profile string) oci.SpecOpts

WithProfile sets the provided apparmor profile to the spec

Types

This section is empty.

Jump to

Keyboard shortcuts

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