mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
TEST-50-DISSECT: add explicit coverage for BindJournalSockets=
This commit is contained in:
parent
e2e6c23fdb
commit
1a64b42c46
@ -731,7 +731,9 @@ install_verity_minimal() {
|
||||
cat
|
||||
echo
|
||||
grep
|
||||
ls
|
||||
mount
|
||||
mountpoint
|
||||
sleep
|
||||
touch
|
||||
)
|
||||
|
@ -74,6 +74,11 @@ fi
|
||||
systemd-dissect --umount "$IMAGE_DIR/mount"
|
||||
systemd-dissect --umount "$IMAGE_DIR/mount2"
|
||||
|
||||
# Test BindJournalSockets=
|
||||
systemd-run --wait -p RootImage="$MINIMAL_IMAGE.raw" mountpoint /run/systemd/journal/socket
|
||||
(! systemd-run --wait -p RootImage="$MINIMAL_IMAGE.raw" -p BindJournalSockets=no ls /run/systemd/journal/socket)
|
||||
(! systemd-run --wait -p RootImage="$MINIMAL_IMAGE.raw" -p MountAPIVFS=no ls /run/systemd/journal/socket)
|
||||
|
||||
systemd-run -P -p RootImage="$MINIMAL_IMAGE.raw" cat /usr/lib/os-release | grep -q -F "MARKER=1"
|
||||
mv "$MINIMAL_IMAGE.verity" "$MINIMAL_IMAGE.fooverity"
|
||||
mv "$MINIMAL_IMAGE.roothash" "$MINIMAL_IMAGE.foohash"
|
||||
@ -81,6 +86,7 @@ systemd-run -P \
|
||||
-p RootImage="$MINIMAL_IMAGE.raw" \
|
||||
-p RootHash="$MINIMAL_IMAGE.foohash" \
|
||||
-p RootVerity="$MINIMAL_IMAGE.fooverity" \
|
||||
-p BindJournalSockets=yes \
|
||||
cat /usr/lib/os-release | grep -q -F "MARKER=1"
|
||||
# Let's use the long option name just here as a test
|
||||
systemd-run -P \
|
||||
|
Loading…
Reference in New Issue
Block a user