DragonFlyBSD Kernel Audit
DF-0600 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
#!/bin/sh
# DF-0600 build script.
# Builds the PoC against the in-guest kernel headers.  Must run as root
# because /dev/nsmb is 0700 root:wheel and the smbfs module must be loaded.
set -e
cd "$(dirname "$0")"
cc -I/usr/src/sys -I/usr/src/sys/netproto/smb -o oob_read oob_read.c
echo "BUILD_OK: oob_read"