All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next v2 0/2] tcp: ulp: diag: remove net admin restriction
@ 2025-03-05 18:34 Matthieu Baerts (NGI0)
  2025-03-05 18:34 ` [PATCH mptcp-next v2 1/2] tcp: ulp: diag: always print the name if any Matthieu Baerts (NGI0)
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Matthieu Baerts (NGI0) @ 2025-03-05 18:34 UTC (permalink / raw)
  To: mptcp; +Cc: Davide Caratti, Mat Martineau, 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 if the requester had CAP_NET_ADMIN.

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.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Changes in v2:
- Do not export MPTCP-related sequence numbers per subflow (Mat).
- The single patch has then been split in two to ease the reviews.
- Link to v1: https://lore.kernel.org/r/20250226-mptcp-tcp-ulp-diag-cap-v1-1-e1a003ad0606@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: 62dab9e8d979a45d72cebb74030b937dc5ba9452
change-id: 20250226-mptcp-tcp-ulp-diag-cap-a4d9b7cd91ec

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


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

end of thread, other threads:[~2025-03-06  8:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-05 18:34 [PATCH mptcp-next v2 0/2] tcp: ulp: diag: remove net admin restriction Matthieu Baerts (NGI0)
2025-03-05 18:34 ` [PATCH mptcp-next v2 1/2] tcp: ulp: diag: always print the name if any Matthieu Baerts (NGI0)
2025-03-05 21:29   ` Mat Martineau
2025-03-05 18:34 ` [PATCH mptcp-next v2 2/2] tcp: ulp: diag: more info without CAP_NET_ADMIN Matthieu Baerts (NGI0)
2025-03-05 21:31   ` Mat Martineau
2025-03-05 19:45 ` [PATCH mptcp-next v2 0/2] tcp: ulp: diag: remove net admin restriction MPTCP CI
2025-03-06  8:41 ` Matthieu Baerts

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.