]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-remote test: add -Z in mkdir for journal-{remote,upload}.conf.d
authorCathy Hu <cathy.hu@suse.com>
Mon, 5 Jan 2026 15:13:15 +0000 (16:13 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 5 Jan 2026 19:46:34 +0000 (04:46 +0900)
Otherwise on SELinux enabled systems with the "targeted" policy
the type is not set correctly when run via unconfined user and
the test fails.

test/units/TEST-04-JOURNAL.journal-remote.sh

index 094fb3f4411f6f48e95fd4de0175c3c1fc9623ad..7a36df190a8b428fc9afe903dd49117a08975980 100755 (executable)
@@ -61,7 +61,7 @@ openssl req -x509 -nodes -newkey rsa:2048 -sha256 -days 7 \
 chown -R systemd-journal-remote /run/systemd/journal-remote-tls
 
 # Configure journal-upload to upload journals to journal-remote without client certificates
-mkdir -p /run/systemd/journal-{remote,upload}.conf.d
+mkdir -pZ /run/systemd/journal-{remote,upload}.conf.d
 cat >/run/systemd/journal-remote.conf.d/99-test.conf <<EOF
 [Remote]
 SplitMode=host