mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
apparmor: switch IsLoaded to return bool
Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
@@ -21,7 +21,7 @@ func installDefaultAppArmorProfile() {
|
||||
// Allow daemon to run if loading failed, but are active
|
||||
// (possibly through another run, manually, or via system startup)
|
||||
for _, policy := range apparmorProfiles {
|
||||
if err := aaprofile.IsLoaded(policy); err != nil {
|
||||
if loaded, err := aaprofile.IsLoaded(policy); err != nil || !loaded {
|
||||
logrus.Errorf("AppArmor enabled on system but the %s profile could not be loaded.", policy)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user