⬢ DragonFlyBSD Kernel Audit
DF-3109 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
#!/bin/sh
# DF-3109 build (see README.md; host/guest split noted inline)
set -e
cd "$(dirname "$0")"
guest: cc -O -o corrupt_root corrupt_root.c
image: vnconfig -c -S 2g /dev/vn0 h1.img && newfs_hammer -f /dev/vn0 && vnconfig -u vn0 && ./corrupt_root h1.img