NetBSD/usr.bin/sockstat
martin 3e5334f24f Pull up following revision(s) (requested by kim in ticket #1079):
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)
2020-09-13 12:00:45 +00:00
..
Makefile Pull up following revision(s) (requested by kim in ticket #1079): 2020-09-13 12:00:45 +00:00
prog_ops.h
sockstat.1
sockstat.c Pull up following revision(s) (requested by kim in ticket #1079): 2020-09-13 12:00:45 +00:00
sockstat_hostops.c
sockstat_rumpops.c