package apparmor

import "github.com/opencontainers/runc/libcontainer/apparmor"

Index

Variables

var ErrApparmorNotEnabled = errors.New("apparmor: config provided but apparmor not supported")

ErrApparmorNotEnabled indicates that AppArmor is not enabled or not supported.

Functions

func ApplyProfile

func ApplyProfile(name string) error

ApplyProfile will apply the profile with the specified name to the process after the next exec. It is only supported on Linux and produces an ErrApparmorNotEnabled on other platforms.

func IsEnabled

func IsEnabled() bool

IsEnabled returns true if apparmor is enabled for the host.

Source Files

apparmor.go apparmor_unsupported.go

Version
v1.4.2 (latest)
Published
Apr 2, 2026
Platform
windows/amd64
Imports
1 packages
Last checked
2 minutes ago

Tools for package owners.