DF-2973 / build.sh
#!/bin/sh # DF-2973 build: compile the KLD inside the guest (run from repo root on host) set -e cd "$(dirname "$0")/../../.." # repo root D=df2973 SSH="ssh -F dfbsd-qemu/config -o ConnectTimeout=8 -o BatchMode=yes dfbsd" { $SSH "rm -rf /root/$D && mkdir -p /root/$D" ssh -F dfbsd-qemu/config dfbsd 'cat > /root/'$D'/df2973.c' < findings/poc/DF-2973/df2973.c ssh -F dfbsd-qemu/config dfbsd 'cat > /root/'$D'/Makefile' < findings/poc/DF-2973/Makefile $SSH "cd /root/$D && make" } 2>&1 | tee findings/poc/DF-2973/build.log |