[CVE-2009-0029] Rename old_readdir to sys_old_readdir

This way it matches the generic system call name convention.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
This commit is contained in:
Heiko Carstens 2009-01-14 14:13:55 +01:00
parent 2ed7c03ec1
commit e55380edf6
15 changed files with 16 additions and 14 deletions

View File

@ -98,7 +98,7 @@
CALL(sys_uselib) CALL(sys_uselib)
CALL(sys_swapon) CALL(sys_swapon)
CALL(sys_reboot) CALL(sys_reboot)
CALL(OBSOLETE(old_readdir)) /* used by libc4 */ CALL(OBSOLETE(sys_old_readdir)) /* used by libc4 */
/* 90 */ CALL(OBSOLETE(old_mmap)) /* used by libc4 */ /* 90 */ CALL(OBSOLETE(old_mmap)) /* used by libc4 */
CALL(sys_munmap) CALL(sys_munmap)
CALL(sys_truncate) CALL(sys_truncate)

View File

@ -691,7 +691,7 @@ sys_call_table:
.long sys_uselib .long sys_uselib
.long sys_swapon .long sys_swapon
.long sys_reboot .long sys_reboot
.long old_readdir .long sys_old_readdir
.long old_mmap /* 90 */ .long old_mmap /* 90 */
.long sys_munmap .long sys_munmap
.long sys_truncate .long sys_truncate

View File

@ -614,7 +614,7 @@ sys_call_table:
.long sys_uselib .long sys_uselib
.long sys_swapon .long sys_swapon
.long sys_reboot .long sys_reboot
.long old_readdir .long sys_old_readdir
.long old_mmap /* 90 */ .long old_mmap /* 90 */
.long sys_munmap .long sys_munmap
.long sys_truncate .long sys_truncate

View File

@ -103,7 +103,7 @@ SYMBOL_NAME_LABEL(sys_call_table)
.long SYMBOL_NAME(sys_uselib) .long SYMBOL_NAME(sys_uselib)
.long SYMBOL_NAME(sys_swapon) .long SYMBOL_NAME(sys_swapon)
.long SYMBOL_NAME(sys_reboot) .long SYMBOL_NAME(sys_reboot)
.long SYMBOL_NAME(old_readdir) .long SYMBOL_NAME(sys_old_readdir)
.long SYMBOL_NAME(old_mmap) /* 90 */ .long SYMBOL_NAME(old_mmap) /* 90 */
.long SYMBOL_NAME(sys_munmap) .long SYMBOL_NAME(sys_munmap)
.long SYMBOL_NAME(sys_truncate) .long SYMBOL_NAME(sys_truncate)

View File

@ -513,7 +513,7 @@ sys_call_table:
.long sys_uselib .long sys_uselib
.long sys_swapon .long sys_swapon
.long sys_reboot .long sys_reboot
.long old_readdir .long sys_old_readdir
.long old_mmap /* 90 */ .long old_mmap /* 90 */
.long sys_munmap .long sys_munmap
.long sys_truncate .long sys_truncate

View File

@ -107,7 +107,7 @@ ENTRY(sys_call_table)
.long sys_uselib .long sys_uselib
.long sys_ni_syscall /* sys_swapon */ .long sys_ni_syscall /* sys_swapon */
.long sys_reboot .long sys_reboot
.long old_readdir .long sys_old_readdir
.long old_mmap /* 90 */ .long old_mmap /* 90 */
.long sys_munmap .long sys_munmap
.long sys_truncate .long sys_truncate

View File

@ -398,7 +398,7 @@ einval: li v0, -ENOSYS
sys sys_uselib 1 sys sys_uselib 1
sys sys_swapon 2 sys sys_swapon 2
sys sys_reboot 3 sys sys_reboot 3
sys old_readdir 3 sys sys_old_readdir 3
sys old_mmap 6 /* 4090 */ sys old_mmap 6 /* 4090 */
sys sys_munmap 2 sys sys_munmap 2
sys sys_truncate 2 sys sys_truncate 2

View File

@ -478,7 +478,7 @@ ENTRY(sys_call_table)
.long sys_uselib .long sys_uselib
.long sys_swapon .long sys_swapon
.long sys_reboot .long sys_reboot
.long old_readdir .long sys_old_readdir
.long old_mmap /* 90 */ .long old_mmap /* 90 */
.long sys_munmap .long sys_munmap
.long sys_truncate .long sys_truncate

View File

@ -92,7 +92,7 @@ COMPAT_SYS_SPU(readlink)
SYSCALL(uselib) SYSCALL(uselib)
SYSCALL(swapon) SYSCALL(swapon)
SYSCALL(reboot) SYSCALL(reboot)
SYSX(sys_ni_syscall,compat_sys_old_readdir,old_readdir) SYSX(sys_ni_syscall,compat_sys_old_readdir,sys_old_readdir)
SYSCALL_SPU(mmap) SYSCALL_SPU(mmap)
SYSCALL_SPU(munmap) SYSCALL_SPU(munmap)
SYSCALL_SPU(truncate) SYSCALL_SPU(truncate)

View File

@ -105,7 +105,7 @@ ENTRY(sys_call_table)
.long sys_uselib .long sys_uselib
.long sys_swapon .long sys_swapon
.long sys_reboot .long sys_reboot
.long old_readdir .long sys_old_readdir
.long old_mmap /* 90 */ .long old_mmap /* 90 */
.long sys_munmap .long sys_munmap
.long sys_truncate .long sys_truncate

View File

@ -109,7 +109,7 @@ sys_call_table:
.long sys_uselib .long sys_uselib
.long sys_swapon .long sys_swapon
.long sys_reboot .long sys_reboot
.long old_readdir .long sys_old_readdir
.long old_mmap /* 90 */ .long old_mmap /* 90 */
.long sys_munmap .long sys_munmap
.long sys_truncate .long sys_truncate

View File

@ -56,7 +56,7 @@ sys_call_table:
/*185*/ .long sys_setpgid, sys_fremovexattr, sys_tkill, sys_exit_group, sys_newuname /*185*/ .long sys_setpgid, sys_fremovexattr, sys_tkill, sys_exit_group, sys_newuname
/*190*/ .long sys_init_module, sys_personality, sparc_remap_file_pages, sys_epoll_create, sys_epoll_ctl /*190*/ .long sys_init_module, sys_personality, sparc_remap_file_pages, sys_epoll_create, sys_epoll_ctl
/*195*/ .long sys_epoll_wait, sys_ioprio_set, sys_getppid, sparc_sigaction, sys_sgetmask /*195*/ .long sys_epoll_wait, sys_ioprio_set, sys_getppid, sparc_sigaction, sys_sgetmask
/*200*/ .long sys_ssetmask, sys_sigsuspend, sys_newlstat, sys_uselib, old_readdir /*200*/ .long sys_ssetmask, sys_sigsuspend, sys_newlstat, sys_uselib, sys_old_readdir
/*205*/ .long sys_readahead, sys_socketcall, sys_syslog, sys_lookup_dcookie, sys_fadvise64 /*205*/ .long sys_readahead, sys_socketcall, sys_syslog, sys_lookup_dcookie, sys_fadvise64
/*210*/ .long sys_fadvise64_64, sys_tgkill, sys_waitpid, sys_swapoff, sys_sysinfo /*210*/ .long sys_fadvise64_64, sys_tgkill, sys_waitpid, sys_swapoff, sys_sysinfo
/*215*/ .long sys_ipc, sys_sigreturn, sys_clone, sys_ioprio_get, sys_adjtimex /*215*/ .long sys_ipc, sys_sigreturn, sys_clone, sys_ioprio_get, sys_adjtimex

View File

@ -88,7 +88,7 @@ ENTRY(sys_call_table)
.long sys_uselib .long sys_uselib
.long sys_swapon .long sys_swapon
.long sys_reboot .long sys_reboot
.long old_readdir .long sys_old_readdir
.long old_mmap /* 90 */ .long old_mmap /* 90 */
.long sys_munmap .long sys_munmap
.long sys_truncate .long sys_truncate

View File

@ -102,7 +102,7 @@ efault:
return -EFAULT; return -EFAULT;
} }
asmlinkage long old_readdir(unsigned int fd, struct old_linux_dirent __user * dirent, unsigned int count) asmlinkage long sys_old_readdir(unsigned int fd, struct old_linux_dirent __user * dirent, unsigned int count)
{ {
int error; int error;
struct file * file; struct file * file;

View File

@ -54,6 +54,7 @@ struct compat_stat;
struct compat_timeval; struct compat_timeval;
struct robust_list_head; struct robust_list_head;
struct getcpu_cache; struct getcpu_cache;
struct old_linux_dirent;
#include <linux/types.h> #include <linux/types.h>
#include <linux/aio_abi.h> #include <linux/aio_abi.h>
@ -608,6 +609,7 @@ asmlinkage long sys_timerfd_gettime(int ufd, struct itimerspec __user *otmr);
asmlinkage long sys_eventfd(unsigned int count); asmlinkage long sys_eventfd(unsigned int count);
asmlinkage long sys_eventfd2(unsigned int count, int flags); asmlinkage long sys_eventfd2(unsigned int count, int flags);
asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len); asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len);
asmlinkage long sys_old_readdir(unsigned int, struct old_linux_dirent __user *, unsigned int);
int kernel_execve(const char *filename, char *const argv[], char *const envp[]); int kernel_execve(const char *filename, char *const argv[], char *const envp[]);