Commit 64fd1de3 authored by Heiko Carstens's avatar Heiko Carstens

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

Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
parent 257ac264
...@@ -251,9 +251,9 @@ setxattr(struct dentry *d, const char __user *name, const void __user *value, ...@@ -251,9 +251,9 @@ setxattr(struct dentry *d, const char __user *name, const void __user *value,
return error; return error;
} }
asmlinkage long SYSCALL_DEFINE5(setxattr, const char __user *, pathname,
sys_setxattr(const char __user *pathname, const char __user *name, const char __user *, name, const void __user *, value,
const void __user *value, size_t size, int flags) size_t, size, int, flags)
{ {
struct path path; struct path path;
int error; int error;
...@@ -270,9 +270,9 @@ sys_setxattr(const char __user *pathname, const char __user *name, ...@@ -270,9 +270,9 @@ sys_setxattr(const char __user *pathname, const char __user *name,
return error; return error;
} }
asmlinkage long SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname,
sys_lsetxattr(const char __user *pathname, const char __user *name, const char __user *, name, const void __user *, value,
const void __user *value, size_t size, int flags) size_t, size, int, flags)
{ {
struct path path; struct path path;
int error; int error;
...@@ -289,9 +289,8 @@ sys_lsetxattr(const char __user *pathname, const char __user *name, ...@@ -289,9 +289,8 @@ sys_lsetxattr(const char __user *pathname, const char __user *name,
return error; return error;
} }
asmlinkage long SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name,
sys_fsetxattr(int fd, const char __user *name, const void __user *value, const void __user *,value, size_t, size, int, flags)
size_t size, int flags)
{ {
struct file *f; struct file *f;
struct dentry *dentry; struct dentry *dentry;
...@@ -349,9 +348,8 @@ getxattr(struct dentry *d, const char __user *name, void __user *value, ...@@ -349,9 +348,8 @@ getxattr(struct dentry *d, const char __user *name, void __user *value,
return error; return error;
} }
asmlinkage long SYSCALL_DEFINE4(getxattr, const char __user *, pathname,
sys_getxattr(const char __user *pathname, const char __user *name, const char __user *, name, void __user *, value, size_t, size)
void __user *value, size_t size)
{ {
struct path path; struct path path;
ssize_t error; ssize_t error;
...@@ -364,9 +362,8 @@ sys_getxattr(const char __user *pathname, const char __user *name, ...@@ -364,9 +362,8 @@ sys_getxattr(const char __user *pathname, const char __user *name,
return error; return error;
} }
asmlinkage long SYSCALL_DEFINE4(lgetxattr, const char __user *, pathname,
sys_lgetxattr(const char __user *pathname, const char __user *name, void __user *value, const char __user *, name, void __user *, value, size_t, size)
size_t size)
{ {
struct path path; struct path path;
ssize_t error; ssize_t error;
...@@ -379,8 +376,8 @@ sys_lgetxattr(const char __user *pathname, const char __user *name, void __user ...@@ -379,8 +376,8 @@ sys_lgetxattr(const char __user *pathname, const char __user *name, void __user
return error; return error;
} }
asmlinkage long SYSCALL_DEFINE4(fgetxattr, int, fd, const char __user *, name,
sys_fgetxattr(int fd, const char __user *name, void __user *value, size_t size) void __user *, value, size_t, size)
{ {
struct file *f; struct file *f;
ssize_t error = -EBADF; ssize_t error = -EBADF;
...@@ -424,8 +421,8 @@ listxattr(struct dentry *d, char __user *list, size_t size) ...@@ -424,8 +421,8 @@ listxattr(struct dentry *d, char __user *list, size_t size)
return error; return error;
} }
asmlinkage long SYSCALL_DEFINE3(listxattr, const char __user *, pathname, char __user *, list,
sys_listxattr(const char __user *pathname, char __user *list, size_t size) size_t, size)
{ {
struct path path; struct path path;
ssize_t error; ssize_t error;
...@@ -438,8 +435,8 @@ sys_listxattr(const char __user *pathname, char __user *list, size_t size) ...@@ -438,8 +435,8 @@ sys_listxattr(const char __user *pathname, char __user *list, size_t size)
return error; return error;
} }
asmlinkage long SYSCALL_DEFINE3(llistxattr, const char __user *, pathname, char __user *, list,
sys_llistxattr(const char __user *pathname, char __user *list, size_t size) size_t, size)
{ {
struct path path; struct path path;
ssize_t error; ssize_t error;
...@@ -452,8 +449,7 @@ sys_llistxattr(const char __user *pathname, char __user *list, size_t size) ...@@ -452,8 +449,7 @@ sys_llistxattr(const char __user *pathname, char __user *list, size_t size)
return error; return error;
} }
asmlinkage long SYSCALL_DEFINE3(flistxattr, int, fd, char __user *, list, size_t, size)
sys_flistxattr(int fd, char __user *list, size_t size)
{ {
struct file *f; struct file *f;
ssize_t error = -EBADF; ssize_t error = -EBADF;
...@@ -485,8 +481,8 @@ removexattr(struct dentry *d, const char __user *name) ...@@ -485,8 +481,8 @@ removexattr(struct dentry *d, const char __user *name)
return vfs_removexattr(d, kname); return vfs_removexattr(d, kname);
} }
asmlinkage long SYSCALL_DEFINE2(removexattr, const char __user *, pathname,
sys_removexattr(const char __user *pathname, const char __user *name) const char __user *, name)
{ {
struct path path; struct path path;
int error; int error;
......
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