Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jun 2002 11:51:59 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 12268 for review
Message-ID:  <200206011851.g51IpxX18025@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=12268

Change 12268 by rwatson@rwatson_curry on 2002/06/01 11:51:52

	Always mount the root file system as biba/high.

Affected files ...

... //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#42 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#42 (text+ko) ====

@@ -627,8 +627,13 @@
 mac_biba_create_root_mount(struct ucred *cred, struct mount *mp,
     struct label *mntlabel, struct label *fslabel)
 {
+	struct mac_biba *mac_biba;
 
-	mac_biba_create_mount(cred, mp, mntlabel, fslabel);
+	/* Always mount root as high integrity. */
+	mac_biba = SLOT(fslabel);
+	mac_biba_set_single(mac_biba, MAC_BIBA_TYPE_HIGH, 0);
+	mac_biba = SLOT(mntlabel);
+	mac_biba_set_single(mac_biba, MAC_BIBA_TYPE_HIGH, 0);
 }
 
 static void

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?200206011851.g51IpxX18025>