diff options
| author | Oleg Nesterov <[email protected]> | 2005-10-30 23:03:45 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2005-10-31 01:37:31 +0000 |
| commit | 621d31219d9a788bda924a0613048053f3f5f211 (patch) | |
| tree | 9fb9846fdd999ba04c436aa84c7da0d8233ac545 /security/selinux/hooks.c | |
| parent | [PATCH] remove hardcoded SEND_SIG_xxx constants (diff) | |
| download | kernel-621d31219d9a788bda924a0613048053f3f5f211.tar.gz kernel-621d31219d9a788bda924a0613048053f3f5f211.zip | |
[PATCH] cleanup the usage of SEND_SIG_xxx constants
This patch simplifies some checks for magic siginfo values. It should not
change the behaviour in any way.
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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 295ac472faf1..45c41490d521 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -2713,8 +2713,7 @@ static int selinux_task_kill(struct task_struct *p, struct siginfo *info, int si if (rc) return rc; - if (info != SEND_SIG_NOINFO && (info == SEND_SIG_PRIV || - info == SEND_SIG_FORCED || SI_FROMKERNEL(info))) + if (info != SEND_SIG_NOINFO && (is_si_special(info) || SI_FROMKERNEL(info))) return 0; if (!sig) |
