PERFORCE change 104074 for review
Todd Miller
millert at FreeBSD.org
Tue Aug 15 17:53:38 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=104074
Change 104074 by millert at 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);
More information about the trustedbsd-cvs
mailing list