DF-0016 / run.sh
#!/bin/sh # DF-0016 run: read kern.proc.pid.<pid> + kern.proc.all as an UNPRIVILEGED # user and count the unredacted kernel pointers in kinfo_proc (kp_paddr / # kp_fd / kl_wchan / kp_ktaddr) across every readable process. # Exits 0 if kernel pointers leaked (bug present), 2 if redacted (bug fixed). cd "$(dirname "$0")" ./leak_kinfo |