package apparmor
import "github.com/opencontainers/runc/libcontainer/apparmor"
Package apparmor provides a minimal set of helpers to configure the AppArmor profile of the current process, effectively acting as a very stripped-down version of libapparmor.
Index ¶
Variables ¶
ErrApparmorNotEnabled indicates that AppArmor is not enabled or not supported.
Functions ¶
func ApplyProfile ¶
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.5.0-rc.1
- Published
- Mar 13, 2026
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 33 minutes ago –
Tools for package owners.