Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2006 17:52:32 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 104074 for review
Message-ID:  <200608151752.k7FHqWRC036337@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104074

Change 104074 by millert@millert_macbook on 2006/08/15 17:52:14

	Rename slot -> sebsd_slot
	sebsd_slot is initialized by MAC_POLICY_SET so update comment

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/sebsd.c#4 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/sebsd.c#4 (text+ko) ====

@@ -97,8 +97,8 @@
 static zone_t vnode_security_zone;
 static zone_t ipc_security_zone;
 
-static int slot = 1; /* TBD, dynamic */
-#define	SLOT(l)	((void *)LABEL_TO_SLOT((l), slot).l_ptr)
+static int sebsd_slot;		/* set by framework */
+#define	SLOT(l)	((void *)LABEL_TO_SLOT((l), sebsd_slot).l_ptr)
 
 extern struct mac_policy_conf sebsd_mac_policy_conf;
 
@@ -3705,4 +3705,4 @@
     {SEBSD_MAC_LABEL_NAMESPACES};
 
 MAC_POLICY_SET(&sebsd_ops, sebsd, POLICY_DESC, labelnamespaces,
-    SEBSD_MAC_LABEL_NAME_COUNT, &slot, MPC_LOADTIME_FLAG_NOTLATE, 0);
+    SEBSD_MAC_LABEL_NAME_COUNT, &sebsd_slot, MPC_LOADTIME_FLAG_NOTLATE, 0);



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