core: change ownership/mode of the execution directories also for static users
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Mar 2019 16:19:30 +0000 (17:19 +0100)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Thu, 5 Dec 2019 14:16:49 +0000 (15:16 +0100)
commit789806ac06bb13d1b579fef47dbb85f224b6dbb1
treef55c3d64a3cbb6f6f53bf3fc7b981dd8c58016d0
parent81ca39b7b38ef1d44cc146efe75bef412e7c4c97
core: change ownership/mode of the execution directories also for static users

It's probably unexpected if we do a recursive chown() when dynamic users
are used but not on static users.

hence, let's tweak the logic slightly, and recursively chown in both
cases, except when operating on the configuration directory.

Fixes: #11842
(cherry picked from commit 206e9864de460dd79d9edd7bedb47dee168765e1)

Resolves: #1778384
src/core/execute.c