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)
committerAdrian Bunk <bunk@debian.org>
Thu, 30 Mar 2023 19:32:31 +0000 (20:32 +0100)
commitcbdb26141949cdd9d693e55005101df4fb1ee82d
tree4deab384f6e2b41b6e1b9900e2fc1519df2c0410
parent1a1db62050f0386269ef456ab605d4d4cc113eeb
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)

Gbp-Pq: Name core-change-ownership-mode-of-the-execution-directories-a.patch
src/core/execute.c