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 Linux returns true if apparmor is enabled, apparmor_parser is present, and if we are not running docker-in-docker.
- On non-Linux returns false.
This is derived from libcontainer/apparmor.IsEnabled(), with the addition of checks for apparmor_parser to be present and docker-in-docker.
Source Files ¶
- Version
- v1.7.15
- Published
- Apr 5, 2024
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 8 seconds ago –
Tools for package owners.