diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-03-30 03:07:39 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-03-30 03:07:43 -0400 |
commit | 9f644c4ba86b76159d36747fda7da496f72a1872 (patch) | |
tree | 31e025a5f283aff691fb636bf07fd0b445cf07a3 /kernel/signal.c | |
parent | 1b7155f7de119870f0d3fad89f125de2ff6c16be (diff) | |
parent | 0ce790e7d736cedc563e1fb4e998babf5a4dbc3d (diff) |
Merge commit 'v2.6.39-rc1' into perf/urgent
Merge reason: use the post-merge-window tree.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/signal.c')
-rw-r--r-- | kernel/signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index 324eff5468ad..1186cf7fac77 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -2437,7 +2437,7 @@ SYSCALL_DEFINE3(rt_sigqueueinfo, pid_t, pid, int, sig, | |||
2437 | /* Not even root can pretend to send signals from the kernel. | 2437 | /* Not even root can pretend to send signals from the kernel. |
2438 | * Nor can they impersonate a kill()/tgkill(), which adds source info. | 2438 | * Nor can they impersonate a kill()/tgkill(), which adds source info. |
2439 | */ | 2439 | */ |
2440 | if (info.si_code != SI_QUEUE) { | 2440 | if (info.si_code >= 0 || info.si_code == SI_TKILL) { |
2441 | /* We used to allow any < 0 si_code */ | 2441 | /* We used to allow any < 0 si_code */ |
2442 | WARN_ON_ONCE(info.si_code < 0); | 2442 | WARN_ON_ONCE(info.si_code < 0); |
2443 | return -EPERM; | 2443 | return -EPERM; |
@@ -2457,7 +2457,7 @@ long do_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, siginfo_t *info) | |||
2457 | /* Not even root can pretend to send signals from the kernel. | 2457 | /* Not even root can pretend to send signals from the kernel. |
2458 | * Nor can they impersonate a kill()/tgkill(), which adds source info. | 2458 | * Nor can they impersonate a kill()/tgkill(), which adds source info. |
2459 | */ | 2459 | */ |
2460 | if (info->si_code != SI_QUEUE) { | 2460 | if (info->si_code >= 0 || info->si_code == SI_TKILL) { |
2461 | /* We used to allow any < 0 si_code */ | 2461 | /* We used to allow any < 0 si_code */ |
2462 | WARN_ON_ONCE(info->si_code < 0); | 2462 | WARN_ON_ONCE(info->si_code < 0); |
2463 | return -EPERM; | 2463 | return -EPERM; |