Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
208096ee
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看板
提交
208096ee
编写于
2月 25, 2014
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
s390/compat: convert to COMPAT_SYSCALL_DEFINEx part 2
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
c6c0f58f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
44 deletion
+18
-44
arch/s390/kernel/compat_linux.c
arch/s390/kernel/compat_linux.c
+8
-7
arch/s390/kernel/compat_linux.h
arch/s390/kernel/compat_linux.h
+5
-5
arch/s390/kernel/compat_wrapper.S
arch/s390/kernel/compat_wrapper.S
+0
-27
arch/s390/kernel/syscalls.S
arch/s390/kernel/syscalls.S
+5
-5
未找到文件。
arch/s390/kernel/compat_linux.c
浏览文件 @
208096ee
...
...
@@ -113,23 +113,24 @@ COMPAT_SYSCALL_DEFINE1(s390_setgid16, u16, gid)
return
sys_setgid
((
gid_t
)
gid
);
}
asmlinkage
long
sys32_setreuid16
(
u16
ruid
,
u16
euid
)
COMPAT_SYSCALL_DEFINE2
(
s390_setreuid16
,
u16
,
ruid
,
u16
,
euid
)
{
return
sys_setreuid
(
low2highuid
(
ruid
),
low2highuid
(
euid
));
}
asmlinkage
long
sys32_setuid16
(
u16
uid
)
COMPAT_SYSCALL_DEFINE1
(
s390_setuid16
,
u16
,
uid
)
{
return
sys_setuid
((
uid_t
)
uid
);
}
asmlinkage
long
sys32_setresuid16
(
u16
ruid
,
u16
euid
,
u16
suid
)
COMPAT_SYSCALL_DEFINE3
(
s390_setresuid16
,
u16
,
ruid
,
u16
,
euid
,
u16
,
suid
)
{
return
sys_setresuid
(
low2highuid
(
ruid
),
low2highuid
(
euid
),
low2highuid
(
suid
));
low2highuid
(
suid
));
}
asmlinkage
long
sys32_getresuid16
(
u16
__user
*
ruidp
,
u16
__user
*
euidp
,
u16
__user
*
suidp
)
COMPAT_SYSCALL_DEFINE3
(
s390_getresuid16
,
u16
__user
*
,
ruidp
,
u16
__user
*
,
euidp
,
u16
__user
*
,
suidp
)
{
const
struct
cred
*
cred
=
current_cred
();
int
retval
;
...
...
@@ -146,10 +147,10 @@ asmlinkage long sys32_getresuid16(u16 __user *ruidp, u16 __user *euidp, u16 __us
return
retval
;
}
asmlinkage
long
sys32_setresgid16
(
u16
rgid
,
u16
egid
,
u16
sgid
)
COMPAT_SYSCALL_DEFINE3
(
s390_setresgid16
,
u16
,
rgid
,
u16
,
egid
,
u16
,
sgid
)
{
return
sys_setresgid
(
low2highgid
(
rgid
),
low2highgid
(
egid
),
low2highgid
(
sgid
));
low2highgid
(
sgid
));
}
asmlinkage
long
sys32_getresgid16
(
u16
__user
*
rgidp
,
u16
__user
*
egidp
,
u16
__user
*
sgidp
)
...
...
arch/s390/kernel/compat_linux.h
浏览文件 @
208096ee
...
...
@@ -81,11 +81,11 @@ long compat_sys_s390_lchown16(const char __user *filename, u16 user, u16 group);
long
compat_sys_s390_fchown16
(
unsigned
int
fd
,
u16
user
,
u16
group
);
long
compat_sys_s390_setregid16
(
u16
rgid
,
u16
egid
);
long
compat_sys_s390_setgid16
(
u16
gid
);
long
sys32
_setreuid16
(
u16
ruid
,
u16
euid
);
long
sys32
_setuid16
(
u16
uid
);
long
sys32
_setresuid16
(
u16
ruid
,
u16
euid
,
u16
suid
);
long
sys32
_getresuid16
(
u16
__user
*
ruid
,
u16
__user
*
euid
,
u16
__user
*
suid
);
long
sys32
_setresgid16
(
u16
rgid
,
u16
egid
,
u16
sgid
);
long
compat_sys_s390
_setreuid16
(
u16
ruid
,
u16
euid
);
long
compat_sys_s390
_setuid16
(
u16
uid
);
long
compat_sys_s390
_setresuid16
(
u16
ruid
,
u16
euid
,
u16
suid
);
long
compat_sys_s390
_getresuid16
(
u16
__user
*
ruid
,
u16
__user
*
euid
,
u16
__user
*
suid
);
long
compat_sys_s390
_setresgid16
(
u16
rgid
,
u16
egid
,
u16
sgid
);
long
sys32_getresgid16
(
u16
__user
*
rgid
,
u16
__user
*
egid
,
u16
__user
*
sgid
);
long
sys32_setfsuid16
(
u16
uid
);
long
sys32_setfsgid16
(
u16
gid
);
...
...
arch/s390/kernel/compat_wrapper.S
浏览文件 @
208096ee
...
...
@@ -75,10 +75,6 @@ ENTRY(sys32_oldumount_wrapper)
llgtr
%
r2
,%
r2
#
char
*
jg
sys_oldumount
#
branch
to
system
call
ENTRY
(
sys32_setuid16_wrapper
)
llgfr
%
r2
,%
r2
#
__kernel_old_uid_emu31_t
jg
sys32_setuid16
#
branch
to
system
call
#
sys32_getuid16_wrapper
#
void
ENTRY
(
sys32_ptrace_wrapper
)
...
...
@@ -204,11 +200,6 @@ ENTRY(sys32_dup2_wrapper)
#
sys32_setsid_wrapper
#
void
ENTRY
(
sys32_setreuid16_wrapper
)
llgfr
%
r2
,%
r2
#
__kernel_old_uid_emu31_t
llgfr
%
r3
,%
r3
#
__kernel_old_uid_emu31_t
jg
sys32_setreuid16
#
branch
to
system
call
ENTRY
(
sys_sigsuspend_wrapper
)
lgfr
%
r2
,%
r2
#
int
lgfr
%
r3
,%
r3
#
int
...
...
@@ -555,30 +546,12 @@ ENTRY(sys32_mremap_wrapper)
llgfr
%
r6
,%
r6
#
unsigned
long
jg
sys_mremap
#
branch
to
system
call
ENTRY
(
sys32_setresuid16_wrapper
)
llgfr
%
r2
,%
r2
#
__kernel_old_uid_emu31_t
llgfr
%
r3
,%
r3
#
__kernel_old_uid_emu31_t
llgfr
%
r4
,%
r4
#
__kernel_old_uid_emu31_t
jg
sys32_setresuid16
#
branch
to
system
call
ENTRY
(
sys32_getresuid16_wrapper
)
llgtr
%
r2
,%
r2
#
__kernel_old_uid_emu31_t
*
llgtr
%
r3
,%
r3
#
__kernel_old_uid_emu31_t
*
llgtr
%
r4
,%
r4
#
__kernel_old_uid_emu31_t
*
jg
sys32_getresuid16
#
branch
to
system
call
ENTRY
(
sys32_poll_wrapper
)
llgtr
%
r2
,%
r2
#
struct
pollfd
*
llgfr
%
r3
,%
r3
#
unsigned
int
lgfr
%
r4
,%
r4
#
int
jg
sys_poll
#
branch
to
system
call
ENTRY
(
sys32_setresgid16_wrapper
)
llgfr
%
r2
,%
r2
#
__kernel_old_gid_emu31_t
llgfr
%
r3
,%
r3
#
__kernel_old_gid_emu31_t
llgfr
%
r4
,%
r4
#
__kernel_old_gid_emu31_t
jg
sys32_setresgid16
#
branch
to
system
call
ENTRY
(
sys32_getresgid16_wrapper
)
llgtr
%
r2
,%
r2
#
__kernel_old_gid_emu31_t
*
llgtr
%
r3
,%
r3
#
__kernel_old_gid_emu31_t
*
...
...
arch/s390/kernel/syscalls.S
浏览文件 @
208096ee
...
...
@@ -31,7 +31,7 @@ SYSCALL(sys_lseek,sys_lseek,compat_sys_lseek)
SYSCALL
(
sys_getpid
,
sys_getpid
,
sys_getpid
)
/
*
20
*/
SYSCALL
(
sys_mount
,
sys_mount
,
sys32_mount_wrapper
)
SYSCALL
(
sys_oldumount
,
sys_oldumount
,
sys32_oldumount_wrapper
)
SYSCALL
(
sys_setuid16
,
sys_ni_syscall
,
sys32_setuid16_wrapper
)
/
*
old
setuid16
syscall
*/
SYSCALL
(
sys_setuid16
,
sys_ni_syscall
,
compat_sys_s390_setuid16
)
/
*
old
setuid16
syscall
*/
SYSCALL
(
sys_getuid16
,
sys_ni_syscall
,
sys32_getuid16
)
/
*
old
getuid16
syscall
*/
SYSCALL
(
sys_stime
,
sys_ni_syscall
,
sys32_stime_wrapper
)
/
*
25
old
stime
syscall
*/
SYSCALL
(
sys_ptrace
,
sys_ptrace
,
sys32_ptrace_wrapper
)
...
...
@@ -78,7 +78,7 @@ SYSCALL(sys_setsid,sys_setsid,sys_setsid)
SYSCALL
(
sys_sigaction
,
sys_sigaction
,
compat_sys_sigaction
)
NI_SYSCALL
/
*
old
sgetmask
syscall
*/
NI_SYSCALL
/
*
old
ssetmask
syscall
*/
SYSCALL
(
sys_setreuid16
,
sys_ni_syscall
,
sys32_setreuid16_wrapper
)
/
*
old
setreuid16
syscall
*/
SYSCALL
(
sys_setreuid16
,
sys_ni_syscall
,
compat_sys_s390_setreuid16
)
/
*
old
setreuid16
syscall
*/
SYSCALL
(
sys_setregid16
,
sys_ni_syscall
,
compat_sys_s390_setregid16
)
/
*
old
setregid16
syscall
*/
SYSCALL
(
sys_sigsuspend
,
sys_sigsuspend
,
sys_sigsuspend_wrapper
)
SYSCALL
(
sys_sigpending
,
sys_sigpending
,
compat_sys_sigpending_wrapper
)
...
...
@@ -172,13 +172,13 @@ SYSCALL(sys_sched_get_priority_min,sys_sched_get_priority_min,sys32_sched_get_pr
SYSCALL
(
sys_sched_rr_get_interval
,
sys_sched_rr_get_interval
,
compat_sys_sched_rr_get_interval
)
SYSCALL
(
sys_nanosleep
,
sys_nanosleep
,
compat_sys_nanosleep_wrapper
)
SYSCALL
(
sys_mremap
,
sys_mremap
,
sys32_mremap_wrapper
)
SYSCALL
(
sys_setresuid16
,
sys_ni_syscall
,
sys32_setresuid16_wrapper
)
/
*
old
setresuid16
syscall
*/
SYSCALL
(
sys_getresuid16
,
sys_ni_syscall
,
sys32_getresuid16_wrapper
)
/
*
165
old
getresuid16
syscall
*/
SYSCALL
(
sys_setresuid16
,
sys_ni_syscall
,
compat_sys_s390_setresuid16
)
/
*
old
setresuid16
syscall
*/
SYSCALL
(
sys_getresuid16
,
sys_ni_syscall
,
compat_sys_s390_getresuid16
)
/
*
165
old
getresuid16
syscall
*/
NI_SYSCALL
/
*
for
vm86
*/
NI_SYSCALL
/
*
old
sys_query_module
*/
SYSCALL
(
sys_poll
,
sys_poll
,
sys32_poll_wrapper
)
NI_SYSCALL
/
*
old
nfsservctl
*/
SYSCALL
(
sys_setresgid16
,
sys_ni_syscall
,
sys32_setresgid16_wrapper
)
/
*
170
old
setresgid16
syscall
*/
SYSCALL
(
sys_setresgid16
,
sys_ni_syscall
,
compat_sys_s390_setresgid16
)
/
*
170
old
setresgid16
syscall
*/
SYSCALL
(
sys_getresgid16
,
sys_ni_syscall
,
sys32_getresgid16_wrapper
)
/
*
old
getresgid16
syscall
*/
SYSCALL
(
sys_prctl
,
sys_prctl
,
sys32_prctl_wrapper
)
SYSCALL
(
sys_rt_sigreturn
,
sys_rt_sigreturn
,
sys32_rt_sigreturn
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录