DragonFlyBSD Kernel Audit
DF-2886 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
9
#!/bin/sh
# DF-2886 build (run INSIDE the guest as root)
# Builds the KLD harness and the userland trigger.
set -e
cd /tmp/uioz
printf 'SYSDIR=/usr/src/sys\nKMOD=uioz\nSRCS=uiozleak.c\n\n.include "${SYSDIR}/conf/kmod.mk"\n' > Makefile
make
cc -O -o uioz_trigger uioz_trigger.c
echo "build OK: uioz.ko + uioz_trigger"