]> 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)
commit9fb5562bea22a2f03a1a406b086a3691b5c517d1
tree13dacd5aab7a7ff6a22388321a1cb7df3c793a76
parent87287f2b8dccb99247d53e81cc52c45e5388f83d
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