]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: apply WorkingDirectory after enforce_user
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 30 Oct 2018 15:01:43 +0000 (16:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 31 Oct 2018 11:07:24 +0000 (12:07 +0100)
commit56ef8db9f5e5c2f2ea077cec41e97a19e98a637a
tree125a9871fa50de0a0ade80b1ce4008bcdc509d85
parent0ba89873372c3ab508852b4e0071da0719bcea0a
core: apply WorkingDirectory after enforce_user

If WorkingDirectory is on NFS, root might only have the privileges of
nobody and the chdir to the WorkingDirectory might fail, even if the
user running the service would have the proper privileges to chdir to
that directory.

Fixes #10568
src/core/execute.c