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
Kirill Smelkov
linux
Commits
dbf040d9
Commit
dbf040d9
authored
Jan 14, 2009
by
Heiko Carstens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CVE-2009-0029] System call wrappers part 02
Signed-off-by:
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
parent
58fd3aa2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
kernel/sys.c
kernel/sys.c
+5
-5
kernel/timer.c
kernel/timer.c
+5
-5
No files found.
kernel/sys.c
View file @
dbf040d9
...
@@ -756,7 +756,7 @@ asmlinkage long sys_setresuid(uid_t ruid, uid_t euid, uid_t suid)
...
@@ -756,7 +756,7 @@ asmlinkage long sys_setresuid(uid_t ruid, uid_t euid, uid_t suid)
return
retval
;
return
retval
;
}
}
asmlinkage
long
sys_getresuid
(
uid_t
__user
*
ruid
,
uid_t
__user
*
euid
,
uid_t
__user
*
suid
)
SYSCALL_DEFINE3
(
getresuid
,
uid_t
__user
*
,
ruid
,
uid_t
__user
*
,
euid
,
uid_t
__user
*
,
suid
)
{
{
const
struct
cred
*
cred
=
current_cred
();
const
struct
cred
*
cred
=
current_cred
();
int
retval
;
int
retval
;
...
@@ -814,7 +814,7 @@ asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid)
...
@@ -814,7 +814,7 @@ asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid)
return
retval
;
return
retval
;
}
}
asmlinkage
long
sys_getresgid
(
gid_t
__user
*
rgid
,
gid_t
__user
*
egid
,
gid_t
__user
*
sgid
)
SYSCALL_DEFINE3
(
getresgid
,
gid_t
__user
*
,
rgid
,
gid_t
__user
*
,
egid
,
gid_t
__user
*
,
sgid
)
{
{
const
struct
cred
*
cred
=
current_cred
();
const
struct
cred
*
cred
=
current_cred
();
int
retval
;
int
retval
;
...
@@ -1015,7 +1015,7 @@ asmlinkage long sys_setpgid(pid_t pid, pid_t pgid)
...
@@ -1015,7 +1015,7 @@ asmlinkage long sys_setpgid(pid_t pid, pid_t pgid)
return
err
;
return
err
;
}
}
asmlinkage
long
sys_getpgid
(
pid_t
pid
)
SYSCALL_DEFINE1
(
getpgid
,
pid_t
,
pid
)
{
{
struct
task_struct
*
p
;
struct
task_struct
*
p
;
struct
pid
*
grp
;
struct
pid
*
grp
;
...
@@ -1045,14 +1045,14 @@ asmlinkage long sys_getpgid(pid_t pid)
...
@@ -1045,14 +1045,14 @@ asmlinkage long sys_getpgid(pid_t pid)
#ifdef __ARCH_WANT_SYS_GETPGRP
#ifdef __ARCH_WANT_SYS_GETPGRP
asmlinkage
long
sys_getpgrp
(
void
)
SYSCALL_DEFINE0
(
getpgrp
)
{
{
return
sys_getpgid
(
0
);
return
sys_getpgid
(
0
);
}
}
#endif
#endif
asmlinkage
long
sys_getsid
(
pid_t
pid
)
SYSCALL_DEFINE1
(
getsid
,
pid_t
,
pid
)
{
{
struct
task_struct
*
p
;
struct
task_struct
*
p
;
struct
pid
*
sid
;
struct
pid
*
sid
;
...
...
kernel/timer.c
View file @
dbf040d9
...
@@ -1163,7 +1163,7 @@ SYSCALL_DEFINE0(getpid)
...
@@ -1163,7 +1163,7 @@ SYSCALL_DEFINE0(getpid)
* value of ->real_parent under rcu_read_lock(), see
* value of ->real_parent under rcu_read_lock(), see
* release_task()->call_rcu(delayed_put_task_struct).
* release_task()->call_rcu(delayed_put_task_struct).
*/
*/
asmlinkage
long
sys_getppid
(
vo
id
)
SYSCALL_DEFINE0
(
getpp
id
)
{
{
int
pid
;
int
pid
;
...
@@ -1174,25 +1174,25 @@ asmlinkage long sys_getppid(void)
...
@@ -1174,25 +1174,25 @@ asmlinkage long sys_getppid(void)
return
pid
;
return
pid
;
}
}
asmlinkage
long
sys_getuid
(
vo
id
)
SYSCALL_DEFINE0
(
getu
id
)
{
{
/* Only we change this so SMP safe */
/* Only we change this so SMP safe */
return
current_uid
();
return
current_uid
();
}
}
asmlinkage
long
sys_geteuid
(
vo
id
)
SYSCALL_DEFINE0
(
geteu
id
)
{
{
/* Only we change this so SMP safe */
/* Only we change this so SMP safe */
return
current_euid
();
return
current_euid
();
}
}
asmlinkage
long
sys_getgid
(
vo
id
)
SYSCALL_DEFINE0
(
getg
id
)
{
{
/* Only we change this so SMP safe */
/* Only we change this so SMP safe */
return
current_gid
();
return
current_gid
();
}
}
asmlinkage
long
sys_getegid
(
vo
id
)
SYSCALL_DEFINE0
(
geteg
id
)
{
{
/* Only we change this so SMP safe */
/* Only we change this so SMP safe */
return
current_egid
();
return
current_egid
();
...
...
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