DragonFlyBSD Kernel Audit
DF-0016 / run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
#!/bin/sh
# DF-0016 run: read kern.proc.pid.<pid> + kern.proc.all as an UNPRIVILEGED
# user and count the unredacted kernel pointers in kinfo_proc (kp_paddr /
# kp_fd / kl_wchan / kp_ktaddr) across every readable process.
# Exits 0 if kernel pointers leaked (bug present), 2 if redacted (bug fixed).
cd "$(dirname "$0")"
./leak_kinfo