|
@@ -54,11 +54,11 @@ func NewDriver(root, initPath string, options []string) (*driver, error) {
|
|
|
|
|
|
if apparmor.IsEnabled() {
|
|
if apparmor.IsEnabled() {
|
|
if err := installAppArmorProfile(); err != nil {
|
|
if err := installAppArmorProfile(); err != nil {
|
|
- apparmor_profiles := []string{"docker-default", "docker-unconfined"}
|
|
|
|
|
|
+ apparmorProfiles := []string{"docker-default"}
|
|
|
|
|
|
// Allow daemon to run if loading failed, but are active
|
|
// Allow daemon to run if loading failed, but are active
|
|
// (possibly through another run, manually, or via system startup)
|
|
// (possibly through another run, manually, or via system startup)
|
|
- for _, policy := range apparmor_profiles {
|
|
|
|
|
|
+ for _, policy := range apparmorProfiles {
|
|
if err := hasAppArmorProfileLoaded(policy); err != nil {
|
|
if err := hasAppArmorProfileLoaded(policy); err != nil {
|
|
return nil, fmt.Errorf("AppArmor enabled on system but the %s profile could not be loaded.", policy)
|
|
return nil, fmt.Errorf("AppArmor enabled on system but the %s profile could not be loaded.", policy)
|
|
}
|
|
}
|