Public bug reported:

If enabling rtc support:
rtcfile /var/lib/chrony/rtc

And restarting chrony into that config
$ sudo systemctl restart chrony

It will fail to use that:
Feb 23 09:53:02 bionic-test chronyd[4216]: Could not open /etc/adjtime : No 
such file or directory
Feb 23 09:53:02 bionic-test chronyd[4216]: Could not open RTC device /dev/rtc : 
Permission denied

One is an apparmor Deny:
[ 5756.216096] audit: type=1400 audit(1519379582.153:21): apparmor="DENIED" 
operation="open" profile="/usr/sbin/chronyd" name="/dev/rtc0" pid=4216 
comm="chronyd" requested_mask="w" denied_mask="w" fsuid=0 ouid=0

The access to /etc/adjtime would be ok if it exists.
I created it in my setup and it is good now.
But the apparmor profile needs to allow rtc.

** Affects: chrony (Ubuntu)
     Importance: Undecided
         Status: New

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  enabling RTC support is blocked by apparmor

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to