[PATCH] sysctl: simplify ipc ns specific sysctls
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 8 Dec 2006 10:39:56 +0000 (02:39 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 8 Dec 2006 16:29:03 +0000 (08:29 -0800)
commit9bc9a6bd3cf559bffe962c51efb062e8b5270ca9
treeccfbf817ab501622ef4651d0393de43b085da7ca
parentc4b8b769fa9051838d2772886ecd0ee2a926ddc3
[PATCH] sysctl: simplify ipc ns specific sysctls

Refactor the ipc sysctl support so that it is simpler, more readable, and
prepares for fixing the bug with the wrong values being returned in the
sys_sysctl interface.

The function proc_do_ipc_string() was misnamed as it never handled strings.
It's magic of when to work with strings and when to work with longs belonged
in the sysctl table.  I couldn't tell if the code would work if you disabled
the ipc namespace but it certainly looked like it would have problems.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sysctl.c