mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
[PATCH] remove hardcoded SEND_SIG_xxx constants
This patch replaces hardcoded SEND_SIG_xxx constants with their symbolic names. No changes in affected .o files. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
3e6716e748
commit
b67a1b9e4b
3 changed files with 27 additions and 22 deletions
|
@ -2713,8 +2713,8 @@ static int selinux_task_kill(struct task_struct *p, struct siginfo *info, int si
|
|||
if (rc)
|
||||
return rc;
|
||||
|
||||
if (info && ((unsigned long)info == 1 ||
|
||||
(unsigned long)info == 2 || SI_FROMKERNEL(info)))
|
||||
if (info != SEND_SIG_NOINFO && (info == SEND_SIG_PRIV ||
|
||||
info == SEND_SIG_FORCED || SI_FROMKERNEL(info)))
|
||||
return 0;
|
||||
|
||||
if (!sig)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue