]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/discover-image.c
discover-image: don't accidentally set /run/systemd/nspawn/ access mode too strict
authorLennart Poettering <lennart@poettering.net>
Fri, 5 Jan 2024 21:20:32 +0000 (22:20 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Jan 2024 00:58:26 +0000 (09:58 +0900)
commit8759bc9541800a1f7faff04e2f5710d9c731a446
treebd0b7111710e02843346b33a1b96da91cd0a9ff1
parentbdd2036e8141140f290769ce46a1276598450697
discover-image: don't accidentally set /run/systemd/nspawn/ access mode too strict

mkdir_p() uses the specified access mode for all dirs that are missing,
hence if we call it on /run/systemd/nspawn/locking and
/run/systemd/nspawn/ doesn't exist yet, we#d create it 0700 here. But
that was never the intention, and all other code creating that dir sets
the mode to 0755. Fix this here to match the rest.
src/shared/discover-image.c