#!/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=$?"
