mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
552a1c7bb1
The apparmor tag was introduced ina01ed80(2014) to make cgo dependency on libapparmor optional. However, the cgo dependency was removed indb093f6(2017), so it is no longer meaningful to keep apparmor build tag. Close #2704 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
21 lines
299 B
Go
21 lines
299 B
Go
// +build !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
|
|
}
|