DCCP support was retired in kernel commit 2a63dd0edf38 ("net: Retire DCCP socket."). However, ss still attempts to query DCCP sockets via netlink, which triggers repeated SELinux warnings in dmesg: SELinux: unrecognized netlink message: protocol=4 nlmsg_type=19 \ sclass=netlink_tcpdiag_socket pid=188945 comm=ss Stop sending DCCPDIAG_GETSOCK netlink messages to suppress these warnings and align ss with the kernel change. Signed-off-by: Yafang Shao Cc: Kuniyuki Iwashima --- man/man8/ss.8 | 5 +++-- misc/ss.c | 40 ++++++++-------------------------------- 2 files changed, 11 insertions(+), 34 deletions(-) diff --git a/man/man8/ss.8 b/man/man8/ss.8 index 70e0a566..37dd75a0 100644 --- a/man/man8/ss.8 +++ b/man/man8/ss.8 @@ -378,7 +378,8 @@ Display TCP sockets. Display UDP sockets. .TP .B \-d, \-\-dccp -Display DCCP sockets. +[Deprecated] DCCP is no longer supported since kernel 6.16. +This option is ignored. .TP .B \-w, \-\-raw Display RAW sockets. @@ -411,7 +412,7 @@ supported: unix, inet, inet6, link, netlink, vsock, tipc, xdp. .B \-A QUERY, \-\-query=QUERY, \-\-socket=QUERY List of socket tables to dump, separated by commas. The following identifiers are understood: all, inet, tcp, udp, raw, unix, packet, netlink, unix_dgram, -unix_stream, unix_seqpacket, packet_raw, packet_dgram, dccp, sctp, tipc, +unix_stream, unix_seqpacket, packet_raw, packet_dgram, sctp, tipc, vsock_stream, vsock_dgram, xdp, mptcp. Any item in the list may optionally be prefixed by an exclamation mark .RB ( ! ) diff --git a/misc/ss.c b/misc/ss.c index 14e9f27a..dae5f282 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -195,7 +195,6 @@ static const char *dg_proto; enum { TCP_DB, MPTCP_DB, - DCCP_DB, UDP_DB, RAW_DB, UNIX_DG_DB, @@ -215,7 +214,7 @@ enum { #define PACKET_DBM ((1<