From owner-cvs-all Wed Nov 13 7:50:36 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02FDE37B401; Wed, 13 Nov 2002 07:50:35 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FE4443E3B; Wed, 13 Nov 2002 07:50:34 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.4/8.12.4) with SMTP id gADFnuOo094326; Wed, 13 Nov 2002 10:49:57 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Wed, 13 Nov 2002 10:49:55 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_mac.c In-Reply-To: <200211131547.gADFl9QA038342@repoman.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sigh, left out: Approved by: re Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories On Wed, 13 Nov 2002, Robert Watson wrote: > rwatson 2002/11/13 07:47:09 PST > > Modified files: > sys/kern kern_mac.c > Log: > Introduce a condition variable to avoid returning EBUSY when > the MAC policy list is busy during a load or unload attempt. > We assert no locks held during the cv wait, meaning we should > be fairly deadlock-safe. Because of the cv model and busy > count, it's possible for a cv waiter waiting for exclusive > access to the policy list to be starved by active and > long-lived access control/labeling events. For now, we > accept that as a necessary tradeoff. > > Obtained from: TrustedBSD Project > Sponsored by: DARPA, Network Associates Laboratories > > Revision Changes Path > 1.67 +52 -29 src/sys/kern/kern_mac.c > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message