diff options
author | Luca Boccassi <bluca@debian.org> | 2023-04-15 03:01:52 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-04-17 17:47:28 +0100 |
commit | c9210b74701d749c5b684cc4de517be42baa9c57 (patch) | |
tree | b208d83949a3b25a6c1a74675dffbcbd003ef540 /test | |
parent | 1034dfd0d8f7b788a64c325b0ca2e1585bf639cf (diff) | |
download | systemd-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-x | test/units/testsuite-54.sh | 8 |
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 |