#978699 sockstat: Manpage should mention privilege needed

Package:
sockstat
Source:
sockstat
Description:
view detailed information about open connections
Submitter:
Oliver Schode
Date:
2020-12-30 13:15:03 UTC
Severity:
normal
#978699#5
Date:
2020-12-30 13:05:26 UTC
From:
To:
Hi,

in contrast to `ss` (and others) I'm getting no output with `sockstat`
being run as a normal user, which is unclear from the manpage or README
and cannot be expected for something living under /usr/bin. (It lists
holding process by default.) Of course, a usage note to this effect
would be better still, considering a lone header line isn't all that
helpful. And I'm ending up with this even with open sockets that are my
own.

The output also isn't exactly consistent even when run as root:
`sockstat -4 -l` shows some connected ones, whereas '-4 -c' whill show
(some) from the other group. I don't even see a pattern here, it's
rather confusing as is anything that's not exclusive if the default is
already all-inclusive (according to the manpage). `sockstat` on FreeBSD
also works very differently.

Regards,
Oliver