提交 875ec3da 编写于 作者: H Heiko Carstens

security/compat: convert to COMPAT_SYSCALL_DEFINE

Convert all compat system call functions where all parameter types
have a size of four or less than four bytes, or are pointer types
to COMPAT_SYSCALL_DEFINE.
The implicit casts within COMPAT_SYSCALL_DEFINE will perform proper
zero and sign extension to 64 bit of all parameters if needed.
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
上级 c93e0f6c
...@@ -65,8 +65,8 @@ static long compat_keyctl_instantiate_key_iov( ...@@ -65,8 +65,8 @@ static long compat_keyctl_instantiate_key_iov(
* taking a 32-bit syscall are zero. If you can, you should call sys_keyctl() * taking a 32-bit syscall are zero. If you can, you should call sys_keyctl()
* directly. * directly.
*/ */
asmlinkage long compat_sys_keyctl(u32 option, COMPAT_SYSCALL_DEFINE5(keyctl, u32, option,
u32 arg2, u32 arg3, u32 arg4, u32 arg5) u32, arg2, u32, arg3, u32, arg4, u32, arg5)
{ {
switch (option) { switch (option) {
case KEYCTL_GET_KEYRING_ID: case KEYCTL_GET_KEYRING_ID:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册