Files
podman/pkg/apparmor/apparmor_unsupported.go
Valentin Rothberg 8569ed0305 AppArmor: runtime check if it's enabled on the host
Check at runtime if AppArmor is enabled on the host.

Signed-off-by: Valentin Rothberg <vrothberg@suse.com>

Closes: #1128
Approved by: mheon
2018-07-23 18:11:09 +00:00

21 lines
556 B
Go

// +build !linux !apparmor
package apparmor
// IsEnabled returns true if AppArmor is enabled on the host.
func IsEnabled() bool {
return false
}
// InstallDefault generates a default profile in a temp directory determined by
// os.TempDir(), then loads the profile into the kernel using 'apparmor_parser'.
func InstallDefault(name string) error {
return ErrApparmorUnsupported
}
// IsLoaded checks if a profile with the given name has been loaded into the
// kernel.
func IsLoaded(name string) (bool, error) {
return false, ErrApparmorUnsupported
}