#1013882 fails to read certificates not "directly" readable by _chrony user

Package:
chrony
Source:
chrony
Description:
Versatile implementation of the Network Time Protocol
Submitter:
Date:
2022-06-26 17:30:04 UTC
Severity:
normal
#1013882#5
Date:
2022-06-26 15:45:36 UTC
From:
To:
Hi,

thank you for maintaining chrony in Debian.

When configuring NTS and using letsencrypt, I'd like to have the
certificates owned by root:ssl-cert with directory permissions set to
0750 and file permissions set to 0640.

For every other daemon used so far, that works perfectly fine when
putting the daemon user to the ssl-cert group.

However, with chrony, this does not work. I confirmed that _chrony can
read the files. Anything but having the files/directories-along-the-path
either world-readable or readable by _chrony directly does not work.

It would be nice if this could be fixed, looking at the sources I don't
see anything obvious that would make it fail though.

Let me know if you need more information to reproduce it.

Regards,
Daniel

#1013882#10
Date:
2022-06-26 17:27:35 UTC
From:
To:
Hi Daniel,

Le 2022-06-26 17:45, Daniel Baumann a écrit :

You're welcome! :-)

The behavior you are describing here is expected. chronyd reads the
certificates and private keys after dropping root privileges. Consequently,
those files need to be readable by the user under which chronyd is running.

Cheers,
Vincent

#1013882#15
Date:
2022-06-26 17:27:35 UTC
From:
To:
Hi Daniel,

Le 2022-06-26 17:45, Daniel Baumann a écrit :

You're welcome! :-)

The behavior you are describing here is expected. chronyd reads the
certificates and private keys after dropping root privileges. Consequently,
those files need to be readable by the user under which chronyd is running.

Cheers,
Vincent