[systemd-devel] PrivateDevices with more than basic set of devices?

Lennart Poettering lennart at poettering.net
Tue Jan 27 12:48:33 PST 2015

On Tue, 27.01.15 19:04, Topi Miettinen (toiwoton at gmail.com) wrote:

> On 01/26/15 23:46, Lennart Poettering wrote:
> >> But independently of the PrivateDevices thing, would you think
> >> tmpfiles.d could be extended to be usable for unit specific cases
> >> instead of just one global setup? I think there could be more uses, for
> >> example, creating directories and links inside a unit's
> >> RuntimeDirectory.
> > 
> > I am not sure how this could work and what kind of integration you
> > precisely are looking for there?
> > 
> > Note that tmpfiles exists mostly for two reasons: a) to deal with old
> > software that wasn't capable of creating its own subdirs/stuff below
> > its runtime directory; and b) to deal with software whose main program
> > was running unpriviliged all the time (for example by using User=),
> > and hence lacked the priviliges to set up its subdir in /run.
> a) was exactly my case, auditd doesn't have a way to specify where to
> put the pid file yet, so it ends up in /run/auditd.pid.

Hmm, but that's fine, no? What would you put in tmpfiles for auditd?


Lennart Poettering, Red Hat

More information about the systemd-devel mailing list