apparmor

package
v1.25.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultProfile = "crio-default"

DefaultProfile is the default profile name

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config is the global AppArmor configuration type

func New

func New() *Config

New creates a new default AppArmor configuration instance

func (*Config) Apply

func (c *Config) Apply(profile string) (string, error)

Apply returns the trimmed AppArmor profile to be used and reloads if the default profile is specified

func (*Config) IsEnabled

func (c *Config) IsEnabled() bool

IsEnabled returns true if AppArmor is enabled via the `apparmor` buildtag and globally by the system.

func (*Config) LoadProfile

func (c *Config) LoadProfile(profile string) error

LoadProfile can be used to load a AppArmor profile from the provided path. This method will not fail if AppArmor is disabled.

Jump to

Keyboard shortcuts

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