DragonFlyBSD Kernel Audit
DF-0600 / run.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-0600 run script.  Runs as root (device is 0700 root:wheel).
# Prerequisite: smbfs module loaded (provides the /dev/nsmb clone device
# and the dev_netsmb / smb_conn.c code under test).
set -e
cd "$(dirname "$0")"
# Load the module if not already loaded (root-only).
kldstat -q smbfs 2>/dev/null || kldload smbfs
ls -la /dev/nsmb >/dev/null 2>&1 || { echo "ERROR: /dev/nsmb missing (kldload smbfs failed)"; exit 1; }
./oob_read