Commit f627a741 authored by Heiko Carstens's avatar Heiko Carstens

[CVE-2009-0029] Make sys_syslog a conditional system call

Remove the -ENOSYS implementation for !CONFIG_PRINTK and use
the cond_syscall infrastructure instead.
Acked-by: default avatarKyle McMartin <kyle@redhat.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
parent c9da9f21
...@@ -742,11 +742,6 @@ EXPORT_SYMBOL(vprintk); ...@@ -742,11 +742,6 @@ EXPORT_SYMBOL(vprintk);
#else #else
asmlinkage long sys_syslog(int type, char __user *buf, int len)
{
return -ENOSYS;
}
static void call_console_drivers(unsigned start, unsigned end) static void call_console_drivers(unsigned start, unsigned end)
{ {
} }
......
...@@ -131,6 +131,7 @@ cond_syscall(sys_io_destroy); ...@@ -131,6 +131,7 @@ cond_syscall(sys_io_destroy);
cond_syscall(sys_io_submit); cond_syscall(sys_io_submit);
cond_syscall(sys_io_cancel); cond_syscall(sys_io_cancel);
cond_syscall(sys_io_getevents); cond_syscall(sys_io_getevents);
cond_syscall(sys_syslog);
/* arch-specific weak syscall entries */ /* arch-specific weak syscall entries */
cond_syscall(sys_pciconfig_read); cond_syscall(sys_pciconfig_read);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment