567ef8e785
In certain cases (unattended upgrades), system services can disable
loaded AppArmor profiles. However, since /etc being read-only is a
supported setup we cannot just write a copy of the profile to
/etc/apparmor.d.
Instead, dynamically load the docker-default AppArmor profile if a
container is started with that profile set. This code will short-cut if
the profile is already loaded.
Fixes: 2f7596aaef
("apparmor: do not save profile to /etc/apparmor.d")
Signed-off-by: Aleksa Sarai <asarai@suse.de>
7 lines
92 B
Go
7 lines
92 B
Go
// +build !linux
|
|
|
|
package daemon
|
|
|
|
func ensureDefaultAppArmorProfile() error {
|
|
return nil
|
|
}
|