Check for apparmor enabled on host to populate profile

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-04-09 10:22:17 +00:00
parent 2538689b31
commit 4b3bfc742b

View file

@ -17,7 +17,7 @@ func IsEnabled() bool {
}
func ApplyProfile(pid int, name string) error {
if !IsEnabled() || name == "" {
if name == "" {
return nil
}