]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/exec-credential: stop removing empty credentials dir
authorMike Yuan <me@yhndnzj.com>
Sat, 13 Dec 2025 16:37:26 +0000 (17:37 +0100)
committerMike Yuan <me@yhndnzj.com>
Tue, 10 Feb 2026 20:54:11 +0000 (21:54 +0100)
commit482fb9ae4015fa898564476a20a8422f750e308b
tree4ee0c3fe6647c0cd167db25aa6eedecb24c8034d
parentde65956bdb0f53a3fccb145d21358b0a53f5b0f8
core/exec-credential: stop removing empty credentials dir

Starting from cfbf7538d87023840c5574fa5b0452e5b0f42149 we'd always
install the credentials dir regardless of whether it's empty,
with the correct permissions. Hence the problem stated in the comment
should no longer be a concern. Moreover, this ensures later in
setup_namespace() the mountpoint would be in-place. This is important
for credential reloading as it saves the trouble of remounting
the upper tmpfs as rw again and create the mountpoint.
src/core/exec-credential.c
src/core/namespace.c