Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2002 15:25:32 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 17735 for review
Message-ID:  <200209192225.g8JMPWLS087303@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209192225.g8JMPWLS087303>