From: Eric W. Biederman Date: Fri, 3 Apr 2009 07:36:27 +0000 (-0700) Subject: sysctl: Introduce a generic compat sysctl sysctl X-Git-Tag: v2.6.33-rc1~392^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da3f6f9b3e0d1e73975ca81ae124406bf1587d40;p=pandora-kernel.git sysctl: Introduce a generic compat sysctl sysctl This uses compat_alloc_userspace to remove the various hacks to allow do_sysctl to write to throuh oldlenp. The rest of our mature compat syscall helper facitilies are used as well to ensure we have a nice clean maintainable compat syscall that can be used on all architectures. The motiviation for a generic compat sysctl (besides the obvious hack removal) is to reduce the number of compat sysctl defintions out there so I can refactor the binary sysctl implementation. ppc already used the name compat_sys_sysctl so I remove the ppcs version here. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Acked-by: Arnd Bergmann Signed-off-by: Eric W. Biederman --- Reading git-diff-tree failed