apparmor

package
Version: v0.0.0-...-433fd04 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DnsmasqProfileName

func DnsmasqProfileName(n network) string

DnsmasqProfileName returns the AppArmor profile name.

func ForkdnsProfileName

func ForkdnsProfileName(n network) string

ForkdnsProfileName returns the AppArmor profile name.

func ForkproxyDelete

func ForkproxyDelete(state *state.State, inst instance, dev device) error

ForkproxyDelete removes the policy from cache/disk.

func ForkproxyLoad

func ForkproxyLoad(state *state.State, inst instance, dev device) error

ForkproxyLoad ensures that the instances's policy is loaded into the kernel so the it can boot.

func ForkproxyProfileName

func ForkproxyProfileName(inst instance, dev device) string

ForkproxyProfileName returns the AppArmor profile name.

func ForkproxyUnload

func ForkproxyUnload(state *state.State, inst instance, dev device) error

ForkproxyUnload ensures that the instances's policy namespace is unloaded to free kernel memory. This does not delete the policy from disk or cache.

func InstanceDelete

func InstanceDelete(state *state.State, inst instance) error

InstanceDelete removes the policy from cache/disk.

func InstanceLoad

func InstanceLoad(state *state.State, inst instance) error

InstanceLoad ensures that the instances's policy is loaded into the kernel so the it can boot.

func InstanceNamespaceName

func InstanceNamespaceName(inst instance) string

InstanceNamespaceName returns the instance's AppArmor namespace.

func InstanceProfileName

func InstanceProfileName(inst instance) string

InstanceProfileName returns the instance's AppArmor profile name.

func InstanceUnload

func InstanceUnload(state *state.State, inst instance) error

InstanceUnload ensures that the instances's policy namespace is unloaded to free kernel memory. This does not delete the policy from disk or cache.

func InstanceValidate

func InstanceValidate(state *state.State, inst instance) error

InstanceValidate generates the instance profile file and validates it.

func NetworkDelete

func NetworkDelete(state *state.State, n network) error

NetworkDelete removes the profiles from cache/disk.

func NetworkLoad

func NetworkLoad(state *state.State, n network) error

NetworkLoad ensures that the network's profiles are loaded into the kernel.

func NetworkUnload

func NetworkUnload(state *state.State, n network) error

NetworkUnload ensures that the network's profiles are unloaded to free kernel memory. This does not delete the policy from disk or cache.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL