diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-25 15:48:01 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-03 18:16:06 -0500 |
commit | 441ff959072b3f4b0712b149a3398f76f8ddfceb (patch) | |
tree | 613c3986272167ce03537c190544a199c3e88f7d /arch/parisc | |
parent | cddc2da13527b20c6acb36878b78af89cb0af447 (diff) |
parisc: switch to generic compat rt_sigqueueinfo()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/Kconfig | 1 | ||||
-rw-r--r-- | arch/parisc/kernel/signal32.c | 19 |
2 files changed, 1 insertions, 19 deletions
diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig index 8755f8e482a4..798038c8aaf9 100644 --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig | |||
@@ -24,6 +24,7 @@ config PARISC | |||
24 | select MODULES_USE_ELF_RELA | 24 | select MODULES_USE_ELF_RELA |
25 | select CLONE_BACKWARDS | 25 | select CLONE_BACKWARDS |
26 | select GENERIC_SIGALTSTACK | 26 | select GENERIC_SIGALTSTACK |
27 | select GENERIC_COMPAT_RT_SIGQUEUEINFO | ||
27 | select GENERIC_COMPAT_RT_SIGPROCMASK | 28 | select GENERIC_COMPAT_RT_SIGPROCMASK |
28 | select GENERIC_COMPAT_RT_SIGPENDING | 29 | select GENERIC_COMPAT_RT_SIGPENDING |
29 | 30 | ||
diff --git a/arch/parisc/kernel/signal32.c b/arch/parisc/kernel/signal32.c index 1d41848ed27d..7769f9333e0c 100644 --- a/arch/parisc/kernel/signal32.c +++ b/arch/parisc/kernel/signal32.c | |||
@@ -404,22 +404,3 @@ copy_siginfo_to_user32 (compat_siginfo_t __user *to, siginfo_t *from) | |||
404 | } | 404 | } |
405 | return err; | 405 | return err; |
406 | } | 406 | } |
407 | |||
408 | asmlinkage long compat_sys_rt_sigqueueinfo(int pid, int sig, | ||
409 | struct compat_siginfo __user *uinfo) | ||
410 | { | ||
411 | siginfo_t info; | ||
412 | |||
413 | if (copy_siginfo_from_user32(&info, uinfo)) | ||
414 | return -EFAULT; | ||
415 | |||
416 | /* Not even root can pretend to send signals from the kernel. | ||
417 | Nor can they impersonate a kill(), which adds source info. */ | ||
418 | if (info.si_code >= 0) | ||
419 | return -EPERM; | ||
420 | info.si_signo = sig; | ||
421 | |||
422 | /* POSIX.1b doesn't mention process groups. */ | ||
423 | return kill_proc_info(sig, &info, pid); | ||
424 | } | ||
425 | |||