DF-2262 / build.sh
#!/bin/sh # DF-2262 build.sh — build the XPT_DEV_MATCH cookie-poison trigger (root only). # The bug is REAL and panics the kernel as root (see panic.txt). As maxx the device # /dev/xpt0 is mode 0600 -> Permission denied (permission-gated, no unpriv escalation). set -e HDR="-I/usr/src/sys" cc $HDR -o xpt_devmatch_poison xpt_devmatch_poison.c echo "built: $(ls -l xpt_devmatch_poison | awk '{print $5, $9}')" |