--- linux-2.4.5-rsbac-1.1.2/kernel/signal.c~	Tue Jun 12 15:41:34 2001
+++ linux-2.4.5-rsbac-1.1.2/kernel/signal.c	Tue Jul  3 12:35:47 2001
@@ -533,6 +533,18 @@
 	int ret;
 
 
+#if DEBUG_SIG
+printk("SIG queue (%s:%d): %d ", t->comm, t->pid, sig);
+#endif
+
+	ret = -EINVAL;
+	if (sig < 0 || sig > _NSIG)
+		goto out_nolock;
+	/* The somewhat baroque permissions check... */
+	ret = -EPERM;
+	if (bad_signal(sig, info, t))
+		goto out_nolock;
+
 	/* The null signal is a permissions and process existance probe.
 	   No signal is actually delivered.  Same goes for zombies. */
 	ret = 0;
