mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-22 06:30:23 -04:00
21 lines
309 B
Go
21 lines
309 B
Go
// +build !apparmor !linux
|
|
|
|
package apparmor
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var ErrApparmorNotEnabled = errors.New("apparmor: config provided but apparmor not supported")
|
|
|
|
func IsEnabled() bool {
|
|
return false
|
|
}
|
|
|
|
func ApplyProfile(name string) error {
|
|
if name != "" {
|
|
return ErrApparmorNotEnabled
|
|
}
|
|
return nil
|
|
}
|