Date: Mon, 29 Jul 2002 07:01:04 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 15120 for review Message-ID: <200207291401.g6TE14B6065467@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15120 Change 15120 by rwatson@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@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207291401.g6TE14B6065467>