mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[CVE-2009-0029] System call wrappers part 30
Signed-off-by: Heiko Carstens <[email protected]>
This commit is contained in:
parent
2e4d0924eb
commit
6559eed8ca
4 changed files with 17 additions and 16 deletions
12
fs/stat.c
12
fs/stat.c
|
|
@ -260,8 +260,8 @@ SYSCALL_DEFINE2(newlstat, char __user *, filename, struct stat __user *, statbuf
|
|||
}
|
||||
|
||||
#if !defined(__ARCH_WANT_STAT64) || defined(__ARCH_WANT_SYS_NEWFSTATAT)
|
||||
asmlinkage long sys_newfstatat(int dfd, char __user *filename,
|
||||
struct stat __user *statbuf, int flag)
|
||||
SYSCALL_DEFINE4(newfstatat, int, dfd, char __user *, filename,
|
||||
struct stat __user *, statbuf, int, flag)
|
||||
{
|
||||
struct kstat stat;
|
||||
int error = -EINVAL;
|
||||
|
|
@ -293,8 +293,8 @@ SYSCALL_DEFINE2(newfstat, unsigned int, fd, struct stat __user *, statbuf)
|
|||
return error;
|
||||
}
|
||||
|
||||
asmlinkage long sys_readlinkat(int dfd, const char __user *pathname,
|
||||
char __user *buf, int bufsiz)
|
||||
SYSCALL_DEFINE4(readlinkat, int, dfd, const char __user *, pathname,
|
||||
char __user *, buf, int, bufsiz)
|
||||
{
|
||||
struct path path;
|
||||
int error;
|
||||
|
|
@ -400,8 +400,8 @@ SYSCALL_DEFINE2(fstat64, unsigned long, fd, struct stat64 __user *, statbuf)
|
|||
return error;
|
||||
}
|
||||
|
||||
asmlinkage long sys_fstatat64(int dfd, char __user *filename,
|
||||
struct stat64 __user *statbuf, int flag)
|
||||
SYSCALL_DEFINE4(fstatat64, int, dfd, char __user *, filename,
|
||||
struct stat64 __user *, statbuf, int, flag)
|
||||
{
|
||||
struct kstat stat;
|
||||
int error = -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue