DragonFlyBSD Kernel Audit
DF-0296 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
#!/bin/sh
# DF-0296: No binary to build (code-analysis finding, root-only)
echo "Verifying netgraph code is present"
nm /boot/kernel/kernel 2>/dev/null | grep ng_findhook || echo "(loadable module)"
kldload netgraph 2>/dev/null
nm /boot/kernel/netgraph.ko 2>/dev/null | grep ng_findhook
echo "BUILD_EXIT=$?"