sysctl: Introduce a generic compat sysctl sysctl
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 3 Apr 2009 07:36:27 +0000 (00:36 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 6 Nov 2009 11:52:55 +0000 (03:52 -0800)
commitda3f6f9b3e0d1e73975ca81ae124406bf1587d40
treeab2e5bb6366b0bdc00ec1bc5c02e610c1c77195d
parent2830b68361a9f58354ad043c6d85043ea917f907
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 <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
arch/powerpc/kernel/sys_ppc32.c
kernel/sysctl_binary.c