| History log of /src/usr.bin/sockstat |
| Revision | Date | Author | Comments |
| 1.7 | 26-Aug-2020 |
christos | undo previous, now sockstat works without privs
|
| 1.6 | 25-Aug-2020 |
christos | turn on fortify since it is setgid (from scole_mail)
|
| 1.5 | 25-Aug-2020 |
christos | 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.
|
| 1.4 | 18-Aug-2019 |
kamil | sockstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in version of sysctlgetmibinfo and sysctlnametomib.
|
| 1.3 | 28-Jan-2011 |
pooka | branches: 1.3.44; 1.3.46; support rump.sockstat
|
| 1.2 | 10-Aug-2005 |
rpaulo | branches: 1.2.40; Query the v6 sockets only if USE_INET6 != "no". Patch provided by Jukka Salmi on PR#30963.
ok atatat@
|
| 1.1 | 09-Mar-2005 |
atatat | branches: 1.1.2; Add a sockstat(1) command that can list open sockets and the processes that own them. The implementation concept and man page came largely from FreeBSD, but the program is fresh.
|
| 1.1.2.1 | 06-Oct-2005 |
tron | Pull up following revision(s) (requested by rpaulo in ticket #860): usr.bin/sockstat/sockstat.c: revision 1.9 usr.bin/sockstat/Makefile: revision 1.2 Query the v6 sockets only if USE_INET6 != "no". Patch provided by Jukka Salmi on PR#30963. ok atatat@
|
| 1.2.40.1 | 08-Feb-2011 |
bouyer | Sync with HEAD
|
| 1.3.46.2 | 13-Sep-2020 |
martin | 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)
|
| 1.3.46.1 | 19-Aug-2019 |
martin | Pull up following revision(s) (requested by kamil in ticket #96):
usr.bin/sockstat/sockstat.c: revision 1.21 usr.bin/sockstat/prog_ops.h: revision 1.2 usr.bin/sockstat/sockstat_rumpops.c: revision 1.2 usr.bin/sockstat/sockstat_hostops.c: revision 1.2 usr.bin/sockstat/Makefile: revision 1.4
sockstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in version of sysctlgetmibinfo and sysctlnametomib.
|
| 1.3.44.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
| 1.2 | 18-Aug-2019 |
kamil | sockstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in version of sysctlgetmibinfo and sysctlnametomib.
|
| 1.1 | 28-Jan-2011 |
pooka | branches: 1.1.2; 1.1.46; 1.1.48; support rump.sockstat
|
| 1.1.48.1 | 19-Aug-2019 |
martin | Pull up following revision(s) (requested by kamil in ticket #96):
usr.bin/sockstat/sockstat.c: revision 1.21 usr.bin/sockstat/prog_ops.h: revision 1.2 usr.bin/sockstat/sockstat_rumpops.c: revision 1.2 usr.bin/sockstat/sockstat_hostops.c: revision 1.2 usr.bin/sockstat/Makefile: revision 1.4
sockstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in version of sysctlgetmibinfo and sysctlnametomib.
|
| 1.1.46.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
| 1.1.2.2 | 08-Feb-2011 |
bouyer | Sync with HEAD
|
| 1.1.2.1 | 28-Jan-2011 |
bouyer | file prog_ops.h was added on branch bouyer-quota2 on 2011-02-08 16:20:12 +0000
|
| 1.10 | 18-Mar-2014 |
riastradh | Merge riastradh-drm2 to HEAD.
|
| 1.9 | 20-Jul-2013 |
wiz | Use Mt for email addresses.
|
| 1.8 | 29-May-2011 |
manu | branches: 1.8.4; 1.8.10; 1.8.14; Document that localsocket may be of type SOCK_SEQPACKET
|
| 1.7 | 04-May-2008 |
martin | Move TNF licenses to 2 clause form
|
| 1.6 | 14-Jul-2006 |
peter | branches: 1.6.18; Document the option -n and bump date.
|
| 1.5 | 11-Sep-2005 |
wiz | Argument is address_family, not "address family". From YOMURA Masanori in private mail.
|
| 1.4 | 24-Aug-2005 |
rpaulo | Don't break each name in the AUTHORS section.
|
| 1.3 | 09-Mar-2005 |
wiz | Make Dd date match import date more closely.
|
| 1.2 | 09-Mar-2005 |
wiz | Grammar improvements.
|
| 1.1 | 09-Mar-2005 |
atatat | Add a sockstat(1) command that can list open sockets and the processes that own them. The implementation concept and man page came largely from FreeBSD, but the program is fresh.
|
| 1.6.18.1 | 18-May-2008 |
yamt | sync with head.
|
| 1.8.14.1 | 23-Jul-2013 |
riastradh | sync with HEAD
|
| 1.8.10.1 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
| 1.8.4.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
| 1.25 | 28-Oct-2022 |
ozaki-r | Adjust userland commands for struct inpcb integration
Only kvm users are affected.
|
| 1.24 | 27-Aug-2021 |
rillig | sockstat: fix undefined behavior when calling ctype functions
lint says: warning: argument to 'function from <ctype.h>' must be cast to 'unsigned char', not to 'unsigned int' [342]
|
| 1.23 | 26-Aug-2020 |
christos | undo previous, now sockstat works without privs
|
| 1.22 | 25-Aug-2020 |
christos | 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.
|
| 1.21 | 18-Aug-2019 |
kamil | sockstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in version of sysctlgetmibinfo and sysctlnametomib.
|
| 1.20 | 03-Feb-2019 |
mrg | branches: 1.20.2; - add or adjust /* FALLTHROUGH */ where appropriate - add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
|
| 1.19 | 14-Jan-2017 |
christos | branches: 1.19.14; don't do _KERNEL; hides bswap stuff.
|
| 1.18 | 12-Jan-2017 |
christos | fix compilation
|
| 1.17 | 29-May-2011 |
manu | branches: 1.17.26; Display SOCK_SEQPACKET local sockets in sockstat and netstat
|
| 1.16 | 28-Jan-2011 |
pooka | support rump.sockstat
|
| 1.15 | 13-Apr-2009 |
lukem | branches: 1.15.2; Fix WARNS=4 issues (-Wshadow -Wsign-compare)
|
| 1.14 | 29-Apr-2008 |
martin | branches: 1.14.8; Convert to new 2 clause license
|
| 1.13 | 01-Mar-2008 |
he | branches: 1.13.2; It's wrong for user-land programs to define _KERNEL before including <sys/types.h>. The reason is that this will break the build for about half of our ports, because the wrong variant of e.g. bswap16() is being defined and referenced (either __bswap16() or bswap16()). Removing the _KERNEL define restores buildability for this program.
|
| 1.12 | 27-Feb-2008 |
ad | +#define _KERNEL +#include <sys/types.h> +#undef _KERNEL
|
| 1.11 | 26-Dec-2007 |
ad | branches: 1.11.2; Merge more changes from vmlocking2, mainly:
- Locking improvements. - Use pool_cache for more items.
|
| 1.10 | 24-Aug-2005 |
rpaulo | branches: 1.10.12; If the specificed MIB doesn't exist, then it's probably a kernel without that socket type (AF_INET, AF_INET6, etc.). That's a normal condition, so don't bail out.
Reviewed by Andrew Brown.
|
| 1.9 | 10-Aug-2005 |
rpaulo | Query the v6 sockets only if USE_INET6 != "no". Patch provided by Jukka Salmi on PR#30963.
ok atatat@
|
| 1.8 | 10-Aug-2005 |
rpaulo | Fix a typo in the islistening() routine. Patch provided by Jukka Salmi on PR#30963.
|
| 1.7 | 02-Jun-2005 |
lukem | appease gcc -Wuninitialized
|
| 1.6 | 09-Apr-2005 |
atatat | Don't allow the command length to mess up the formatting
|
| 1.5 | 22-Mar-2005 |
peter | Fix a typo.
|
| 1.4 | 10-Mar-2005 |
atatat | branches: 1.4.2; Fix printing of AF_LOCAL names.
|
| 1.3 | 09-Mar-2005 |
kleink | Field width and precision specifier arguments to printf must be ints.
|
| 1.2 | 09-Mar-2005 |
atatat | almost forgot about this.
Optimize getting process information by not getting it again if you're looking for the same pid.
|
| 1.1 | 09-Mar-2005 |
atatat | Add a sockstat(1) command that can list open sockets and the processes that own them. The implementation concept and man page came largely from FreeBSD, but the program is fresh.
|
| 1.4.2.6 | 06-Oct-2005 |
tron | Pull up following revision(s) (requested by rpaulo in ticket #860): usr.bin/sockstat/sockstat.c: revision 1.10 If the specificed MIB doesn't exist, then it's probably a kernel without that socket type (AF_INET, AF_INET6, etc.). That's a normal condition, so don't bail out. Reviewed by Andrew Brown.
|
| 1.4.2.5 | 06-Oct-2005 |
tron | Pull up following revision(s) (requested by rpaulo in ticket #860): usr.bin/sockstat/sockstat.c: revision 1.9 usr.bin/sockstat/Makefile: revision 1.2 Query the v6 sockets only if USE_INET6 != "no". Patch provided by Jukka Salmi on PR#30963. ok atatat@
|
| 1.4.2.4 | 06-Oct-2005 |
tron | Pull up following revision(s) (requested by rpaulo in ticket #860): usr.bin/sockstat/sockstat.c: revision 1.8 Fix a typo in the islistening() routine. Patch provided by Jukka Salmi on PR#30963.
|
| 1.4.2.3 | 06-Oct-2005 |
tron | Pull up following revision(s) (requested by rpaulo in ticket #860): usr.bin/sockstat/sockstat.c: revision 1.7 appease gcc -Wuninitialized
|
| 1.4.2.2 | 06-Oct-2005 |
tron | Pull up following revision(s) (requested by rpaulo in ticket #860): usr.bin/sockstat/sockstat.c: revision 1.6 Don't allow the command length to mess up the formatting
|
| 1.4.2.1 | 06-Oct-2005 |
tron | Pull up following revision(s) (requested by rpaulo in ticket #860): usr.bin/sockstat/sockstat.c: revision 1.5 Fix a typo.
|
| 1.10.12.2 | 23-Mar-2008 |
matt | sync with HEAD
|
| 1.10.12.1 | 09-Jan-2008 |
matt | sync with HEAD
|
| 1.11.2.1 | 24-Mar-2008 |
keiichi | sync with head.
|
| 1.13.2.1 | 18-May-2008 |
yamt | sync with head.
|
| 1.14.8.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
| 1.15.2.1 | 08-Feb-2011 |
bouyer | Sync with HEAD
|
| 1.17.26.1 | 20-Mar-2017 |
pgoyette | Sync with HEAD
|
| 1.19.14.2 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
| 1.19.14.1 | 10-Jun-2019 |
christos | Sync with HEAD
|
| 1.20.2.2 | 13-Sep-2020 |
martin | 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)
|
| 1.20.2.1 | 19-Aug-2019 |
martin | Pull up following revision(s) (requested by kamil in ticket #96):
usr.bin/sockstat/sockstat.c: revision 1.21 usr.bin/sockstat/prog_ops.h: revision 1.2 usr.bin/sockstat/sockstat_rumpops.c: revision 1.2 usr.bin/sockstat/sockstat_hostops.c: revision 1.2 usr.bin/sockstat/Makefile: revision 1.4
sockstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in version of sysctlgetmibinfo and sysctlnametomib.
|
| 1.2 | 18-Aug-2019 |
kamil | sockstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in version of sysctlgetmibinfo and sysctlnametomib.
|
| 1.1 | 28-Jan-2011 |
pooka | branches: 1.1.2; 1.1.46; 1.1.48; support rump.sockstat
|
| 1.1.48.1 | 19-Aug-2019 |
martin | Pull up following revision(s) (requested by kamil in ticket #96):
usr.bin/sockstat/sockstat.c: revision 1.21 usr.bin/sockstat/prog_ops.h: revision 1.2 usr.bin/sockstat/sockstat_rumpops.c: revision 1.2 usr.bin/sockstat/sockstat_hostops.c: revision 1.2 usr.bin/sockstat/Makefile: revision 1.4
sockstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in version of sysctlgetmibinfo and sysctlnametomib.
|
| 1.1.46.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
| 1.1.2.2 | 08-Feb-2011 |
bouyer | Sync with HEAD
|
| 1.1.2.1 | 28-Jan-2011 |
bouyer | file sockstat_hostops.c was added on branch bouyer-quota2 on 2011-02-08 16:20:12 +0000
|
| 1.2 | 18-Aug-2019 |
kamil | sockstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in version of sysctlgetmibinfo and sysctlnametomib.
|
| 1.1 | 28-Jan-2011 |
pooka | branches: 1.1.2; 1.1.46; 1.1.48; support rump.sockstat
|
| 1.1.48.1 | 19-Aug-2019 |
martin | Pull up following revision(s) (requested by kamil in ticket #96):
usr.bin/sockstat/sockstat.c: revision 1.21 usr.bin/sockstat/prog_ops.h: revision 1.2 usr.bin/sockstat/sockstat_rumpops.c: revision 1.2 usr.bin/sockstat/sockstat_hostops.c: revision 1.2 usr.bin/sockstat/Makefile: revision 1.4
sockstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in version of sysctlgetmibinfo and sysctlnametomib.
|
| 1.1.46.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
| 1.1.2.2 | 08-Feb-2011 |
bouyer | Sync with HEAD
|
| 1.1.2.1 | 28-Jan-2011 |
bouyer | file sockstat_rumpops.c was added on branch bouyer-quota2 on 2011-02-08 16:20:12 +0000
|