Merge pull request #411 from rajasec/apparmor-changes

Adding error conditions when apparmor disabled
This commit is contained in:
Mrunal Patel 2015-11-23 09:40:13 -08:00
commit 1d3c6581a6
1 changed files with 9 additions and 0 deletions

View File

@ -2,10 +2,19 @@
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
}