mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] tcp: ulp: diag: expose more to non net admin users
@ 2025-03-06 11:29 Matthieu Baerts (NGI0)
  2025-03-06 11:29 ` [PATCH net-next 1/2] tcp: ulp: diag: always print the name if any Matthieu Baerts (NGI0)
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Matthieu Baerts (NGI0) @ 2025-03-06 11:29 UTC (permalink / raw)
  To: mptcp, Eric Dumazet, Neal Cardwell, Kuniyuki Iwashima,
	David S. Miller, David Ahern, Jakub Kicinski, Paolo Abeni,
	Simon Horman, Mat Martineau, Geliang Tang, Boris Pismenny,
	John Fastabend
  Cc: Davide Caratti, netdev, linux-kernel, Matthieu Baerts (NGI0)

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

Not everything is sensitive, and some info can be exported to all users
in order to ease the debugging from the userspace side without requiring
additional capabilities.

First, the ULP name can be easily exported. Then more depending on each
layer:

 - On kTLS side, it looks like everything can be exported to all users:
   version, cipher type, tx/rx user config type, plus some flags.

 - On MPTCP side, everything but the sequence numbers are exported to
   all non net admin users, similar to TCP.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Matthieu Baerts (NGI0) (2):
      tcp: ulp: diag: always print the name if any
      tcp: ulp: diag: more info without CAP_NET_ADMIN

 include/net/tcp.h   |  4 ++--
 net/ipv4/tcp_diag.c | 21 ++++++++++-----------
 net/mptcp/diag.c    | 42 ++++++++++++++++++++++++++----------------
 net/tls/tls_main.c  |  4 ++--
 4 files changed, 40 insertions(+), 31 deletions(-)
---
base-commit: f130a0cc1b4ff1ef28a307428d40436032e2b66e
change-id: 20250306-net-next-tcp-ulp-diag-net-admin-a1d6d7f9910b

Best regards,
-- 
Matthieu Baerts (NGI0) <matttbe@kernel.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-08  3:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-06 11:29 [PATCH net-next 0/2] tcp: ulp: diag: expose more to non net admin users Matthieu Baerts (NGI0)
2025-03-06 11:29 ` [PATCH net-next 1/2] tcp: ulp: diag: always print the name if any Matthieu Baerts (NGI0)
2025-03-06 11:29 ` [PATCH net-next 2/2] tcp: ulp: diag: more info without CAP_NET_ADMIN Matthieu Baerts (NGI0)
2025-03-08  3:50 ` [PATCH net-next 0/2] tcp: ulp: diag: expose more to non net admin users patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®