👻 Brief Description
Current Apparmor detection is based on /etc/init.d/apparmor's existence. However, it is not enough. The apparmor packages can be installed, but if the underlying kernel does not have Apparmor feature compiled in, any attempt to start the daemon will fail.
🥞 Cookbook version
5.2.3
👩🍳 Chef-Infra Version
18.0.155
🎩 Platform details
Debian 11 and 12, Ubuntu 20.04 through 24.04.
Steps To Reproduce
Steps to reproduce the behavior:
- Run GitHub CI
- Ubuntu 22.04 and 24.04 fail
🚓 Expected behavior
The cookbook should not try to start the apparmor service if the feature is not available
👻 Brief Description
Current Apparmor detection is based on
/etc/init.d/apparmor's existence. However, it is not enough. The apparmor packages can be installed, but if the underlying kernel does not have Apparmor feature compiled in, any attempt to start the daemon will fail.🥞 Cookbook version
5.2.3
👩🍳 Chef-Infra Version
18.0.155
🎩 Platform details
Debian 11 and 12, Ubuntu 20.04 through 24.04.
Steps To Reproduce
Steps to reproduce the behavior:
🚓 Expected behavior
The cookbook should not try to start the apparmor service if the feature is not available