Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiphi1978
linux
提交
a6b42e83
L
linux
项目概览
xiphi1978
/
linux
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a6b42e83
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 18
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
ca013e94
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
10 deletion
+11
-10
kernel/uid16.c
kernel/uid16.c
+11
-10
未找到文件。
kernel/uid16.c
浏览文件 @
a6b42e83
...
...
@@ -41,7 +41,7 @@ SYSCALL_DEFINE3(fchown16, unsigned int, fd, old_uid_t, user, old_gid_t, group)
return
ret
;
}
asmlinkage
long
sys_setregid16
(
old_gid_t
rgid
,
old_gid_t
egid
)
SYSCALL_DEFINE2
(
setregid16
,
old_gid_t
,
rgid
,
old_gid_t
,
egid
)
{
long
ret
=
sys_setregid
(
low2highgid
(
rgid
),
low2highgid
(
egid
));
/* avoid REGPARM breakage on x86: */
...
...
@@ -49,7 +49,7 @@ asmlinkage long sys_setregid16(old_gid_t rgid, old_gid_t egid)
return
ret
;
}
asmlinkage
long
sys_setgid16
(
old_gid_t
gid
)
SYSCALL_DEFINE1
(
setgid16
,
old_gid_t
,
gid
)
{
long
ret
=
sys_setgid
(
low2highgid
(
gid
));
/* avoid REGPARM breakage on x86: */
...
...
@@ -57,7 +57,7 @@ asmlinkage long sys_setgid16(old_gid_t gid)
return
ret
;
}
asmlinkage
long
sys_setreuid16
(
old_uid_t
ruid
,
old_uid_t
euid
)
SYSCALL_DEFINE2
(
setreuid16
,
old_uid_t
,
ruid
,
old_uid_t
,
euid
)
{
long
ret
=
sys_setreuid
(
low2highuid
(
ruid
),
low2highuid
(
euid
));
/* avoid REGPARM breakage on x86: */
...
...
@@ -65,7 +65,7 @@ asmlinkage long sys_setreuid16(old_uid_t ruid, old_uid_t euid)
return
ret
;
}
asmlinkage
long
sys_setuid16
(
old_uid_t
uid
)
SYSCALL_DEFINE1
(
setuid16
,
old_uid_t
,
uid
)
{
long
ret
=
sys_setuid
(
low2highuid
(
uid
));
/* avoid REGPARM breakage on x86: */
...
...
@@ -73,7 +73,7 @@ asmlinkage long sys_setuid16(old_uid_t uid)
return
ret
;
}
asmlinkage
long
sys_setresuid16
(
old_uid_t
ruid
,
old_uid_t
euid
,
old_uid_t
suid
)
SYSCALL_DEFINE3
(
setresuid16
,
old_uid_t
,
ruid
,
old_uid_t
,
euid
,
old_uid_t
,
suid
)
{
long
ret
=
sys_setresuid
(
low2highuid
(
ruid
),
low2highuid
(
euid
),
low2highuid
(
suid
));
...
...
@@ -82,7 +82,7 @@ asmlinkage long sys_setresuid16(old_uid_t ruid, old_uid_t euid, old_uid_t suid)
return
ret
;
}
asmlinkage
long
sys_getresuid16
(
old_uid_t
__user
*
ruid
,
old_uid_t
__user
*
euid
,
old_uid_t
__user
*
suid
)
SYSCALL_DEFINE3
(
getresuid16
,
old_uid_t
__user
*
,
ruid
,
old_uid_t
__user
*
,
euid
,
old_uid_t
__user
*
,
suid
)
{
const
struct
cred
*
cred
=
current_cred
();
int
retval
;
...
...
@@ -94,7 +94,7 @@ asmlinkage long sys_getresuid16(old_uid_t __user *ruid, old_uid_t __user *euid,
return
retval
;
}
asmlinkage
long
sys_setresgid16
(
old_gid_t
rgid
,
old_gid_t
egid
,
old_gid_t
sgid
)
SYSCALL_DEFINE3
(
setresgid16
,
old_gid_t
,
rgid
,
old_gid_t
,
egid
,
old_gid_t
,
sgid
)
{
long
ret
=
sys_setresgid
(
low2highgid
(
rgid
),
low2highgid
(
egid
),
low2highgid
(
sgid
));
...
...
@@ -103,7 +103,8 @@ asmlinkage long sys_setresgid16(old_gid_t rgid, old_gid_t egid, old_gid_t sgid)
return
ret
;
}
asmlinkage
long
sys_getresgid16
(
old_gid_t
__user
*
rgid
,
old_gid_t
__user
*
egid
,
old_gid_t
__user
*
sgid
)
SYSCALL_DEFINE3
(
getresgid16
,
old_gid_t
__user
*
,
rgid
,
old_gid_t
__user
*
,
egid
,
old_gid_t
__user
*
,
sgid
)
{
const
struct
cred
*
cred
=
current_cred
();
int
retval
;
...
...
@@ -115,7 +116,7 @@ asmlinkage long sys_getresgid16(old_gid_t __user *rgid, old_gid_t __user *egid,
return
retval
;
}
asmlinkage
long
sys_setfsuid16
(
old_uid_t
uid
)
SYSCALL_DEFINE1
(
setfsuid16
,
old_uid_t
,
uid
)
{
long
ret
=
sys_setfsuid
(
low2highuid
(
uid
));
/* avoid REGPARM breakage on x86: */
...
...
@@ -123,7 +124,7 @@ asmlinkage long sys_setfsuid16(old_uid_t uid)
return
ret
;
}
asmlinkage
long
sys_setfsgid16
(
old_gid_t
gid
)
SYSCALL_DEFINE1
(
setfsgid16
,
old_gid_t
,
gid
)
{
long
ret
=
sys_setfsgid
(
low2highgid
(
gid
));
/* avoid REGPARM breakage on x86: */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录