ca7d5c77c2
Signed-off-by: Xianglin Gao <xlgao@zju.edu.cn>
18 lines
493 B
Go
18 lines
493 B
Go
// +build !apparmor
|
|
|
|
package apparmor
|
|
|
|
// IsEnabled returns false, when build without apparmor build tag.
|
|
func IsEnabled() bool {
|
|
return false
|
|
}
|
|
|
|
// EnsureDefaultApparmorProfile dose nothing, when build without apparmor build tag.
|
|
func EnsureDefaultApparmorProfile() error {
|
|
return nil
|
|
}
|
|
|
|
// GetProfileNameFromPodAnnotations dose nothing, when build without apparmor build tag.
|
|
func GetProfileNameFromPodAnnotations(annotations map[string]string, containerName string) string {
|
|
return ""
|
|
}
|