DF-0296 / build.sh
#!/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=$?" |