From owner-p4-projects Mon Jul 29 7: 1:11 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8F6CA37B405; Mon, 29 Jul 2002 07:01:06 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1D4637B401 for ; Mon, 29 Jul 2002 07:01:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E96343E42 for ; Mon, 29 Jul 2002 07:01:05 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6TE15JU065477 for ; Mon, 29 Jul 2002 07:01:05 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6TE14B6065467 for perforce@freebsd.org; Mon, 29 Jul 2002 07:01:04 -0700 (PDT) Date: Mon, 29 Jul 2002 07:01:04 -0700 (PDT) Message-Id: <200207291401.g6TE14B6065467@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 15120 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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