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 configuration breaks ntpsec #257

Closed
ahpnils opened this issue Jan 29, 2025 · 1 comment
Closed

Apparmor configuration breaks ntpsec #257

ahpnils opened this issue Jan 29, 2025 · 1 comment

Comments

@ahpnils
Copy link
Contributor

ahpnils commented Jan 29, 2025

👻 Brief Description

On systems using ntpsec (e.g. Debian 12+), with Apparmor enabled, ntpsec cannot connect to any pool or server. It turns out the included configuration (files/usr.sbin.ntpd.apparmor) is made for ntpd, not ntpsec.

🥞 Cookbook version

5.2.3

👩‍🍳 Chef-Infra Version

18.0.155

🎩 Platform details

Debian 12

Steps To Reproduce

Steps to reproduce the behavior:

  1. install a Debian 12 system, with Apparmor enabled
  2. use the ntp cookbook to deploy ntpsec
  3. reboot or restart Apparmaor
  4. run ntpq -p, and notice ntpsec cannot connect to servers or pools ; with time, drift may appear.

🚓 Expected behavior

A compatible Apparmor configuration should be installed, and ntpsec should be able to connect to servers and pools.

@ahpnils
Copy link
Contributor Author

ahpnils commented Jan 29, 2025

I'm preparing a PR for this.

damacus pushed a commit that referenced this issue Jan 31, 2025
* Make ntpsec use a compatible Apparmor configuration (#257)

* Use ntpsec paths when ntpsec is installed

* Fix ntp.conf's path on Debian and Ubuntu

* Make Ubuntu use ntpsec, starting release 23.10.
@ahpnils ahpnils closed this as completed Jan 31, 2025
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