Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
6559eed8
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6559eed8
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 30
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
2e4d0924
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
17 addition
and
16 deletion
+17
-16
fs/open.c
fs/open.c
+6
-7
fs/stat.c
fs/stat.c
+6
-6
fs/utimes.c
fs/utimes.c
+4
-2
kernel/fork.c
kernel/fork.c
+1
-1
未找到文件。
fs/open.c
浏览文件 @
6559eed8
...
...
@@ -447,7 +447,7 @@ SYSCALL_ALIAS(sys_fallocate, SyS_fallocate);
* We do this by temporarily clearing all FS-related capabilities and
* switching the fsuid/fsgid around to the real ones.
*/
asmlinkage
long
sys_faccessat
(
int
dfd
,
const
char
__user
*
filename
,
int
mode
)
SYSCALL_DEFINE3
(
faccessat
,
int
,
dfd
,
const
char
__user
*
,
filename
,
int
,
mode
)
{
const
struct
cred
*
old_cred
;
struct
cred
*
override_cred
;
...
...
@@ -628,8 +628,7 @@ SYSCALL_DEFINE2(fchmod, unsigned int, fd, mode_t, mode)
return
err
;
}
asmlinkage
long
sys_fchmodat
(
int
dfd
,
const
char
__user
*
filename
,
mode_t
mode
)
SYSCALL_DEFINE3
(
fchmodat
,
int
,
dfd
,
const
char
__user
*
,
filename
,
mode_t
,
mode
)
{
struct
path
path
;
struct
inode
*
inode
;
...
...
@@ -707,8 +706,8 @@ SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group)
return
error
;
}
asmlinkage
long
sys_fchownat
(
int
dfd
,
const
char
__user
*
filename
,
uid_t
user
,
gid_t
group
,
int
flag
)
SYSCALL_DEFINE5
(
fchownat
,
int
,
dfd
,
const
char
__user
*
,
filename
,
uid_t
,
user
,
gid_t
,
group
,
int
,
flag
)
{
struct
path
path
;
int
error
=
-
EINVAL
;
...
...
@@ -1060,8 +1059,8 @@ SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, int, mode)
return
ret
;
}
asmlinkage
long
sys_openat
(
int
dfd
,
const
char
__user
*
filename
,
int
flags
,
int
mode
)
SYSCALL_DEFINE4
(
openat
,
int
,
dfd
,
const
char
__user
*
,
filename
,
int
,
flags
,
int
,
mode
)
{
long
ret
;
...
...
fs/stat.c
浏览文件 @
6559eed8
...
...
@@ -260,8 +260,8 @@ SYSCALL_DEFINE2(newlstat, char __user *, filename, struct stat __user *, statbuf
}
#if !defined(__ARCH_WANT_STAT64) || defined(__ARCH_WANT_SYS_NEWFSTATAT)
asmlinkage
long
sys_newfstatat
(
int
dfd
,
char
__user
*
filename
,
struct
stat
__user
*
statbuf
,
int
flag
)
SYSCALL_DEFINE4
(
newfstatat
,
int
,
dfd
,
char
__user
*
,
filename
,
struct
stat
__user
*
,
statbuf
,
int
,
flag
)
{
struct
kstat
stat
;
int
error
=
-
EINVAL
;
...
...
@@ -293,8 +293,8 @@ SYSCALL_DEFINE2(newfstat, unsigned int, fd, struct stat __user *, statbuf)
return
error
;
}
asmlinkage
long
sys_readlinkat
(
int
dfd
,
const
char
__user
*
pathname
,
char
__user
*
buf
,
int
bufsiz
)
SYSCALL_DEFINE4
(
readlinkat
,
int
,
dfd
,
const
char
__user
*
,
pathname
,
char
__user
*
,
buf
,
int
,
bufsiz
)
{
struct
path
path
;
int
error
;
...
...
@@ -400,8 +400,8 @@ SYSCALL_DEFINE2(fstat64, unsigned long, fd, struct stat64 __user *, statbuf)
return
error
;
}
asmlinkage
long
sys_fstatat64
(
int
dfd
,
char
__user
*
filename
,
struct
stat64
__user
*
statbuf
,
int
flag
)
SYSCALL_DEFINE4
(
fstatat64
,
int
,
dfd
,
char
__user
*
,
filename
,
struct
stat64
__user
*
,
statbuf
,
int
,
flag
)
{
struct
kstat
stat
;
int
error
=
-
EINVAL
;
...
...
fs/utimes.c
浏览文件 @
6559eed8
...
...
@@ -170,7 +170,8 @@ long do_utimes(int dfd, char __user *filename, struct timespec *times, int flags
return
error
;
}
asmlinkage
long
sys_utimensat
(
int
dfd
,
char
__user
*
filename
,
struct
timespec
__user
*
utimes
,
int
flags
)
SYSCALL_DEFINE4
(
utimensat
,
int
,
dfd
,
char
__user
*
,
filename
,
struct
timespec
__user
*
,
utimes
,
int
,
flags
)
{
struct
timespec
tstimes
[
2
];
...
...
@@ -187,7 +188,8 @@ asmlinkage long sys_utimensat(int dfd, char __user *filename, struct timespec __
return
do_utimes
(
dfd
,
filename
,
utimes
?
tstimes
:
NULL
,
flags
);
}
asmlinkage
long
sys_futimesat
(
int
dfd
,
char
__user
*
filename
,
struct
timeval
__user
*
utimes
)
SYSCALL_DEFINE3
(
futimesat
,
int
,
dfd
,
char
__user
*
,
filename
,
struct
timeval
__user
*
,
utimes
)
{
struct
timeval
times
[
2
];
struct
timespec
tstimes
[
2
];
...
...
kernel/fork.c
浏览文件 @
6559eed8
...
...
@@ -1603,7 +1603,7 @@ static int unshare_fd(unsigned long unshare_flags, struct files_struct **new_fdp
* constructed. Here we are modifying the current, active,
* task_struct.
*/
asmlinkage
long
sys_unshare
(
unsigned
long
unshare_flags
)
SYSCALL_DEFINE1
(
unshare
,
unsigned
long
,
unshare_flags
)
{
int
err
=
0
;
struct
fs_struct
*
fs
,
*
new_fs
=
NULL
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录