mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00

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>
32 lines
580 B
Go
32 lines
580 B
Go
// +build !linux !apparmor
|
|
|
|
package apparmor
|
|
|
|
// IsEnabled dummy.
|
|
func IsEnabled() bool {
|
|
return false
|
|
}
|
|
|
|
// InstallDefault dummy.
|
|
func InstallDefault(name string) error {
|
|
return ErrApparmorUnsupported
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// DefaultContent dummy.
|
|
func DefaultContent(name string) ([]byte, error) {
|
|
return nil, nil
|
|
}
|