Re: ss command not showing raw sockets? (regression)
From: David Ahern <hidden>
Date: 2021-08-17 19:55:00
On 8/17/21 12:44 PM, Jakub Kicinski wrote:
quoted
@kuba With PROC_NET_RAW I consider the problem is found, isn't it? So I will not download/bisect<->build or otherwise investigate the problem until one of you explicitely asks me to do so. I have now redirected invocation of command with set PROC_NET_RAW on my system, and may (try to) update to Linux 4.19.I suspect the bisection would end up at the commit which added the netlink dump support, so you can hold off for now, yes.
agreed.
My best guess right now is that Knoppix has a cut-down kernel config and we don't handle that case correctly.
CONFIG_INET_RAW_DIAG (or INET_DIAG) is probably disabled. surprised the
netlink dump does not return an error and it falls back to the proc file:
if (!getenv("PROC_NET_RAW") && !getenv("PROC_ROOT") &&
inet_show_netlink(f, NULL, IPPROTO_RAW) == 0)
return 0;
can you strace it?