DragonFlyBSD Kernel Audit
DF-0929 / build.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-0929 PoC build.
#
# The PoC needs two artifacts: the trigger binary and the patched HAMMER
# image.  The image is built once by the test harness (see patch_image.py
# for the on-disk transformation); this script just compiles the trigger.
#
# Run as the unprivileged user from the PoC directory.
set -e
cd "$(dirname "$0")"

cc -o trigger trigger.c
echo "BUILD_OK: $(pwd)/trigger"