Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
b290ebe2
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b290ebe2
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 04
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
ae1251ab
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
11 addition
and
13 deletion
+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
未找到文件。
kernel/acct.c
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
b290ebe2
...
...
@@ -2434,8 +2434,7 @@ do_sigaltstack (const stack_t __user *uss, stack_t __user *uoss, unsigned long s
#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
浏览文件 @
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 @@ SYSCALL_DEFINE1(getsid, pid_t, pid)
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 @@ SYSCALL_DEFINE2(getgroups, int, gidsetsize, gid_t __user *, grouplist)
* 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
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录