DragonFlyBSD Kernel Audit
DF-0296 / run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
#!/bin/sh
# DF-0296: Verify the UAF code path exists
echo "=== ng_findhook: returns hook without reference ==="
grep -n 'ng_findhook\|return.*hook' /usr/src/sys/netgraph/netgraph/ng_base.c | head -10
echo ""
echo "=== ng_socket: root-only access ==="
grep -n 'caps_priv_check\|SYSCAP_RESTRICTEDROOT' /usr/src/sys/netgraph/socket/ng_socket.c | head -5
echo "RUN_EXIT=$?"