summaryrefslogtreecommitdiff
path: root/pkg/apparmor/apparmor_unsupported.go
blob: df1336b076fe5577195901011d36010f3b5e694e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// +build !linux !apparmor

package apparmor

// IsEnabled returns true if AppArmor is enabled on the host.
func IsEnabled() bool {
	return false
}

// InstallDefault generates a default profile in a temp directory determined by
// os.TempDir(), then loads the profile into the kernel using 'apparmor_parser'.
func InstallDefault(name string) error {
	return ErrApparmorUnsupported
}

// IsLoaded checks if a profile with the given name has been loaded into the
// kernel.
func IsLoaded(name string) (bool, error) {
	return false, ErrApparmorUnsupported
}