Adding error conditions when apparmor disabled

Signed-off-by: rajasec <rajasec79@gmail.com>

Add the changes to errors in lower case

Signed-off-by: rajasec <rajasec79@gmail.com>
This commit is contained in:
rajasec 2015-11-20 18:23:30 +05:30
parent 97bc9a7faf
commit 949d822675
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
}