3e5334f24f
usr.bin/sockstat/sockstat.c: revision 1.22 usr.bin/sockstat/Makefile: revision 1.5 usr.bin/sockstat/Makefile: revision 1.6 RR/54971: scole_mail: sockstat command output incorrect for normal user As the PR hints, it is not enough to have kern.expose_address=1 to see kernel addresses, we also need to have the PK_KMEM bit set which we achieve by installing sockstat setgid kmem and opening and closing /dev/mem. (/usr/src/sys/kern/kern_proc.c:311). It is unfortunate that we need to give the program more privilege, to prove to the kernel that we have the privilege to see the data. turn on fortify since it is setgid (from scole_mail) |
||
---|---|---|
.. | ||
Makefile | ||
prog_ops.h | ||
sockstat.1 | ||
sockstat.c | ||
sockstat_hostops.c | ||
sockstat_rumpops.c |