From owner-p4-projects@FreeBSD.ORG Wed Sep 13 14:07:40 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4249B16A416; Wed, 13 Sep 2006 14:07:40 +0000 (UTC) X-Original-To: perforce@freebsd.org 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 1C44016A407 for ; Wed, 13 Sep 2006 14:07:40 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA57A43D46 for ; Wed, 13 Sep 2006 14:07:39 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8DE7d8T005900 for ; Wed, 13 Sep 2006 14:07:39 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8DE7d7i005897 for perforce@freebsd.org; Wed, 13 Sep 2006 14:07:39 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Wed, 13 Sep 2006 14:07:39 GMT Message-Id: <200609131407.k8DE7d7i005897@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 To: Perforce Change Reviews Cc: Subject: PERFORCE change 106058 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2006 14:07:40 -0000 http://perforce.freebsd.org/chv.cgi?CH=106058 Change 106058 by rwatson@rwatson_peppercorn on 2006/09/13 14:07:12 Annotate that there's some functional duplication between the MAC system checks and privilege checks, so we might want to do some pruning. Affected files ... .. //depot/projects/trustedbsd/priv/sys/security/mac/mac_system.c#3 edit Differences ... ==== //depot/projects/trustedbsd/priv/sys/security/mac/mac_system.c#3 (text+ko) ==== @@ -59,6 +59,12 @@ &mac_enforce_system, 0, "Enforce MAC policy on system operations"); TUNABLE_INT("security.mac.enforce_system", &mac_enforce_system); +/* + * XXXRW: Some of these checks now duplicate privilege checks. However, + * others provide additional security context that may be useful to policies. + * We need to review these and remove ones that are pure duplicates. + */ + int mac_check_kenv_dump(struct ucred *cred) {