]> git.baikalelectronics.ru Git - kernel.git/commit
tcp_memcontrol: Remove setting cgroup settings via sysctl
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 19 Oct 2013 23:24:52 +0000 (16:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Oct 2013 22:43:02 +0000 (18:43 -0400)
commite01150c620f914505151624183d68438d400f384
tree13dacd5aab7a7ff6a22388321a1cb7df3c793a76
parent9f59d8da366daee46882de0fa212decdab9bb11e
tcp_memcontrol: Remove setting cgroup settings via sysctl

The code is broken and does not constrain sysctl_tcp_mem as
tcp_update_limit does.  With the result that it allows the cgroup tcp
memory limits to be bypassed.

The semantics are broken as the settings are not per netns and are in a
per netns table, and instead looks at current.

Since the code is broken in both design and implementation and does not
implement the functionality for which it was written remove it.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp_memcontrol.h
net/ipv4/sysctl_net_ipv4.c
net/ipv4/tcp_memcontrol.c