mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[PATCH] kill_proc_info_as_uid: don't use hardcoded constants
Use symbolic names instead of hardcoded constants. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Acked-by: Harald Welte <laforge@gnumonks.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
54b21a7992
commit
0811af28ce
1 changed files with 1 additions and 2 deletions
|
@ -1220,8 +1220,7 @@ int kill_proc_info_as_uid(int sig, struct siginfo *info, pid_t pid,
|
||||||
ret = -ESRCH;
|
ret = -ESRCH;
|
||||||
goto out_unlock;
|
goto out_unlock;
|
||||||
}
|
}
|
||||||
if ((!info || ((unsigned long)info != 1 &&
|
if ((info == SEND_SIG_NOINFO || (!is_si_special(info) && SI_FROMUSER(info)))
|
||||||
(unsigned long)info != 2 && SI_FROMUSER(info)))
|
|
||||||
&& (euid != p->suid) && (euid != p->uid)
|
&& (euid != p->suid) && (euid != p->uid)
|
||||||
&& (uid != p->suid) && (uid != p->uid)) {
|
&& (uid != p->suid) && (uid != p->uid)) {
|
||||||
ret = -EPERM;
|
ret = -EPERM;
|
||||||
|
|
Loading…
Reference in a new issue