โฌข DragonFlyBSD Kernel Audit
DF-0917 / build.sh
โ† back to finding โ†“ download raw
#!/bin/sh
# DF-0917 build:
#   harness         โ€” UNFIXED model (reproduces the UAF pattern)
#   harness_fixed   โ€” FIXED model (applies fix.diff's refcount-hold; proves no UAF)
#   fused0917       โ€” live FUSE race daemon (run as root)
set -e
cd "$(dirname "$0")"
echo "+ cc -O2 -o harness harness.c -lpthread"
cc -O2 -o harness harness.c -lpthread
echo "+ cc -O2 -DFIXED -o harness_fixed harness.c -lpthread"
cc -O2 -DFIXED -o harness_fixed harness.c -lpthread
echo "+ cc -O2 -o fused0917 fused0917.c"
cc -O2 -o fused0917 fused0917.c
echo "BUILD_EXIT=0"
ls -l harness harness_fixed fused0917