summaryrefslogtreecommitdiff
path: root/server/apparmor/apparmor_unsupported.go
blob: fbd1d87a00abb8c814a50ba702152fa37c312bee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// +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 ""
}