From d3761f15090cf7bd1088af81d7f6be1dcc4e3292 Mon Sep 17 00:00:00 2001 From: Cathy Hu Date: Fri, 23 Jan 2026 10:52:36 +0100 Subject: [PATCH] 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. --- test/units/TEST-04-JOURNAL.journal-remote.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/units/TEST-04-JOURNAL.journal-remote.sh b/test/units/TEST-04-JOURNAL.journal-remote.sh index 7a36df190a..5d4b13d70e 100755 --- a/test/units/TEST-04-JOURNAL.journal-remote.sh +++ b/test/units/TEST-04-JOURNAL.journal-remote.sh @@ -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 </run/systemd/remote-pki/ca.conf <