[systemd-devel] [ANNOUNCE] systemd 211

Lennart Poettering lennart at poettering.net
Wed Mar 12 08:30:12 PDT 2014


On Wed, 12.03.14 15:12, Colin Guthrie (gmane at colin.guthr.ie) wrote:

> 
> 'Twas brillig, and Lennart Poettering at 12/03/14 00:30 did gyre and gimble:
> >         * Two new unit file settings RuntimeDirectory= and
> >           RuntimeDirectoryMode= have been added that may be used to
> >           manage a per-daemon runtime directories below /run. This is
> >           an alternative for setting up directory permissions with
> >           tmpfiles snippets, and has the advantage that the runtime
> >           directory's lifetime is bound to the daemon runtime and that
> >           the daemon starts up with an empty directory each time. This
> >           is particularly useful when writing services that drop
> >           priviliges using the User= or Group= setting.
> 
> Very handy!
> 
> Am I correct to assume that if a User=/Group= directive is given that
> said RuntimeDirectory would be owned/group-owned as appropriate?

Yes.

I am wonder though if we should add RuntimeDirectoryUser= and
RuntimeDirectoryGroup= too, so that people can manage runtime
directories with this that belong to unpriviliged users, even if we
start the daemon with priviliges...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list