• Eric W. Biederman's avatar
    sysctl: Introduce a generic compat sysctl sysctl · da3f6f9b
    Eric W. Biederman authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
    da3f6f9b
sysctl_binary.c 4.97 KB