diff options
author | Valentin Rothberg <vrothberg@suse.com> | 2018-07-22 17:45:36 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-07-23 18:11:09 +0000 |
commit | 8569ed03056ce39e0dc163747089ed4b60b1b9b1 (patch) | |
tree | d1ab8cbae6dfc8ef27158f0b8890d2bec275e30d /pkg/apparmor/apparmor_unsupported.go | |
parent | 2c11e38b24942a18f43cb27d6c5145850a40be54 (diff) | |
download | podman-8569ed03056ce39e0dc163747089ed4b60b1b9b1.tar.gz podman-8569ed03056ce39e0dc163747089ed4b60b1b9b1.tar.bz2 podman-8569ed03056ce39e0dc163747089ed4b60b1b9b1.zip |
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
Diffstat (limited to 'pkg/apparmor/apparmor_unsupported.go')
-rw-r--r-- | pkg/apparmor/apparmor_unsupported.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/apparmor/apparmor_unsupported.go b/pkg/apparmor/apparmor_unsupported.go index 0f1ab9464..df1336b07 100644 --- a/pkg/apparmor/apparmor_unsupported.go +++ b/pkg/apparmor/apparmor_unsupported.go @@ -2,6 +2,11 @@ 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 { |