summaryrefslogtreecommitdiff
path: root/pkg/apparmor/apparmor_unsupported.go
blob: 13469f1b629d732e0c91848313e030a9a8ae64bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// +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
}