Re: [chrony-users] Chrony as non-root user (again)

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


On Mon, Sep 14, 2020 at 07:59:23PM -0400, Kevin wrote:
> As for breaking features I don't think this will be a major concern as the
> failure will be obvious. As I understand it after reading the config chrony
> opens all of the files it needs (before dropping privledges) so it would be
> easy to produce an obvious error "Can not access $thing, your admin or
> package maintainer has made a mistake, do not report this issue to chrony
> developers."

Some failures due to missing permissions are currently silent. An
instance I found is with 'hwtimestamp *'. I can fix that, but there
may be others.

> Of course it isn't easy to detect the case where more than what is required
> has been opened up. However possibly with suitable documentation this is not
> a major issue?

Do you think the following description of the option would be
sufficient?

*-U*::
This option disables a check for root privileges to allow *chronyd* to
be started under a non-root user, assuming the process will have all
capabilities (e.g. provided by the service manager) and access to all
files, directories, and devices, needed to operate correctly in the
specified configuration. Note that different capabilities might be
needed with different configurations and different Linux kernel
versions. Starting *chronyd* under a non-root user is not recommended
when the configuration is not known, or at least limited to specific
directives.

-- 
Miroslav Lichvar


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


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