Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
2e4d0924
Commit
2e4d0924
authored
16 years ago
by
Heiko Carstens
Browse files
Options
Downloads
Patches
Plain Diff
[CVE-2009-0029] System call wrappers part 29
Signed-off-by:
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
parent
938bb9f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fs/namei.c
+10
-11
10 additions, 11 deletions
fs/namei.c
fs/notify/inotify/inotify_user.c
+3
-2
3 additions, 2 deletions
fs/notify/inotify/inotify_user.c
with
13 additions
and
13 deletions
fs/namei.c
+
10
−
11
View file @
2e4d0924
...
...
@@ -1962,8 +1962,8 @@ static int may_mknod(mode_t mode)
}
}
asmlinkage
long
sys_
mknodat
(
int
dfd
,
const
char
__user
*
filename
,
int
mode
,
unsigned
dev
)
SYSCALL_DEFINE4
(
mknodat
,
int
,
dfd
,
const
char
__user
*
,
filename
,
int
,
mode
,
unsigned
,
dev
)
{
int
error
;
char
*
tmp
;
...
...
@@ -2044,7 +2044,7 @@ int vfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
return
error
;
}
asmlinkage
long
sys_
mkdirat
(
int
dfd
,
const
char
__user
*
pathname
,
int
mode
)
SYSCALL_DEFINE3
(
mkdirat
,
int
,
dfd
,
const
char
__user
*
,
pathname
,
int
,
mode
)
{
int
error
=
0
;
char
*
tmp
;
...
...
@@ -2291,7 +2291,7 @@ static long do_unlinkat(int dfd, const char __user *pathname)
goto
exit2
;
}
asmlinkage
long
sys_
unlinkat
(
int
dfd
,
const
char
__user
*
pathname
,
int
flag
)
SYSCALL_DEFINE3
(
unlinkat
,
int
,
dfd
,
const
char
__user
*
,
pathname
,
int
,
flag
)
{
if
((
flag
&
~
AT_REMOVEDIR
)
!=
0
)
return
-
EINVAL
;
...
...
@@ -2328,8 +2328,8 @@ int vfs_symlink(struct inode *dir, struct dentry *dentry, const char *oldname)
return
error
;
}
asmlinkage
long
sys_
symlinkat
(
const
char
__user
*
oldname
,
int
newdfd
,
const
char
__user
*
newname
)
SYSCALL_DEFINE3
(
symlinkat
,
const
char
__user
*
,
oldname
,
int
,
newdfd
,
const
char
__user
*
,
newname
)
{
int
error
;
char
*
from
;
...
...
@@ -2422,9 +2422,8 @@ int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_de
* with linux 2.0, and to avoid hard-linking to directories
* and other special files. --ADM
*/
asmlinkage
long
sys_linkat
(
int
olddfd
,
const
char
__user
*
oldname
,
int
newdfd
,
const
char
__user
*
newname
,
int
flags
)
SYSCALL_DEFINE5
(
linkat
,
int
,
olddfd
,
const
char
__user
*
,
oldname
,
int
,
newdfd
,
const
char
__user
*
,
newname
,
int
,
flags
)
{
struct
dentry
*
new_dentry
;
struct
nameidata
nd
;
...
...
@@ -2624,8 +2623,8 @@ int vfs_rename(struct inode *old_dir, struct dentry *old_dentry,
return
error
;
}
asmlinkage
long
sys_
renameat
(
int
olddfd
,
const
char
__user
*
oldname
,
int
newdfd
,
const
char
__user
*
newname
)
SYSCALL_DEFINE4
(
renameat
,
int
,
olddfd
,
const
char
__user
*
,
oldname
,
int
,
newdfd
,
const
char
__user
*
,
newname
)
{
struct
dentry
*
old_dir
,
*
new_dir
;
struct
dentry
*
old_dentry
,
*
new_dentry
;
...
...
This diff is collapsed.
Click to expand it.
fs/notify/inotify/inotify_user.c
+
3
−
2
View file @
2e4d0924
...
...
@@ -660,7 +660,8 @@ SYSCALL_DEFINE0(inotify_init)
return
sys_inotify_init1
(
0
);
}
asmlinkage
long
sys_inotify_add_watch
(
int
fd
,
const
char
__user
*
pathname
,
u32
mask
)
SYSCALL_DEFINE3
(
inotify_add_watch
,
int
,
fd
,
const
char
__user
*
,
pathname
,
u32
,
mask
)
{
struct
inode
*
inode
;
struct
inotify_device
*
dev
;
...
...
@@ -704,7 +705,7 @@ asmlinkage long sys_inotify_add_watch(int fd, const char __user *pathname, u32 m
return
ret
;
}
asmlinkage
long
sys_
inotify_rm_watch
(
int
fd
,
__s32
wd
)
SYSCALL_DEFINE2
(
inotify_rm_watch
,
int
,
fd
,
__s32
,
wd
)
{
struct
file
*
filp
;
struct
inotify_device
*
dev
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment