PERFORCE change 52293 for review

Andrew Reisse areisse at FreeBSD.org
Wed May 5 06:16:25 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=52293

Change 52293 by areisse at areisse_ibook on 2004/05/05 06:15:37

	mac check returned backwards values from cansignal.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin73/apsl/xnu/bsd/kern/kern_sig.c#3 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin73/apsl/xnu/bsd/kern/kern_sig.c#3 (text+ko) ====

@@ -208,11 +208,9 @@
 	struct proc *q;
 	int signum;
 {
-	int error;
-
 #ifdef MAC
-	if ((error = mac_check_proc_signal(pc->pc_ucred, q, signum)))
-		return (error);
+        if (0 != mac_check_proc_signal(pc->pc_ucred, q, signum))
+		return 0;
 #endif
 
 	/* you can signal yourself */


More information about the p4-projects mailing list