RDMA/core: Require admin capabilities to set system parameters
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 4 Oct 2023 18:17:49 +0000 (21:17 +0300)
committerLeon Romanovsky <leon@kernel.org>
Thu, 5 Oct 2023 17:01:47 +0000 (20:01 +0300)
commitc38d23a54445f9a8aa6831fafc9af0496ba02f9e
tree5930e8baeb905f2182e6672eb163c1635a7d3f2d
parentc99a7457e5bb873914a74307ba2df85f6799203b
RDMA/core: Require admin capabilities to set system parameters

Like any other set command, require admin permissions to do it.

Cc: stable@vger.kernel.org
Fixes: 2b34c5580226 ("RDMA/core: Add command to set ib_core device net namspace sharing mode")
Link: https://lore.kernel.org/r/75d329fdd7381b52cbdf87910bef16c9965abb1f.1696443438.git.leon@kernel.org
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/core/nldev.c