PERFORCE change 14877 for review

Robert Watson rwatson at freebsd.org
Thu Jul 25 02:21:38 GMT 2002


http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14877

Change 14877 by rwatson at rwatson_curry on 2002/07/24 19:21:02

	Hopefully a bug fix for a bug whereby when one pipe end is
	terminated, the label is prematurely destroyed, resulting in
	a blank label during follow-up policy checks.  I believe this
	change modifies the logic so that the pipe label is destroyed
	only when the second end-point is removed.  We'll see if this
	corrects the problem I'm bumping into.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/sys_pipe.c#13 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/sys_pipe.c#13 (text+ko) ====

@@ -1369,7 +1369,7 @@
 	/*
 	 * Destroy MAC data
 	 */
-	if (cpipe->pipe_peer)
+	if (cpipe->pipe_peer == NULL)
 		mac_destroy_pipe(cpipe);
 #endif /* MAC */
 
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list