mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 22:37:14 +08:00
c064304692
This prevents having to maintain GoDoc for the stub implementations, and makes sure that the "stub" implementations have the same signature as the "non-stub" versions. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
17 lines
532 B
Go
17 lines
532 B
Go
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")
|
|
)
|