From owner-p4-projects@FreeBSD.ORG Tue Aug 9 11:30:06 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5EC7616A421; Tue, 9 Aug 2005 11:30:06 +0000 (GMT) X-Original-To: perforce@freebsd.org 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 1CD3D16A41F for ; Tue, 9 Aug 2005 11:30:06 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5ACC043D5A for ; Tue, 9 Aug 2005 11:30:05 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j79BU5v7012352 for ; Tue, 9 Aug 2005 11:30:05 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j79BU51t012349 for perforce@freebsd.org; Tue, 9 Aug 2005 11:30:05 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Tue, 9 Aug 2005 11:30:05 GMT Message-Id: <200508091130.j79BU51t012349@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 81724 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2005 11:30:07 -0000 http://perforce.freebsd.org/chv.cgi?CH=81724 Change 81724 by rwatson@rwatson_peppercorn on 2005/08/09 11:29:30 Un-staticize mac_version so modules can test it. Constify mac_version since it really shouldn't be changed at run- time. Affected files ... .. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#448 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#448 (text+ko) ==== @@ -120,7 +120,7 @@ /* * Export the MAC API version counter. */ -static int mac_version = __MAC_version; +const int mac_version = __MAC_version; SYSCTL_INT(_security_mac, OID_AUTO, version, CTLFLAG_RD, &mac_version, 0, "MAC version");