sunrpc: Prevent resvport min/max inversion via sysctl
authorFrank Sorenson <sorenson@redhat.com>
Fri, 8 Jul 2016 21:35:24 +0000 (16:35 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 19 Jul 2016 20:23:27 +0000 (16:23 -0400)
commite08ea3a96fc7112921023b77b737098690a666dc
tree6ea644e7f335a2f59613ce6627e2a0566150b342
parent5d71899a26630654d65e143c63c3c6f12d9aa287
sunrpc: Prevent resvport min/max inversion via sysctl

The current min/max resvport settings are independently limited
by the entire range of allowed ports, so max_resvport can be
set to a port lower than min_resvport.

Prevent inversion of min/max values when set through sysctl by
setting the limits dependent on each other.

Signed-off-by: Frank Sorenson <sorenson@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/xprtsock.c