DragonFlyBSD Kernel Audit
DF-2979 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
9
#!/bin/sh
# DF-2979 build: compile the trigger module + unprivileged PoC inside the guest.
# Run ON THE GUEST in the directory holding dfp.c/poc.c (e.g. /tmp/dfp).
set -e
echo "== building dfp.ko =="
make -m /usr/share/mk 2>&1
echo "== building poc =="
cc -O2 -Wall -o poc poc.c 2>&1
ls -l dfp.ko poc