From owner-p4-projects Thu Oct 24 14: 1:40 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0826B37B404; Thu, 24 Oct 2002 14:01:39 -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 9685D37B401 for ; Thu, 24 Oct 2002 14:01:38 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FD4D43E42 for ; Thu, 24 Oct 2002 14:01:38 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id g9OL0qmV029504 for ; Thu, 24 Oct 2002 14:00:52 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id g9OL0q4J029501 for perforce@freebsd.org; Thu, 24 Oct 2002 14:00:52 -0700 (PDT) Date: Thu, 24 Oct 2002 14:00:52 -0700 (PDT) Message-Id: <200210242100.g9OL0q4J029501@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 Subject: PERFORCE change 20082 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://perforce.freebsd.org/chv.cgi?CH=20082 Change 20082 by rwatson@rwatson_tislabs on 2002/10/24 14:00:15 Require Biba privilege to relabel interfaces. Affected files ... .. //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#158 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#158 (text+ko) ==== @@ -1519,6 +1519,13 @@ return (error); /* + * Relabling network interfaces requires Biba privilege. + */ + error = mac_biba_privileged(subj); + if (error) + return (error); + + /* * If the Biba label is to be changed, authorize as appropriate. */ if (new->mb_flags & MAC_BIBA_FLAGS_BOTH) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message