DragonFlyBSD Kernel Audit
DF-0606 / run.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-0606 run.sh — runs the disassembly-level verification (the only kind
# possible on a guest without WiFi hardware). One argument: baseline or patched.
MODE="${1:-baseline}"
SCRIPT_DIR="$(dirname "$0")"
# This script is intended to be copied to the guest and run there; if run on
# the host, scp verify.sh to dfbsd:/root/ and ssh-exec it.
if [ -f /root/verify.sh ]; then
    chmod +x /root/verify.sh 2>/dev/null
    exec /root/verify.sh "$MODE"
fi
echo "verify.sh not present; copy $SCRIPT_DIR/verify.sh to /root/ on the guest."
exit 1