⬢ DragonFlyBSD Kernel Audit
DF-5037 / guest_duel.sh
← back to finding ↓ download raw
#!/bin/sh
# runs INSIDE the guest as root: watchers + duel run, all output to /dev/console
RT=${1:-60}
(
while true; do
  date
  ps axo pid,stat,wchan,comm | grep -E 'dm_abba|dmsetup'
  echo ---
  sleep 2
done > /dev/console 2>&1
) &
(
while true; do
  date
  timeout -k 3 3 dmsetup ls
  echo canary_rc=$?
  sleep 2
done > /dev/console 2>&1
) &
sleep 1
cd /tmp
exec ./dm_abba duel /dev/vbd0 "$RT" > /dev/console 2>&1