Skip to content

Commit

Permalink
security/compat: convert to COMPAT_SYSCALL_DEFINE
Browse files Browse the repository at this point in the history
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: Heiko Carstens <heiko.carstens@de.ibm.com>
  • Loading branch information
heicarst committed Mar 6, 2014
1 parent c93e0f6 commit 875ec3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/keys/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
* directly.
*/
asmlinkage long compat_sys_keyctl(u32 option,
u32 arg2, u32 arg3, u32 arg4, u32 arg5)
COMPAT_SYSCALL_DEFINE5(keyctl, u32, option,
u32, arg2, u32, arg3, u32, arg4, u32, arg5)
{
switch (option) {
case KEYCTL_GET_KEYRING_ID:
Expand Down

0 comments on commit 875ec3d

Please sign in to comment.