Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
64fd1de3
Commit
64fd1de3
authored
Jan 14, 2009
by
Heiko Carstens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CVE-2009-0029] System call wrappers part 12
Signed-off-by:
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
parent
257ac264
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
25 deletions
+21
-25
fs/xattr.c
fs/xattr.c
+21
-25
No files found.
fs/xattr.c
View file @
64fd1de3
...
@@ -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
*
nam
e
,
const
char
__user
*
,
name
,
const
void
__user
*
,
valu
e
,
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
*
nam
e
,
const
char
__user
*
,
name
,
const
void
__user
*
,
valu
e
,
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment