Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gsplhtlxg
clone-Linux
提交
003d7ab4
C
clone-Linux
项目概览
gsplhtlxg
/
clone-Linux
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
clone-Linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
003d7ab4
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 19
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
a6b42e83
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
12 deletion
+13
-12
fs/read_write.c
fs/read_write.c
+4
-4
fs/utimes.c
fs/utimes.c
+3
-2
kernel/uid16.c
kernel/uid16.c
+6
-6
未找到文件。
fs/read_write.c
浏览文件 @
003d7ab4
...
...
@@ -147,7 +147,7 @@ loff_t vfs_llseek(struct file *file, loff_t offset, int origin)
}
EXPORT_SYMBOL
(
vfs_llseek
);
asmlinkage
long
sys_lseek
(
unsigned
int
fd
,
off_t
offset
,
unsigned
int
origin
)
SYSCALL_DEFINE3
(
lseek
,
unsigned
int
,
fd
,
off_t
,
offset
,
unsigned
int
,
origin
)
{
off_t
retval
;
struct
file
*
file
;
...
...
@@ -171,9 +171,9 @@ asmlinkage long sys_lseek(unsigned int fd, off_t offset, unsigned int origin)
}
#ifdef __ARCH_WANT_SYS_LLSEEK
asmlinkage
long
sys_llseek
(
unsigned
int
fd
,
unsigned
long
offset_high
,
unsigned
long
offset_low
,
loff_t
__user
*
result
,
unsigned
int
origin
)
SYSCALL_DEFINE5
(
llseek
,
unsigned
int
,
fd
,
unsigned
long
,
offset_high
,
unsigned
long
,
offset_low
,
loff_t
__user
*
,
result
,
unsigned
int
,
origin
)
{
int
retval
;
struct
file
*
file
;
...
...
fs/utimes.c
浏览文件 @
003d7ab4
...
...
@@ -24,7 +24,7 @@
* must be owner or have write permission.
* Else, update from *times, must be owner or super user.
*/
asmlinkage
long
sys_utime
(
char
__user
*
filename
,
struct
utimbuf
__user
*
times
)
SYSCALL_DEFINE2
(
utime
,
char
__user
*
,
filename
,
struct
utimbuf
__user
*
,
times
)
{
struct
timespec
tv
[
2
];
...
...
@@ -214,7 +214,8 @@ asmlinkage long sys_futimesat(int dfd, char __user *filename, struct timeval __u
return
do_utimes
(
dfd
,
filename
,
utimes
?
tstimes
:
NULL
,
0
);
}
asmlinkage
long
sys_utimes
(
char
__user
*
filename
,
struct
timeval
__user
*
utimes
)
SYSCALL_DEFINE2
(
utimes
,
char
__user
*
,
filename
,
struct
timeval
__user
*
,
utimes
)
{
return
sys_futimesat
(
AT_FDCWD
,
filename
,
utimes
);
}
kernel/uid16.c
浏览文件 @
003d7ab4
...
...
@@ -162,7 +162,7 @@ static int groups16_from_user(struct group_info *group_info,
return
0
;
}
asmlinkage
long
sys_getgroups16
(
int
gidsetsize
,
old_gid_t
__user
*
grouplist
)
SYSCALL_DEFINE2
(
getgroups16
,
int
,
gidsetsize
,
old_gid_t
__user
*
,
grouplist
)
{
const
struct
cred
*
cred
=
current_cred
();
int
i
;
...
...
@@ -185,7 +185,7 @@ asmlinkage long sys_getgroups16(int gidsetsize, old_gid_t __user *grouplist)
return
i
;
}
asmlinkage
long
sys_setgroups16
(
int
gidsetsize
,
old_gid_t
__user
*
grouplist
)
SYSCALL_DEFINE2
(
setgroups16
,
int
,
gidsetsize
,
old_gid_t
__user
*
,
grouplist
)
{
struct
group_info
*
group_info
;
int
retval
;
...
...
@@ -210,22 +210,22 @@ asmlinkage long sys_setgroups16(int gidsetsize, old_gid_t __user *grouplist)
return
retval
;
}
asmlinkage
long
sys_getuid16
(
void
)
SYSCALL_DEFINE0
(
getuid16
)
{
return
high2lowuid
(
current_uid
());
}
asmlinkage
long
sys_geteuid16
(
void
)
SYSCALL_DEFINE0
(
geteuid16
)
{
return
high2lowuid
(
current_euid
());
}
asmlinkage
long
sys_getgid16
(
void
)
SYSCALL_DEFINE0
(
getgid16
)
{
return
high2lowgid
(
current_gid
());
}
asmlinkage
long
sys_getegid16
(
void
)
SYSCALL_DEFINE0
(
getegid16
)
{
return
high2lowgid
(
current_egid
());
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录