From 27ebd7d6f074620992be2fe3046cc188701d439f Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Thu, 18 Jul 2019 10:01:45 +0200 Subject: 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 --- pkg/apparmor/apparmor_unsupported.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/apparmor/apparmor_unsupported.go') 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 +} -- cgit v1.2.3-54-g00ecf