diff options
Diffstat (limited to 'test/units/testsuite-65.sh')
-rwxr-xr-x | test/units/testsuite-65.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/units/testsuite-65.sh b/test/units/testsuite-65.sh index 38403a45b7..393297b17f 100755 --- a/test/units/testsuite-65.sh +++ b/test/units/testsuite-65.sh @@ -68,6 +68,7 @@ rm /tmp/testfile2.service cat <<EOF >/tmp/testfile.service [Service] ExecStart = echo hello +DeviceAllow=/dev/sda EOF # Prevent regression from #13380 and #20859 where we can't verify hidden files @@ -94,6 +95,9 @@ systemd-analyze security --threshold=90 --offline=true /tmp/testfile.service \ && { echo 'unexpected success'; exit 1; } set -e +# Ensure we print the list of ACLs, see https://github.com/systemd/systemd/issues/23185 +systemd-analyze security --offline=true /tmp/testfile.service | grep -q -F "/dev/sda" + rm /tmp/testfile.service cat <<EOF >/tmp/img/usr/lib/systemd/system/testfile.service |