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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user