From owner-p4-projects Fri May 10 22:38:42 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id EB23E37B408; Fri, 10 May 2002 22:38:37 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2B4EE37B405 for ; Fri, 10 May 2002 22:38:37 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4B5cb601082 for perforce@freebsd.org; Fri, 10 May 2002 22:38:37 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Fri, 10 May 2002 22:38:37 -0700 (PDT) Message-Id: <200205110538.g4B5cb601082@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 11152 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=11152 Change 11152 by rwatson@rwatson_paprika on 2002/05/10 22:37:49 Move printf() on module load outside of the region where the list lock is held. Introduce a new printf on unload of a module. Affected files ... ... //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#141 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#141 (text+ko) ==== @@ -564,13 +564,15 @@ mpc->mpc_field_off = -1; mpc->mpc_runtime_flags |= MPC_RUNTIME_FLAG_REGISTERED; LIST_INSERT_HEAD(&mac_policy_list, mpc, mpc_list); - printf("Security policy: %s (%s)\n", mpc->mpc_fullname, mpc->mpc_name); /* Per-policy initialization. */ if (mpc->mpc_ops.mpo_init != NULL) (*(mpc->mpc_ops.mpo_init))(mpc); MAC_POLICY_LIST_UNLOCK(); + printf("Security policy loaded: %s (%s)\n", mpc->mpc_fullname, + mpc->mpc_name); + return (0); } @@ -594,6 +596,9 @@ LIST_REMOVE(mpc, mpc_list); MAC_POLICY_LIST_UNLOCK(); + printf("Security policy unload: %s (%s)\n", mpc->mpc_fullname, + mpc->mpc_name); + return (0); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message