Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
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,
return
error
;
}
asmlinkage
long
sys_setxattr
(
const
char
__user
*
pathname
,
const
char
__user
*
nam
e
,
const
void
__user
*
value
,
size_t
size
,
int
flags
)
SYSCALL_DEFINE5
(
setxattr
,
const
char
__user
*
,
pathname
,
const
char
__user
*
,
name
,
const
void
__user
*
,
valu
e
,
size_t
,
size
,
int
,
flags
)
{
struct
path
path
;
int
error
;
...
...
@@ -270,9 +270,9 @@ sys_setxattr(const char __user *pathname, const char __user *name,
return
error
;
}
asmlinkage
long
sys_lsetxattr
(
const
char
__user
*
pathname
,
const
char
__user
*
nam
e
,
const
void
__user
*
value
,
size_t
size
,
int
flags
)
SYSCALL_DEFINE5
(
lsetxattr
,
const
char
__user
*
,
pathname
,
const
char
__user
*
,
name
,
const
void
__user
*
,
valu
e
,
size_t
,
size
,
int
,
flags
)
{
struct
path
path
;
int
error
;
...
...
@@ -289,9 +289,8 @@ sys_lsetxattr(const char __user *pathname, const char __user *name,
return
error
;
}
asmlinkage
long
sys_fsetxattr
(
int
fd
,
const
char
__user
*
name
,
const
void
__user
*
value
,
size_t
size
,
int
flags
)
SYSCALL_DEFINE5
(
fsetxattr
,
int
,
fd
,
const
char
__user
*
,
name
,
const
void
__user
*
,
value
,
size_t
,
size
,
int
,
flags
)
{
struct
file
*
f
;
struct
dentry
*
dentry
;
...
...
@@ -349,9 +348,8 @@ getxattr(struct dentry *d, const char __user *name, void __user *value,
return
error
;
}
asmlinkage
long
sys_getxattr
(
const
char
__user
*
pathname
,
const
char
__user
*
name
,
void
__user
*
value
,
size_t
size
)
SYSCALL_DEFINE4
(
getxattr
,
const
char
__user
*
,
pathname
,
const
char
__user
*
,
name
,
void
__user
*
,
value
,
size_t
,
size
)
{
struct
path
path
;
ssize_t
error
;
...
...
@@ -364,9 +362,8 @@ sys_getxattr(const char __user *pathname, const char __user *name,
return
error
;
}
asmlinkage
long
sys_lgetxattr
(
const
char
__user
*
pathname
,
const
char
__user
*
name
,
void
__user
*
value
,
size_t
size
)
SYSCALL_DEFINE4
(
lgetxattr
,
const
char
__user
*
,
pathname
,
const
char
__user
*
,
name
,
void
__user
*
,
value
,
size_t
,
size
)
{
struct
path
path
;
ssize_t
error
;
...
...
@@ -379,8 +376,8 @@ sys_lgetxattr(const char __user *pathname, const char __user *name, void __user
return
error
;
}
asmlinkage
long
sys_fgetxattr
(
int
fd
,
const
char
__user
*
name
,
void
__user
*
value
,
size_t
size
)
SYSCALL_DEFINE4
(
fgetxattr
,
int
,
fd
,
const
char
__user
*
,
name
,
void
__user
*
,
value
,
size_t
,
size
)
{
struct
file
*
f
;
ssize_t
error
=
-
EBADF
;
...
...
@@ -424,8 +421,8 @@ listxattr(struct dentry *d, char __user *list, size_t size)
return
error
;
}
asmlinkage
long
sys_listxattr
(
const
char
__user
*
pathname
,
char
__user
*
list
,
size_t
size
)
SYSCALL_DEFINE3
(
listxattr
,
const
char
__user
*
,
pathname
,
char
__user
*
,
list
,
size_t
,
size
)
{
struct
path
path
;
ssize_t
error
;
...
...
@@ -438,8 +435,8 @@ sys_listxattr(const char __user *pathname, char __user *list, size_t size)
return
error
;
}
asmlinkage
long
sys_llistxattr
(
const
char
__user
*
pathname
,
char
__user
*
list
,
size_t
size
)
SYSCALL_DEFINE3
(
llistxattr
,
const
char
__user
*
,
pathname
,
char
__user
*
,
list
,
size_t
,
size
)
{
struct
path
path
;
ssize_t
error
;
...
...
@@ -452,8 +449,7 @@ sys_llistxattr(const char __user *pathname, char __user *list, size_t size)
return
error
;
}
asmlinkage
long
sys_flistxattr
(
int
fd
,
char
__user
*
list
,
size_t
size
)
SYSCALL_DEFINE3
(
flistxattr
,
int
,
fd
,
char
__user
*
,
list
,
size_t
,
size
)
{
struct
file
*
f
;
ssize_t
error
=
-
EBADF
;
...
...
@@ -485,8 +481,8 @@ removexattr(struct dentry *d, const char __user *name)
return
vfs_removexattr
(
d
,
kname
);
}
asmlinkage
long
sys_removexattr
(
const
char
__user
*
pathname
,
const
char
__user
*
name
)
SYSCALL_DEFINE2
(
removexattr
,
const
char
__user
*
,
pathname
,
const
char
__user
*
,
name
)
{
struct
path
path
;
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