Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apparmor detection does not work correctly #259

Open
ahpnils opened this issue Jan 31, 2025 · 0 comments
Open

Apparmor detection does not work correctly #259

ahpnils opened this issue Jan 31, 2025 · 0 comments

Comments

@ahpnils
Copy link
Contributor

ahpnils commented Jan 31, 2025

👻 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:

  1. Run GitHub CI
  2. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant