Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
20f37034
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看板
提交
20f37034
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 21
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
3cdad428
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
17 deletion
+19
-17
fs/readdir.c
fs/readdir.c
+4
-2
net/socket.c
net/socket.c
+15
-15
未找到文件。
fs/readdir.c
浏览文件 @
20f37034
...
...
@@ -187,7 +187,8 @@ static int filldir(void * __buf, const char * name, int namlen, loff_t offset,
return
-
EFAULT
;
}
asmlinkage
long
sys_getdents
(
unsigned
int
fd
,
struct
linux_dirent
__user
*
dirent
,
unsigned
int
count
)
SYSCALL_DEFINE3
(
getdents
,
unsigned
int
,
fd
,
struct
linux_dirent
__user
*
,
dirent
,
unsigned
int
,
count
)
{
struct
file
*
file
;
struct
linux_dirent
__user
*
lastdirent
;
...
...
@@ -268,7 +269,8 @@ static int filldir64(void * __buf, const char * name, int namlen, loff_t offset,
return
-
EFAULT
;
}
asmlinkage
long
sys_getdents64
(
unsigned
int
fd
,
struct
linux_dirent64
__user
*
dirent
,
unsigned
int
count
)
SYSCALL_DEFINE3
(
getdents64
,
unsigned
int
,
fd
,
struct
linux_dirent64
__user
*
,
dirent
,
unsigned
int
,
count
)
{
struct
file
*
file
;
struct
linux_dirent64
__user
*
lastdirent
;
...
...
net/socket.c
浏览文件 @
20f37034
...
...
@@ -1356,7 +1356,7 @@ asmlinkage long sys_socketpair(int family, int type, int protocol,
* the protocol layer (having also checked the address is ok).
*/
asmlinkage
long
sys_bind
(
int
fd
,
struct
sockaddr
__user
*
umyaddr
,
int
addrlen
)
SYSCALL_DEFINE3
(
bind
,
int
,
fd
,
struct
sockaddr
__user
*
,
umyaddr
,
int
,
addrlen
)
{
struct
socket
*
sock
;
struct
sockaddr_storage
address
;
...
...
@@ -1418,8 +1418,8 @@ asmlinkage long sys_listen(int fd, int backlog)
* clean when we restucture accept also.
*/
asmlinkage
long
sys_accept4
(
int
fd
,
struct
sockaddr
__user
*
upeer_sockaddr
,
int
__user
*
upeer_addrlen
,
int
flags
)
SYSCALL_DEFINE4
(
accept4
,
int
,
fd
,
struct
sockaddr
__user
*
,
upeer_sockaddr
,
int
__user
*
,
upeer_addrlen
,
int
,
flags
)
{
struct
socket
*
sock
,
*
newsock
;
struct
file
*
newfile
;
...
...
@@ -1502,8 +1502,8 @@ asmlinkage long sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr,
goto
out_put
;
}
asmlinkage
long
sys_accept
(
int
fd
,
struct
sockaddr
__user
*
upeer_sockaddr
,
int
__user
*
upeer_addrlen
)
SYSCALL_DEFINE3
(
accept
,
int
,
fd
,
struct
sockaddr
__user
*
,
upeer_sockaddr
,
int
__user
*
,
upeer_addrlen
)
{
return
sys_accept4
(
fd
,
upeer_sockaddr
,
upeer_addrlen
,
0
);
}
...
...
@@ -1520,8 +1520,8 @@ asmlinkage long sys_accept(int fd, struct sockaddr __user *upeer_sockaddr,
* include the -EINPROGRESS status for such sockets.
*/
asmlinkage
long
sys_connect
(
int
fd
,
struct
sockaddr
__user
*
uservaddr
,
int
addrlen
)
SYSCALL_DEFINE3
(
connect
,
int
,
fd
,
struct
sockaddr
__user
*
,
uservaddr
,
int
,
addrlen
)
{
struct
socket
*
sock
;
struct
sockaddr_storage
address
;
...
...
@@ -1552,8 +1552,8 @@ asmlinkage long sys_connect(int fd, struct sockaddr __user *uservaddr,
* name to user space.
*/
asmlinkage
long
sys_getsockname
(
int
fd
,
struct
sockaddr
__user
*
usockaddr
,
int
__user
*
usockaddr_len
)
SYSCALL_DEFINE3
(
getsockname
,
int
,
fd
,
struct
sockaddr
__user
*
,
usockaddr
,
int
__user
*
,
usockaddr_len
)
{
struct
socket
*
sock
;
struct
sockaddr_storage
address
;
...
...
@@ -1583,8 +1583,8 @@ asmlinkage long sys_getsockname(int fd, struct sockaddr __user *usockaddr,
* name to user space.
*/
asmlinkage
long
sys_getpeername
(
int
fd
,
struct
sockaddr
__user
*
usockaddr
,
int
__user
*
usockaddr_len
)
SYSCALL_DEFINE3
(
getpeername
,
int
,
fd
,
struct
sockaddr
__user
*
,
usockaddr
,
int
__user
*
,
usockaddr_len
)
{
struct
socket
*
sock
;
struct
sockaddr_storage
address
;
...
...
@@ -1725,8 +1725,8 @@ asmlinkage long sys_recv(int fd, void __user *ubuf, size_t size,
* to pass the user mode parameter for the protocols to sort out.
*/
asmlinkage
long
sys_setsockopt
(
int
fd
,
int
level
,
int
optname
,
char
__user
*
optval
,
int
optlen
)
SYSCALL_DEFINE5
(
setsockopt
,
int
,
fd
,
int
,
level
,
int
,
optname
,
char
__user
*
,
optval
,
int
,
optlen
)
{
int
err
,
fput_needed
;
struct
socket
*
sock
;
...
...
@@ -1759,8 +1759,8 @@ asmlinkage long sys_setsockopt(int fd, int level, int optname,
* to pass a user mode parameter for the protocols to sort out.
*/
asmlinkage
long
sys_getsockopt
(
int
fd
,
int
level
,
int
optname
,
char
__user
*
optval
,
int
__user
*
optlen
)
SYSCALL_DEFINE5
(
getsockopt
,
int
,
fd
,
int
,
level
,
int
,
optname
,
char
__user
*
,
optval
,
int
__user
*
,
optlen
)
{
int
err
,
fput_needed
;
struct
socket
*
sock
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录