DF-0589 / build.sh
#!/bin/sh # DF-0589 build: compile the race PoC + netgraph7 modules # Run as root on the DragonFly guest. set -e # Build netgraph7 modules from source (needed since they're not in default kernel) echo "=== Building netgraph7 core ===" cd /usr/src/sys/netgraph7/netgraph && make echo "=== Building ng_socket ===" cd /usr/src/sys/netgraph7/socket && make echo "=== Building ng_h4 ===" cd /usr/src/sys/netgraph7/bluetooth/drivers/h4 && make # Build the PoC echo "=== Building race PoC ===" cc -O2 -lpthread -lutil -o /tmp/race /tmp/race.c echo "BUILD_OK" |