]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tcp: ulp: diag: always print the name if any
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Thu, 6 Mar 2025 11:29:27 +0000 (12:29 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Mar 2025 03:39:53 +0000 (19:39 -0800)
commitf5afcb9fbb3984137feb12cb2d2fc6986a8347ac
treed769eb569889225c690f729a46a3b29bace2e472
parent15933ad12c9e72ec8ae2c8a9176c2acecf382e3d
tcp: ulp: diag: always print the name if any

Since its introduction in commit 61723b393292 ("tcp: ulp: add functions
to dump ulp-specific information"), the ULP diag info have been exported
only if the requester had CAP_NET_ADMIN.

At least the ULP name can be exported without CAP_NET_ADMIN. This will
already help identifying which layer is being used, e.g. which TCP
connections are in fact MPTCP subflow.

Acked-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250306-net-next-tcp-ulp-diag-net-admin-v1-1-06afdd860fc9@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_diag.c