diff options
author | Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> | 2015-09-08 16:06:41 -0600 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:09:45 -0700 |
commit | d04abc1ab24a0ba0c3803257ac89c7c5b3b9c374 (patch) | |
tree | 895a6a3af14450b821e40bba9395080cf910ba10 /include/linux | |
parent | 63bb8bb2cc1a3ff07ead253d6922813ab7443348 (diff) |
net: Fail explicit bind to local reserved ports
Reserved ports may have some special use cases which are not suitable
for use by general userspace applications. Currently, ports specified
in ip_local_reserved_ports will not be returned only in case of
automatic port assignment.
Add a boolean sysctl flag 'reserved_port_bind'. Default value is 1
which preserves the existing behavior. Setting the value to 0 will
prevent userspace applications from binding to these ports even when
they are explicitly requested.
BUG=20663075
Change-Id: Ib1071ca5bd437cd3c4f71b56147e4858f3b9ebec
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions