DragonFlyBSD Kernel Audit
DF-1109 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
#!/bin/sh
# DF-1109 build: I2CRDWR TOCTOU double-fetch trigger.
# NOTE: requires /dev/iicN (an i2c controller + iic.ko loaded) AND root to open
# (the node is created 0600 root:wheel). Absent on this guest.
set -e
cd "$(dirname "$0")"
cc -O2 -pthread -o poc_iic_toctou poc_iic_toctou.c
echo "built: poc_iic_toctou"