PERFORCE change 14726 for review

Robert Watson rwatson at freebsd.org
Mon Jul 22 21:17:08 GMT 2002


http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14726

Change 14726 by rwatson at rwatson_tislabs on 2002/07/22 14:16:10

	Unique variable names to make it easier to debug slot problems.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#63 edit
.. //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#51 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#63 (text+ko) ====

@@ -96,8 +96,8 @@
 TUNABLE_STR("security.mac.biba.trusted_interfaces", trusted_interfaces,
     sizeof(trusted_interfaces));
 
-static int	slot;
-#define	SLOT(l)	((struct mac_biba *)LABEL_TO_SLOT((l), slot).l_ptr)
+static int	mac_biba_slot;
+#define	SLOT(l)	((struct mac_biba *)LABEL_TO_SLOT((l), mac_biba_slot).l_ptr)
 
 MALLOC_DEFINE(M_MACBIBA, "biba label", "MAC/Biba labels");
 
@@ -2014,4 +2014,4 @@
 };
 
 MAC_POLICY_SET(mac_biba_ops, trustedbsd_mac_biba, "TrustedBSD MAC/Biba",
-    MPC_LOADTIME_FLAG_NOTLATE, &slot);
+    MPC_LOADTIME_FLAG_NOTLATE, &mac_biba_slot);

==== //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#51 (text+ko) ====

@@ -85,8 +85,8 @@
 SYSCTL_INT(_security_mac_mls, OID_AUTO, destroyed_not_inited, CTLFLAG_RD,
     &destroyed_not_inited, 0, "Count of labels destroyed but not inited");
 
-static int	slot;
-#define	SLOT(l)	((struct mac_mls *)LABEL_TO_SLOT((l), slot).l_ptr)
+static int	mac_mls_slot;
+#define	SLOT(l)	((struct mac_mls *)LABEL_TO_SLOT((l), mac_mls_slot).l_ptr)
 
 MALLOC_DEFINE(M_MACMLS, "mls label", "MAC/MLS labels");
 
@@ -1957,4 +1957,4 @@
 };
 
 MAC_POLICY_SET(mac_mls_ops, trustedbsd_mac_mls, "TrustedBSD MAC/MLS",
-    MPC_LOADTIME_FLAG_NOTLATE, &slot);
+    MPC_LOADTIME_FLAG_NOTLATE, &mac_mls_slot);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list