From owner-p4-projects Tue Jul 23 9:22:11 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7A10237B401; Tue, 23 Jul 2002 09:22:07 -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 2DDE437B400 for ; Tue, 23 Jul 2002 09:22:07 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFDE343E65 for ; Tue, 23 Jul 2002 09:22:06 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6NGM6JU001510 for ; Tue, 23 Jul 2002 09:22:06 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6NGM6at001507 for perforce@freebsd.org; Tue, 23 Jul 2002 09:22:06 -0700 (PDT) Date: Tue, 23 Jul 2002 09:22:06 -0700 (PDT) Message-Id: <200207231622.g6NGM6at001507@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 14781 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=14781 Change 14781 by rwatson@rwatson_paprika on 2002/07/23 09:21:50 Implement mac_partition_execve_transition() as a wrapper to mac_create_subject() so that mac_partition works properly in the presence of a transitioning policy. Affected files ... .. //depot/projects/trustedbsd/mac/sys/security/mac_partition/mac_partition.c#4 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/security/mac_partition/mac_partition.c#4 (text+ko) ==== @@ -139,6 +139,14 @@ } static void +mac_partition_execve_transition(struct ucred *old, struct ucred *new, + struct vnode *vp, struct label *vnodelabel) +{ + + mac_partition_create_subject(old, new); +} + +static void mac_partition_create_proc0(struct ucred *cred) { @@ -259,6 +267,8 @@ (macop_t)mac_partition_internalize }, { MAC_CREATE_SUBJECT, (macop_t)mac_partition_create_subject }, + { MAC_EXECVE_TRANSITION, + (macop_t)mac_partition_execve_transition }, { MAC_CREATE_PROC0, (macop_t)mac_partition_create_proc0 }, { MAC_CREATE_PROC1, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message