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.15
Published
Jan 5, 2023
Platform
js/wasm
Last checked
5 minutes ago

Tools for package owners.