From owner-p4-projects Wed Jul 24 19:21:42 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 78EA037B401; Wed, 24 Jul 2002 19:21:39 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0593737B400 for ; Wed, 24 Jul 2002 19:21:39 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FCBD43E3B for ; Wed, 24 Jul 2002 19:21:38 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6P2LcJU044918 for ; Wed, 24 Jul 2002 19:21:38 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6P2LcOB044915 for perforce@freebsd.org; Wed, 24 Jul 2002 19:21:38 -0700 (PDT) Date: Wed, 24 Jul 2002 19:21:38 -0700 (PDT) Message-Id: <200207250221.g6P2LcOB044915@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 14877 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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