PERFORCE change 15120 for review

Robert Watson rwatson at freebsd.org
Mon Jul 29 14:01:04 GMT 2002


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

Change 15120 by rwatson at rwatson_paprika on 2002/07/29 07:00:03

	Remove unused definitions; relocate MALLOC_DEFINE's to before
	non-constant macros for consistency.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#216 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#216 (text+ko) ====

@@ -195,6 +195,9 @@
 static void	mac_cred_mmapped_drop_perms_recurse(struct thread *td,
 		    struct ucred *cred, struct vm_map *map);
 
+MALLOC_DEFINE(M_MACOPVEC, "macopvec", "MAC policy operation vector");
+MALLOC_DEFINE(M_MACPIPELABEL, "macpipelabel", "MAC labels for pipes");
+
 /*
  * mac_policy_list_lock protects the consistency of 'mac_policy_list',
  * the linked list of attached policy modules.  Read-only consumers of
@@ -280,11 +283,6 @@
 	MAC_POLICY_LIST_UNBUSY();					\
 } while (0)
 
-MALLOC_DEFINE(M_MACOPVEC, "macopvec", "MAC policy operation vector");
-MALLOC_DEFINE(M_TMPLABEL, "tmplabel", "temporary user-label copied storage");
-MALLOC_DEFINE(M_MACPIPELABEL, "macpipelabel", "MAC labels for pipes");
-const size_t maxlabelsize = 65536;
-
 /*
  * Initialize the MAC subsystem, including appropriate SMP locks.
  */
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