Skip to content

Check CAP_NET_RAW in right namespace

Leon Romanovsky linux-rdma 2 versions Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 1 replyApplied
  2. v17 patches 1 replySuperseded

Changes in v2 from the cover letter

* Resend right series
* Split "RDMA/uverbs: Check CAP_NET_RAW in user namespace for QP create"
* to three small patches. Maybe I should squash them when I'll apply.
v1: https://lore.kernel.org/all/[email protected]
* Moved QP checks to be earlier.
v0: https://lore.kernel.org/all/[email protected]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9RDMA/uverbs: Check CAP_NET_RAW in user namespace for flow createdrivers/infiniband/core/device.c drivers/infiniband/core/rdma_core.c drivers/infiniband/core/uverbs_cmd.c +1 more+60 -10 replies
2/9RDMA/mlx5: Check CAP_NET_RAW in user namespace for flow createdrivers/infiniband/hw/mlx5/fs.c+1 -10 replies
3/9RDMA/mlx5: Check CAP_NET_RAW in user namespace for anchor createdrivers/infiniband/hw/mlx5/fs.c+1 -10 replies
4/9RDMA/uverbs: Check CAP_NET_RAW in user namespace for QP createdrivers/infiniband/core/uverbs_cmd.c+1 -10 replies
5/9RDMA/uverbs: Check CAP_NET_RAW in user namespace for RAW QP createdrivers/infiniband/core/uverbs_std_types_qp.c+1 -10 replies
6/9RDMA/uverbs: Check CAP_NET_RAW in user namespace for RAW QP createdrivers/infiniband/core/uverbs_cmd.c+1 -20 replies
7/9RDMA/mlx5: Check CAP_NET_RAW in user namespace for devx createdrivers/infiniband/hw/mlx5/devx.c+1 -10 replies
8/9RDMA/nldev: Check CAP_NET_RAW in user namespace for QP modifydrivers/infiniband/core/nldev.c drivers/infiniband/core/uverbs_cmd.c+3 -20 replies
9/9RDMA/counter: Check CAP_NET_RAW check in user namespace for RDMA countersdrivers/infiniband/core/counters.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH rdma-next v2 0/9] Check CAP_NET_RAW in right namespace

Changelog:
v2:
* Resend right series
* Split "RDMA/uverbs: Check CAP_NET_RAW in user namespace for QP create"
* to three small patches. Maybe I should squash them when I'll apply.
v1: https://lore.kernel.org/all/[email protected]
* Moved QP checks to be earlier.
v0: https://lore.kernel.org/all/[email protected]

The following series from Parav clears the mud where against which namespace the CAP_NET_RAW should be checked.

It is followup of this discussion:
https://lore.kernel.org/all/[email protected]

Thanks

Parav Pandit (9):
RDMA/uverbs: Check CAP_NET_RAW in user namespace for flow create RDMA/mlx5: Check CAP_NET_RAW in user namespace for flow create RDMA/mlx5: Check CAP_NET_RAW in user namespace for anchor create RDMA/uverbs: Check CAP_NET_RAW in user namespace for QP create RDMA/uverbs: Check CAP_NET_RAW in user namespace for RAW QP create RDMA/uverbs: Check CAP_NET_RAW in user namespace for RAW QP create RDMA/mlx5: Check CAP_NET_RAW in user namespace for devx create RDMA/nldev: Check CAP_NET_RAW in user namespace for QP modify RDMA/counter: Check CAP_NET_RAW check in user namespace for RDMA
counters

 drivers/infiniband/core/counters.c            |  2 +-
 drivers/infiniband/core/device.c              | 27 +++++++++++++++++
 drivers/infiniband/core/nldev.c               |  2 +-
 drivers/infiniband/core/rdma_core.c           | 29 +++++++++++++++++++
 drivers/infiniband/core/uverbs_cmd.c          | 10 +++----
 drivers/infiniband/core/uverbs_std_types_qp.c |  2 +-
 drivers/infiniband/hw/mlx5/devx.c             |  2 +-
 drivers/infiniband/hw/mlx5/fs.c               |  4 +--
 include/rdma/ib_verbs.h                       |  3 ++
 9 files changed, 70 insertions(+), 11 deletions(-)
Signature · 1 line
2.49.0