diff options
| author | Oleg Nesterov <[email protected]> | 2005-10-30 23:03:44 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2005-10-31 01:37:31 +0000 |
| commit | b67a1b9e4bf878aa5d4b6b44cb5a251a2f425f0d (patch) | |
| tree | 8fa921440476083be42f21ce6d0c4091a3757742 /security/selinux/hooks.c | |
| parent | [PATCH] hpet: hpet driver cleanups (diff) | |
| download | kernel-b67a1b9e4bf878aa5d4b6b44cb5a251a2f425f0d.tar.gz kernel-b67a1b9e4bf878aa5d4b6b44cb5a251a2f425f0d.zip | |
[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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
| -rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index bb62838be496..295ac472faf1 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -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) |
