summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-04-15 03:01:52 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2023-04-17 17:47:28 +0100
commitc9210b74701d749c5b684cc4de517be42baa9c57 (patch)
treeb208d83949a3b25a6c1a74675dffbcbd003ef540 /test
parent1034dfd0d8f7b788a64c325b0ca2e1585bf639cf (diff)
downloadsystemd-c9210b74701d749c5b684cc4de517be42baa9c57.tar.gz
creds: make available to all ExecStartPre= and ExecStart= processes
Fixes https://github.com/systemd/systemd/issues/27275
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/testsuite-54.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/units/testsuite-54.sh b/test/units/testsuite-54.sh
index 43049dea50..ab896a5759 100755
--- a/test/units/testsuite-54.sh
+++ b/test/units/testsuite-54.sh
@@ -131,6 +131,14 @@ if systemctl --version | grep -q -- +OPENSSL ; then
rm /tmp/test-54-plaintext /tmp/test-54-ciphertext
fi
+# https://github.com/systemd/systemd/issues/27275
+systemd-run -p DynamicUser=yes -p 'LoadCredential=os:/etc/os-release' \
+ -p 'ExecStartPre=true' \
+ -p 'ExecStartPre=systemd-creds cat os' \
+ --wait \
+ --pipe \
+ true | cmp /etc/os-release
+
systemd-analyze log-level info
echo OK >/testok