package apparmor

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

Index

Variables

var (
	// IsEnabled returns true if apparmor is enabled for the host.
	IsEnabled = isEnabled

	// 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.
	ApplyProfile = applyProfile

	// ErrApparmorNotEnabled indicates that AppArmor is not enabled or not supported.
	ErrApparmorNotEnabled = errors.New("apparmor: config provided but apparmor not supported")
)

Source Files

apparmor.go apparmor_linux.go

Version
v1.2.6 (latest)
Published
Mar 14, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
28 minutes ago

Tools for package owners.