[CVE-2009-0029] System call wrappers part 10

Signed-off-by: Heiko Carstens <[email protected]>
This commit is contained in:
Heiko Carstens 2009-01-14 14:14:12 +01:00
commit bdc480e3be
4 changed files with 11 additions and 14 deletions

View file

@ -152,7 +152,7 @@ static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * sta
return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0;
}
asmlinkage long sys_stat(char __user * filename, struct __old_kernel_stat __user * statbuf)
SYSCALL_DEFINE2(stat, char __user *, filename, struct __old_kernel_stat __user *, statbuf)
{
struct kstat stat;
int error = vfs_stat_fd(AT_FDCWD, filename, &stat);