mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 22:12:16 +00:00
[INET]: local port range robustness
Expansion of original idea from Denis V. Lunev <den@openvz.org> Add robustness and locking to the local_port_range sysctl. 1. Enforce that low < high when setting. 2. Use seqlock to ensure atomic update. The locking might seem like overkill, but there are cases where sysadmin might want to change value in the middle of a DoS attack. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0639300900
commit
227b60f510
10 changed files with 146 additions and 58 deletions
|
@ -2470,6 +2470,5 @@ EXPORT_SYMBOL(tcp_v4_syn_recv_sock);
|
|||
EXPORT_SYMBOL(tcp_proc_register);
|
||||
EXPORT_SYMBOL(tcp_proc_unregister);
|
||||
#endif
|
||||
EXPORT_SYMBOL(sysctl_local_port_range);
|
||||
EXPORT_SYMBOL(sysctl_tcp_low_latency);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue