RDMA/core: Configure selinux QP during creation
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 3 Aug 2021 18:20:36 +0000 (21:20 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 3 Aug 2021 18:26:18 +0000 (15:26 -0300)
commit00a79d6b996d46e9077b0d02a19c87b99305b94a
tree15ec566a25e873e4d2e2c5105b1b0661caa05ad2
parent8da9fe4e4fa7d561df0f3fe65bfa6dbf78aa7590
RDMA/core: Configure selinux QP during creation

All QP creation flows called ib_create_qp_security(), but differently.
This caused to the need to provide exclusion conditions for the XRC_TGT,
because such QP already had selinux configuration call.

In order to fix it, move ib_create_qp_security() to the general QP
creation routine.

Link: https://lore.kernel.org/r/4d7cd6f5828aca37fb62283e6b126b73ab86b18c.1628014762.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_std_types_qp.c
drivers/infiniband/core/verbs.c