package apparmor
import "github.com/containerd/containerd/pkg/apparmor"
Index ¶
Functions ¶
func HostSupports ¶
func HostSupports() bool
HostSupports returns true if apparmor is enabled for the host, // On non-Linux returns false On Linux returns true if apparmor_parser is enabled, and if we
are not running docker-in-docker. It is a modified version of libcontainer/apparmor.IsEnabled(), which does not check for apparmor_parser to be present, or if we're running docker-in-docker.
Source Files ¶
- Version
- v1.5.13
- Published
- Jun 6, 2022
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 4 minutes ago –
Tools for package owners.