journal-remote test: add -Z for mkdir in general

Otherwise on SELinux enabled systems with the "targeted" policy
the type is not set correctly when run via unconfined user and
the test fails.
This commit is contained in:
Cathy Hu
2026-02-06 15:15:10 +09:00
committed by Yu Watanabe
parent 79685ed12d
commit d3761f1509
+2 -2
View File
@@ -41,7 +41,7 @@ journalctl --sync
#
# Note: older OpenSSL requires a config file with some extra options, unfortunately
# Note2: /run here is used on purpose, since the systemd-journal-remote service uses PrivateTmp=yes
mkdir -p /run/systemd/journal-remote-tls
mkdir -pZ /run/systemd/journal-remote-tls
cat >/tmp/openssl.conf <<EOF
[ req ]
prompt = no
@@ -97,7 +97,7 @@ rm -rf /var/log/journal/remote/*
echo "$TEST_MESSAGE" | systemd-cat -t "$TEST_TAG"
journalctl --sync
mkdir -p /run/systemd/remote-pki
mkdir -pZ /run/systemd/remote-pki
cat >/run/systemd/remote-pki/ca.conf <<EOF
[ req ]
prompt = no