aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xattr.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2009-01-14 08:13:54 -0500
committerHeiko Carstens <heiko.carstens@de.ibm.com>2009-01-14 08:15:14 -0500
commit2ed7c03ec17779afb4fcfa3b8c61df61bd4879ba (patch)
tree4e0fefd574bab5470a02edf439727f472a9663c6 /fs/xattr.c
parent4c696ba7982501d43dea11dbbaabd2aa8a19cc42 (diff)
[CVE-2009-0029] Convert all system calls to return a long
Convert all system calls to return a long. This should be a NOP since all converted types should have the same size anyway. With the exception of sys_exit_group which returned void. But that doesn't matter since the system call doesn't return. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'fs/xattr.c')
-rw-r--r--fs/xattr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/xattr.c b/fs/xattr.c
index 237804cd6b56..d049ae27aae7 100644
--- a/fs/xattr.c
+++ b/fs/xattr.c
@@ -349,7 +349,7 @@ getxattr(struct dentry *d, const char __user *name, void __user *value,
349 return error; 349 return error;
350} 350}
351 351
352asmlinkage ssize_t 352asmlinkage long
353sys_getxattr(const char __user *pathname, const char __user *name, 353sys_getxattr(const char __user *pathname, const char __user *name,
354 void __user *value, size_t size) 354 void __user *value, size_t size)
355{ 355{
@@ -364,7 +364,7 @@ sys_getxattr(const char __user *pathname, const char __user *name,
364 return error; 364 return error;
365} 365}
366 366
367asmlinkage ssize_t 367asmlinkage long
368sys_lgetxattr(const char __user *pathname, const char __user *name, void __user *value, 368sys_lgetxattr(const char __user *pathname, const char __user *name, void __user *value,
369 size_t size) 369 size_t size)
370{ 370{
@@ -379,7 +379,7 @@ sys_lgetxattr(const char __user *pathname, const char __user *name, void __user
379 return error; 379 return error;
380} 380}
381 381
382asmlinkage ssize_t 382asmlinkage long
383sys_fgetxattr(int fd, const char __user *name, void __user *value, size_t size) 383sys_fgetxattr(int fd, const char __user *name, void __user *value, size_t size)
384{ 384{
385 struct file *f; 385 struct file *f;
@@ -424,7 +424,7 @@ listxattr(struct dentry *d, char __user *list, size_t size)
424 return error; 424 return error;
425} 425}
426 426
427asmlinkage ssize_t 427asmlinkage long
428sys_listxattr(const char __user *pathname, char __user *list, size_t size) 428sys_listxattr(const char __user *pathname, char __user *list, size_t size)
429{ 429{
430 struct path path; 430 struct path path;
@@ -438,7 +438,7 @@ sys_listxattr(const char __user *pathname, char __user *list, size_t size)
438 return error; 438 return error;
439} 439}
440 440
441asmlinkage ssize_t 441asmlinkage long
442sys_llistxattr(const char __user *pathname, char __user *list, size_t size) 442sys_llistxattr(const char __user *pathname, char __user *list, size_t size)
443{ 443{
444 struct path path; 444 struct path path;
@@ -452,7 +452,7 @@ sys_llistxattr(const char __user *pathname, char __user *list, size_t size)
452 return error; 452 return error;
453} 453}
454 454
455asmlinkage ssize_t 455asmlinkage long
456sys_flistxattr(int fd, char __user *list, size_t size) 456sys_flistxattr(int fd, char __user *list, size_t size)
457{ 457{
458 struct file *f; 458 struct file *f;