]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfiles: pass arg_root to chase_symlinks as the root prefix
authorDavid Michael <dm0@redhat.com>
Mon, 25 Feb 2019 18:26:07 +0000 (13:26 -0500)
committerDavid Michael <dm0@redhat.com>
Thu, 28 Feb 2019 18:06:07 +0000 (13:06 -0500)
commitc3aa4adcafa046da7c41ef2e5411fc8dd8feecaa
tree0f75ee1c9a3705c149cb986b66a62df602f59490
parentcc14a6c011604c3b598247c35fea78d11c8d15ab
tmpfiles: pass arg_root to chase_symlinks as the root prefix

This informs chase_symlinks that symlinks should be treated as if
the path given by --root= is the root of their file system.

With the parent commit, this allows tmpfiles to create files as the
root user under a prefix that may be owned by an unprivileged user.
In particular, this fixes the case where tmpfiles generates initial
files in a staging root directory for packaging under a directory
owned by the unprivileged packager user (e.g. in Gentoo).
src/tmpfiles/tmpfiles.c