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

apparmor.go apparmor_unsupported.go

Version
v1.6.14
Published
Dec 19, 2022
Platform
windows/amd64
Last checked
3 minutes ago

Tools for package owners.