From owner-p4-projects Sat Jun 1 11:52: 4 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8A89437B404; Sat, 1 Jun 2002 11:52:00 -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 CA88537B400 for ; Sat, 1 Jun 2002 11:51:59 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g51IpxX18025 for perforce@freebsd.org; Sat, 1 Jun 2002 11:51:59 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sat, 1 Jun 2002 11:51:59 -0700 (PDT) Message-Id: <200206011851.g51IpxX18025@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 12268 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=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