package apparmor

import "github.com/containerd/containerd/contrib/apparmor"

Index

Functions

func DumpDefaultProfile

func DumpDefaultProfile(name string) (string, error)

DumpDefaultProfile dumps the default profile with the given name.

func LoadDefaultProfile

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

Source Files

apparmor.go template.go

Version
v1.7.11
Published
Dec 8, 2023
Platform
linux/amd64
Imports
13 packages
Last checked
1 minute ago

Tools for package owners.