Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2002 19:21:38 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 14877 for review
Message-ID:  <200207250221.g6P2LcOB044915@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14877

Change 14877 by rwatson@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@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207250221.g6P2LcOB044915>