diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/signal.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index e20724af9b36..114cf9209bcd 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -1220,8 +1220,7 @@ int kill_proc_info_as_uid(int sig, struct siginfo *info, pid_t pid, | |||
1220 | ret = -ESRCH; | 1220 | ret = -ESRCH; |
1221 | goto out_unlock; | 1221 | goto out_unlock; |
1222 | } | 1222 | } |
1223 | if ((!info || ((unsigned long)info != 1 && | 1223 | if ((info == SEND_SIG_NOINFO || (!is_si_special(info) && SI_FROMUSER(info))) |
1224 | (unsigned long)info != 2 && SI_FROMUSER(info))) | ||
1225 | && (euid != p->suid) && (euid != p->uid) | 1224 | && (euid != p->suid) && (euid != p->uid) |
1226 | && (uid != p->suid) && (uid != p->uid)) { | 1225 | && (uid != p->suid) && (uid != p->uid)) { |
1227 | ret = -EPERM; | 1226 | ret = -EPERM; |