From owner-trustedbsd-cvs@FreeBSD.ORG Mon Jan 22 20:18:27 2007 Return-Path: X-Original-To: trustedbsd-cvs@freebsd.org Delivered-To: trustedbsd-cvs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C8C0E16A403 for ; Mon, 22 Jan 2007 20:18:27 +0000 (UTC) (envelope-from owner-perforce@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 448BB13C4BB for ; Mon, 22 Jan 2007 20:18:26 +0000 (UTC) (envelope-from owner-perforce@freebsd.org) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by cyrus.watson.org (Postfix) with ESMTP id 1EA50484EF for ; Mon, 22 Jan 2007 15:18:21 -0500 (EST) Received: from hub.freebsd.org (hub.freebsd.org [69.147.83.54]) by mx2.freebsd.org (Postfix) with ESMTP id B02B65CB2C; Mon, 22 Jan 2007 20:14:36 +0000 (GMT) (envelope-from owner-perforce@freebsd.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 4ECBD16A405; Mon, 22 Jan 2007 20:14:36 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F122216A402 for ; Mon, 22 Jan 2007 20:14:35 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id D847813C455 for ; Mon, 22 Jan 2007 20:14:35 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l0MKEZEZ091972 for ; Mon, 22 Jan 2007 20:14:35 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0MKEZIB091969 for perforce@freebsd.org; Mon, 22 Jan 2007 20:14:35 GMT (envelope-from millert@freebsd.org) Date: Mon, 22 Jan 2007 20:14:35 GMT Message-Id: <200701222014.l0MKEZIB091969@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to millert@freebsd.org using -f From: Todd Miller To: Perforce Change Reviews Cc: Subject: PERFORCE change 113421 for review X-BeenThere: trustedbsd-cvs@FreeBSD.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: TrustedBSD CVS and Perforce commit message list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 20:18:27 -0000 http://perforce.freebsd.org/chv.cgi?CH=113421 Change 113421 by millert@millert_macbook on 2007/01/22 20:14:27 Conditionalize rules for unconfined_t. Affected files ... .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/system/darwin.te#7 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/system/darwin.te#7 (text+ko) ==== @@ -26,26 +26,29 @@ fs_associate(darwin_global_pref_t) fs_associate(darwin_private_t) -# Temporary rules for unconfined_t -mach_allow_message(unconfined_t, unconfined_t) -mach_allow_message(unconfined_t, kernel_t) -mach_allow_message(unconfined_t, init_t) -mach_allow_message(unconfined_t, securityd_t) +define(`enable_unconfined', `true') +ifdef(`enable_unconfined',` + # Temporary rules for unconfined_t + mach_allow_message(unconfined_t, unconfined_t) + mach_allow_message(unconfined_t, kernel_t) + mach_allow_message(unconfined_t, init_t) + mach_allow_message(unconfined_t, securityd_t) -allow unconfined_t init_t:mi_bootstrap { bootstrap_look_up bootstrap_subset }; -allow unconfined_t init_t:mi_notify_ipc { notify_server_register_check notify_server_get_state notify_server_register_plain }; -allow unconfined_t { darwin_system_t framework_t darwin_private_t darwin_CoreServices_t darwin_global_pref_t darwin_system_t darwin_host_pref_t var_vm_t }:dir { search getattr }; -allow unconfined_t { darwin_CoreServices_t darwin_global_pref_t darwin_host_pref_t }:file read; -allow unconfined_t framework_t:{file dir lnk_file} read; -allow unconfined_t framework_t:file getattr; + allow unconfined_t init_t:mi_bootstrap { bootstrap_look_up bootstrap_subset }; + allow unconfined_t init_t:mi_notify_ipc { notify_server_register_check notify_server_get_state notify_server_register_plain }; + allow unconfined_t { darwin_system_t framework_t darwin_private_t darwin_CoreServices_t darwin_global_pref_t darwin_system_t darwin_host_pref_t var_vm_t }:dir { search getattr }; + allow unconfined_t { darwin_CoreServices_t darwin_global_pref_t darwin_host_pref_t }:file read; + allow unconfined_t framework_t:{file dir lnk_file} read; + allow unconfined_t framework_t:file getattr; -# Allow communication with unconfined -mach_allow_ipc(configd_t, unconfined_t) -mach_allow_ipc(coreservicesd_t, unconfined_t) -mach_allow_ipc(diskarbitrationd_t, unconfined_t) -mach_allow_ipc(init_t, unconfined_t) -mach_allow_ipc(kextd_t, unconfined_t) -mach_allow_ipc(loginwindow_t, unconfined_t) -mach_allow_ipc(memberd_t, unconfined_t) -mach_allow_ipc(notifyd_t, unconfined_t) -mach_allow_ipc(securityd_t, unconfined_t) + # Allow communication with unconfined + mach_allow_ipc(configd_t, unconfined_t) + mach_allow_ipc(coreservicesd_t, unconfined_t) + mach_allow_ipc(diskarbitrationd_t, unconfined_t) + mach_allow_ipc(init_t, unconfined_t) + mach_allow_ipc(kextd_t, unconfined_t) + mach_allow_ipc(loginwindow_t, unconfined_t) + mach_allow_ipc(memberd_t, unconfined_t) + mach_allow_ipc(notifyd_t, unconfined_t) + mach_allow_ipc(securityd_t, unconfined_t) +')