mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-11 22:01:02 -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
|
||
|
}
|