2014-07-16 08:42:12 +08:00
|
|
|
// +build !apparmor !linux
|
2014-06-10 06:52:12 +08:00
|
|
|
|
|
|
|
package apparmor
|
|
|
|
|
2015-11-20 20:53:30 +08:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
|
|
|
var ErrApparmorNotEnabled = errors.New("apparmor: config provided but apparmor not supported")
|
|
|
|
|
2014-06-10 06:52:12 +08:00
|
|
|
func IsEnabled() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func ApplyProfile(name string) error {
|
2015-11-20 20:53:30 +08:00
|
|
|
if name != "" {
|
|
|
|
return ErrApparmorNotEnabled
|
|
|
|
}
|
2014-06-10 06:52:12 +08:00
|
|
|
return nil
|
|
|
|
}
|