DragonFlyBSD Kernel Audit
DF-2984 / build.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-2984 build: compile the two KLDs and the unprivileged trigger inside the
# guest (as root; the trigger binary is chmod 755 so any user can run it).
set -e
cd /tmp/df2984/modA && make clean >/dev/null 2>&1 || true; make
cd /tmp/df2984/modB && make clean >/dev/null 2>&1 || true; make
cd /tmp/df2984
cc -O -o call210 call210.c
chmod 755 call210
ls -l modA/dfpoca.ko modB/dfpocb.ko call210