package apparmor
import "github.com/containerd/containerd/contrib/apparmor"
Index ¶
- func DumpDefaultProfile(name string) (string, error)
- func LoadDefaultProfile(name string) error
- func WithDefaultProfile(name string) oci.SpecOpts
- func WithProfile(profile string) oci.SpecOpts
Functions ¶
func DumpDefaultProfile ¶
DumpDefaultProfile dumps the default profile with the given name.
func LoadDefaultProfile ¶
LoadDefaultProfile ensures the default profile to be loaded with the given name. Returns nil error if the profile is already loaded.
func WithDefaultProfile ¶
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 ¶
WithProfile sets the provided apparmor profile to the spec
Source Files ¶
- Version
- v1.5.15
- Published
- Dec 6, 2022
- Platform
- linux/amd64
- Imports
- 16 packages
- Last checked
- 34 minutes ago –
Tools for package owners.