[PATCH] cleanup the usage of SEND_SIG_xxx constants
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / security / selinux / hooks.c
index 295ac472faf199fdb2f99caa08d1235599646bb5..45c41490d521e22b07219345fe195f02e171ac27 100644 (file)
@@ -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)