diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2019-01-30 12:48:55 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-01-30 21:12:33 -0700 |
commit | 659067b0b5c36efa02ebae5e30d09d9303039029 (patch) | |
tree | f9b4cc95ee64a81a80f714c2fd7b648faf2847bf /drivers/infiniband/core/restrack.c | |
parent | 8be565e65fa9f4b1dee96e19bce3ca34e68cc8cb (diff) |
RDMA/nldev: Prepare CAP_NET_ADMIN checks for .doit callbacks
The .doit callbacks don't have a netlink_callback to check capabilities so
in order to use the same fill_res_func for both .dump and .doit, we need
to do the capability check outside of those functions.
For .doit callbacks, it is possible to check CAP_NET_ADMIN directly on the
received sk_buff.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/restrack.c')
0 files changed, 0 insertions, 0 deletions