DragonFlyBSD Kernel Audit
DF-0911 / run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
#!/bin/sh
# DF-0911 run: unprivileged user forks a child, ATTACHes+DETACHes via /proc/<pid>/ctl,
# then checks the child's ppid. On the buggy kernel the child is orphaned to proc0
# (ppid=0, waitpid=ECHILD); on the fixed kernel the child stays with its parent.
cd "$(dirname "$0")"
./df0911