DragonFlyBSD Kernel Audit
DF-0915 / run.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-0915 run: harness first (deterministic), then live daemon (root).
cd "$(dirname "$0")"
echo "=== Deterministic harness ==="
./harness
echo "harness_exit=$?"
echo
echo "=== Live FUSE daemon (must be root; kldload fuse first) ==="
if [ "$(id -u)" -ne 0 ]; then
  echo "fused requires root; skipping live run in this context."
  exit 0
fi
kldload fuse 2>/dev/null || true
mkdir -p /mnt/fuse
timeout 30 ./fused
echo "fused_exit=$?"