lkml.org 
[lkml]   [2009]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 37/94] [PATCH 06/44] [CVE-2009-0029] Make sys_syslog a conditional system call
    2.6.28-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Heiko Carstens <heiko.carstens@de.ibm.com>

    commit f627a741d24f12955fa2d9f8831c3b12860635bd upstream.

    Remove the -ENOSYS implementation for !CONFIG_PRINTK and use
    the cond_syscall infrastructure instead.

    Acked-by: Kyle McMartin <kyle@redhat.com>
    Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---
    kernel/printk.c | 5 -----
    kernel/sys_ni.c | 1 +
    2 files changed, 1 insertion(+), 5 deletions(-)

    --- a/kernel/printk.c
    +++ b/kernel/printk.c
    @@ -742,11 +742,6 @@ EXPORT_SYMBOL(vprintk);

    #else

    -asmlinkage long sys_syslog(int type, char __user *buf, int len)
    -{
    - return -ENOSYS;
    -}
    -
    static void call_console_drivers(unsigned start, unsigned end)
    {
    }
    --- a/kernel/sys_ni.c
    +++ b/kernel/sys_ni.c
    @@ -131,6 +131,7 @@ cond_syscall(sys_io_destroy);
    cond_syscall(sys_io_submit);
    cond_syscall(sys_io_cancel);
    cond_syscall(sys_io_getevents);
    +cond_syscall(sys_syslog);

    /* arch-specific weak syscall entries */
    cond_syscall(sys_pciconfig_read);


    \
     
     \ /
      Last update: 2009-01-15 21:27    [W:0.050 / U:31.516 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site