From owner-p4-projects Thu Sep 19 15:25:35 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6878837B404; Thu, 19 Sep 2002 15:25:33 -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 158DA37B401 for ; Thu, 19 Sep 2002 15:25:33 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C77F743E42 for ; Thu, 19 Sep 2002 15:25:32 -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.6/8.12.6) with ESMTP id g8JMPWCo087308 for ; Thu, 19 Sep 2002 15:25:32 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8JMPWLS087303 for perforce@freebsd.org; Thu, 19 Sep 2002 15:25:32 -0700 (PDT) Date: Thu, 19 Sep 2002 15:25:32 -0700 (PDT) Message-Id: <200209192225.g8JMPWLS087303@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 17735 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=17735 Change 17735 by rwatson@rwatson_tislabs on 2002/09/19 15:25:24 Export sizeof(struct oldmac) as the label size, not sizeof(struct mac). Pointed out by: amigus Affected files ... .. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#272 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#272 (text+ko) ==== @@ -140,7 +140,7 @@ SYSCTL_INT(_security_mac, OID_AUTO, enforce_vm, CTLFLAG_RW, &mac_enforce_vm, 0, "Enforce MAC policy on vm operations"); -static int mac_label_size = sizeof(struct mac); +static int mac_label_size = sizeof(struct oldmac); SYSCTL_INT(_security_mac, OID_AUTO, label_size, CTLFLAG_RD, &mac_label_size, 0, "Pre-compiled MAC label size"); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message