Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/sockstat



Module Name:    src
Committed By:   christos
Date:           Tue Aug 25 14:05:17 UTC 2020

Modified Files:
        src/usr.bin/sockstat: Makefile sockstat.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/sockstat/Makefile
cvs rdiff -u -r1.21 -r1.22 src/usr.bin/sockstat/sockstat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index