Whamcloud - gitweb
LU-14006 o2ib: raise bind cap before resolving address 27/40127/2
authorJohn L. Hammond <jhammond@whamcloud.com>
Fri, 2 Oct 2020 18:55:01 +0000 (13:55 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 12 Oct 2020 05:48:30 +0000 (05:48 +0000)
commit1e4bd16acfa26a06486ebd3426547502eedefa45
tree1d7ad72194534425907211cca6c8714a598f53ab
parenta2472e78cb2bed129120b45266694674de8d2d0f
LU-14006 o2ib: raise bind cap before resolving address

In kiblnd_resolve_addr(), ensure that the current task has
CAP_NET_BIND_SERVICE before calling rdma_resolve_addr() with a
protected source port.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I0552fdd64648ccb8c74667bd93852697f99f0c33
Reviewed-on: https://review.whamcloud.com/40127
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Tested-by: Amir Shehata <ashehata@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd_cb.c