import "k8s.io/kubernetes/pkg/security/apparmor"
GetProfileName returns the name of the profile to use with the container.
GetProfileNameFromPodAnnotations gets the name of the profile to use with container from pod annotations
IsAppArmorEnabled returns true if apparmor is enabled for the host. This function is forked from https://github.com/opencontainers/runc/blob/1a81e9ab1f138c091fe5c86d0883f87716088527/libcontainer/apparmor/apparmor.go to avoid the libapparmor dependency.
SetProfileName sets the name of the profile to use with the container.
func SetProfileNameFromPodAnnotations(annotations map[string]string, containerName, profileName string) error
SetProfileNameFromPodAnnotations sets the name of the profile to use with the container.
ValidateProfileFormat checks the format of the profile.
Validator is a interface for validating that a pod with an AppArmor profile can be run by a Node.
NewValidator is in order to find AppArmor FS
Package apparmor imports 13 packages (graph) and is imported by 291 packages. Updated 2020-04-17. Refresh now. Tools for package owners.