Bug 2135578

Summary: Threat model finding: running chrony as non root user.
Product: Red Hat Enterprise Linux 9 Reporter: Wade Mealing <wmealing>
Component: chronyAssignee: Miroslav Lichvar <mlichvar>
Status: ASSIGNED --- QA Contact: rhel-cs-infra-services-qe <rhel-cs-infra-services-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2231078    
Bug Blocks:    

Comment 1 Miroslav Lichvar 2023-01-12 15:33:47 UTC
The upstream repository now includes chronyd-restricted.service, which starts chronyd without root and can be used with minimal NTP/NTS configurations. It will be included in our package, but probably not enabled by default as that would break more advanced configurations.

I also looked into a possibility of using a generator to switch between these two or possibly more different services according to the chrony configuration, but there seems to be a major usability issue that the generators run only on boot and systemctl daemon-reload, which would cause problems when the configuration is modified and the service restarted restarted without reboot or the systemd reload.

Comment 2 Miroslav Lichvar 2023-08-10 13:50:02 UTC
This issue will be fixed with rebase to chrony-4.4 (bug #2231078), which will add the chronyd-restricted service as an alternative to the less restricted chronyd.service.