Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 2009 22:22:09 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193355 - head/sys/security/mac
Message-ID:  <200906022222.n52MM96x030079@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Tue Jun  2 22:22:09 2009
New Revision: 193355
URL: http://svn.freebsd.org/changeset/base/193355

Log:
  Mark MAC Framework sx and rm locks as NOWITNESS to suppress warnings that
  might arise from WITNESS not understanding its locking protocol, which
  should be deadlock-free.  Currently these warnings generally don't occur,
  but as object locking is pushed into policies for some object types, they
  would otherwise occur more often.
  
  Obtained from:	TrustedBSD Project

Modified:
  head/sys/security/mac/mac_framework.c

Modified: head/sys/security/mac/mac_framework.c
==============================================================================
--- head/sys/security/mac/mac_framework.c	Tue Jun  2 22:15:47 2009	(r193354)
+++ head/sys/security/mac/mac_framework.c	Tue Jun  2 22:22:09 2009	(r193355)
@@ -290,8 +290,8 @@ mac_init(void)
 	mac_labelzone_init();
 
 #ifndef MAC_STATIC
-	rm_init(&mac_policy_rm, "mac_policy_rm");
-	sx_init(&mac_policy_sx, "mac_policy_sx");
+	rm_init_flags(&mac_policy_rm, "mac_policy_rm", RM_NOWITNESS);
+	sx_init_flags(&mac_policy_sx, "mac_policy_sx", SX_NOWITNESS);
 #endif
 }
 



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