diff options
| author | Leon Romanovsky <leonro@mellanox.com> | 2019-01-30 13:48:55 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-01-31 07:12:33 +0300 |
| commit | 659067b0b5c36efa02ebae5e30d09d9303039029 (patch) | |
| tree | f9b4cc95ee64a81a80f714c2fd7b648faf2847bf /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 8be565e65fa9f4b1dee96e19bce3ca34e68cc8cb (diff) | |
| download | linux-659067b0b5c36efa02ebae5e30d09d9303039029.tar.xz | |
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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
