summaryrefslogtreecommitdiff
path: root/pkg/apparmor/apparmor_unsupported.go
diff options
context:
space:
mode:
authorSascha Grunert <sgrunert@suse.com>2019-07-18 10:01:45 +0200
committerSascha Grunert <sgrunert@suse.com>2019-07-18 13:14:02 +0200
commit27ebd7d6f074620992be2fe3046cc188701d439f (patch)
tree1752abc11c31b49ebb102a0fb1967d4c66738d38 /pkg/apparmor/apparmor_unsupported.go
parent7488ed6d9a619d86333dc1880d4df034fbb371b9 (diff)
downloadpodman-27ebd7d6f074620992be2fe3046cc188701d439f.tar.gz
podman-27ebd7d6f074620992be2fe3046cc188701d439f.tar.bz2
podman-27ebd7d6f074620992be2fe3046cc188701d439f.zip
Add DefaultContent API to retrieve apparmor profile content
The default apparmor profile is not stored on disk which causes confusion when debugging the content of the profile. To solve this, we now add an additional API which returns the profile as byte slice. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Diffstat (limited to 'pkg/apparmor/apparmor_unsupported.go')
-rw-r--r--pkg/apparmor/apparmor_unsupported.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/apparmor/apparmor_unsupported.go b/pkg/apparmor/apparmor_unsupported.go
index b2b4de5f5..13469f1b6 100644
--- a/pkg/apparmor/apparmor_unsupported.go
+++ b/pkg/apparmor/apparmor_unsupported.go
@@ -24,3 +24,8 @@ func CheckProfileAndLoadDefault(name string) (string, error) {
}
return "", ErrApparmorUnsupported
}
+
+// DefaultContent dummy.
+func DefaultContent(name string) ([]byte, error) {
+ return nil, nil
+}