aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/opencontainers/runc/libcontainer/apparmor/apparmor.go
blob: 4b03d4c715c54b56c9554f49d29801a32fad6ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package apparmor

import "errors"

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")
)