Re: [chrony-dev] chronyd systemd ehancement patch submition

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Mon, Feb 24, 2020 at 09:17:46AM +0100, Nicolas Bouchinet wrote:
> Linux distributions that use systemd can delegate those security tasks to
> systemd unit configuration rules.
> 
>  ```
>  User=chrony
> 
>  AmbientCapabilities=CAP_SYS_TIME
>  CapabilityBoundingSet=CAP_SYS_TIME
>  ```
> 
> Those indicative and non exhaustive configuration options ensure chrony is
> directly executed as unprivileged user, therefore reducing the attack
> surface.

The trouble with that approach is that it works only with some
specific configurations. chronyd needs the root privileges for other
things than just adjusting the clock, which cannot be done by systemd.
Please see a previous discussion:

https://www.mail-archive.com/chrony-dev@xxxxxxxxxxxxxxxxxxxx/msg01731.html

-- 
Miroslav Lichvar


--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/