summaryrefslogtreecommitdiff
path: root/pkg/apparmor/apparmor_unsupported.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-01-10 03:34:54 -0800
committerGitHub <noreply@github.com>2019-01-10 03:34:54 -0800
commit64627d910b2113fa2de6b949d846af379e75e305 (patch)
treed555591919d240a25827eb3737446260c04496e0 /pkg/apparmor/apparmor_unsupported.go
parent0f6535cf6b4bfac265983c2fdd3482310ab4f39b (diff)
parentedb285d17675061832aceaf72021b87aba149438 (diff)
downloadpodman-64627d910b2113fa2de6b949d846af379e75e305.tar.gz
podman-64627d910b2113fa2de6b949d846af379e75e305.tar.bz2
podman-64627d910b2113fa2de6b949d846af379e75e305.zip
Merge pull request #2114 from vrothberg/issue-2107
apparmor: apply default profile at container initialization
Diffstat (limited to 'pkg/apparmor/apparmor_unsupported.go')
-rw-r--r--pkg/apparmor/apparmor_unsupported.go16
1 files changed, 11 insertions, 5 deletions
diff --git a/pkg/apparmor/apparmor_unsupported.go b/pkg/apparmor/apparmor_unsupported.go
index df1336b07..b2b4de5f5 100644
--- a/pkg/apparmor/apparmor_unsupported.go
+++ b/pkg/apparmor/apparmor_unsupported.go
@@ -2,19 +2,25 @@
package apparmor
-// IsEnabled returns true if AppArmor is enabled on the host.
+// IsEnabled dummy.
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'.
+// InstallDefault dummy.
func InstallDefault(name string) error {
return ErrApparmorUnsupported
}
-// IsLoaded checks if a profile with the given name has been loaded into the
-// kernel.
+// IsLoaded dummy.
func IsLoaded(name string) (bool, error) {
return false, ErrApparmorUnsupported
}
+
+// CheckProfileAndLoadDefault dummy.
+func CheckProfileAndLoadDefault(name string) (string, error) {
+ if name == "" {
+ return "", nil
+ }
+ return "", ErrApparmorUnsupported
+}