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
b290ebe2
Commit
b290ebe2
authored
Jan 14, 2009
by
Heiko Carstens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
CVE-2009
-0029] System call wrappers part 04
Signed-off-by:
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
parent
ae1251ab
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
13 deletions
+11
-13
kernel/acct.c
kernel/acct.c
+1
-1
kernel/capability.c
kernel/capability.c
+2
-2
kernel/exec_domain.c
kernel/exec_domain.c
+1
-2
kernel/itimer.c
kernel/itimer.c
+1
-1
kernel/signal.c
kernel/signal.c
+3
-4
kernel/sys.c
kernel/sys.c
+3
-3
No files found.
kernel/acct.c
View file @
b290ebe2
...
...
@@ -277,7 +277,7 @@ static int acct_on(char *name)
* should be written. If the filename is NULL, accounting will be
* shutdown.
*/
asmlinkage
long
sys_acct
(
const
char
__user
*
name
)
SYSCALL_DEFINE1
(
acct
,
const
char
__user
*
,
name
)
{
int
error
;
...
...
kernel/capability.c
View file @
b290ebe2
...
...
@@ -161,7 +161,7 @@ static inline int cap_get_target_pid(pid_t pid, kernel_cap_t *pEp,
*
* Returns 0 on success and < 0 on error.
*/
asmlinkage
long
sys_capget
(
cap_user_header_t
header
,
cap_user_data_t
dataptr
)
SYSCALL_DEFINE2
(
capget
,
cap_user_header_t
,
header
,
cap_user_data_t
,
dataptr
)
{
int
ret
=
0
;
pid_t
pid
;
...
...
@@ -235,7 +235,7 @@ asmlinkage long sys_capget(cap_user_header_t header, cap_user_data_t dataptr)
*
* Returns 0 on success and < 0 on error.
*/
asmlinkage
long
sys_capset
(
cap_user_header_t
header
,
const
cap_user_data_t
data
)
SYSCALL_DEFINE2
(
capset
,
cap_user_header_t
,
header
,
const
cap_user_data_t
,
data
)
{
struct
__user_cap_data_struct
kdata
[
_KERNEL_CAPABILITY_U32S
];
unsigned
i
,
tocopy
;
...
...
kernel/exec_domain.c
View file @
b290ebe2
...
...
@@ -209,8 +209,7 @@ static int __init proc_execdomains_init(void)
module_init
(
proc_execdomains_init
);
#endif
asmlinkage
long
sys_personality
(
u_long
personality
)
SYSCALL_DEFINE1
(
personality
,
u_long
,
personality
)
{
u_long
old
=
current
->
personality
;
...
...
kernel/itimer.c
View file @
b290ebe2
...
...
@@ -100,7 +100,7 @@ int do_getitimer(int which, struct itimerval *value)
return
0
;
}
asmlinkage
long
sys_getitimer
(
int
which
,
struct
itimerval
__user
*
value
)
SYSCALL_DEFINE2
(
getitimer
,
int
,
which
,
struct
itimerval
__user
*
,
value
)
{
int
error
=
-
EFAULT
;
struct
itimerval
get_buffer
;
...
...
kernel/signal.c
View file @
b290ebe2
...
...
@@ -2434,8 +2434,7 @@ out:
#ifdef __ARCH_WANT_SYS_SIGPENDING
asmlinkage
long
sys_sigpending
(
old_sigset_t
__user
*
set
)
SYSCALL_DEFINE1
(
sigpending
,
old_sigset_t
__user
*
,
set
)
{
return
do_sigpending
(
set
,
sizeof
(
*
set
));
}
...
...
@@ -2446,8 +2445,8 @@ sys_sigpending(old_sigset_t __user *set)
/* Some platforms have their own version with special arguments others
support only sys_rt_sigprocmask. */
asmlinkage
long
sys_sigprocmask
(
int
how
,
old_sigset_t
__user
*
set
,
old_sigset_t
__user
*
oset
)
SYSCALL_DEFINE3
(
sigprocmask
,
int
,
how
,
old_sigset_t
__user
*
,
set
,
old_sigset_t
__user
*
,
oset
)
{
int
error
;
old_sigset_t
old_set
,
new_set
;
...
...
kernel/sys.c
View file @
b290ebe2
...
...
@@ -944,7 +944,7 @@ SYSCALL_DEFINE1(times, struct tms __user *, tbuf)
* Auch. Had to add the 'did_exec' flag to conform completely to POSIX.
* LBT 04.03.94
*/
asmlinkage
long
sys_setpgid
(
pid_t
pid
,
pid_t
pgid
)
SYSCALL_DEFINE2
(
setpgid
,
pid_t
,
pid
,
pid_t
,
pgid
)
{
struct
task_struct
*
p
;
struct
task_struct
*
group_leader
=
current
->
group_leader
;
...
...
@@ -1080,7 +1080,7 @@ out:
return
retval
;
}
asmlinkage
long
sys_setsid
(
vo
id
)
SYSCALL_DEFINE0
(
sets
id
)
{
struct
task_struct
*
group_leader
=
current
->
group_leader
;
struct
pid
*
sid
=
task_pid
(
group_leader
);
...
...
@@ -1340,7 +1340,7 @@ out:
* without another task interfering.
*/
asmlinkage
long
sys_setgroups
(
int
gidsetsize
,
gid_t
__user
*
grouplist
)
SYSCALL_DEFINE2
(
setgroups
,
int
,
gidsetsize
,
gid_t
__user
*
,
grouplist
)
{
struct
group_info
*
group_info
;
int
retval
;
...
...
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