lxd: github.com/lxc/lxd/lxd/apparmor Index | Files

package apparmor

import "github.com/lxc/lxd/lxd/apparmor"

Index

Package Files

apparmor.go

func DeleteProfile Uses

func DeleteProfile(state *state.State, c instance)

DeleteProfile removes the policy from cache/disk.

func Destroy Uses

func Destroy(state *state.State, c instance) error

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

func LoadProfile Uses

func LoadProfile(state *state.State, c instance) error

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

func Namespace Uses

func Namespace(c instance) string

Namespace returns the instance's apparmor namespace.

func ParseProfile Uses

func ParseProfile(state *state.State, c instance) error

ParseProfile parses the profile without loading it into the kernel.

func ProfileFull Uses

func ProfileFull(c instance) string

ProfileFull returns the instance's apparmor profile.

Package apparmor imports 12 packages (graph) and is imported by 4 packages. Updated 2020-04-06. Refresh now. Tools for package owners.