From owner-trustedbsd-cvs@FreeBSD.ORG Mon Jan 22 20:15:34 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 264BD16A411 for ; Mon, 22 Jan 2007 20:15:34 +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 9CEBC13C4DA for ; Mon, 22 Jan 2007 20:15:33 +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 CA038473B8 for ; Mon, 22 Jan 2007 15:15:31 -0500 (EST) Received: from hub.freebsd.org (hub.freebsd.org [69.147.83.54]) by mx2.freebsd.org (Postfix) with ESMTP id D954E56155; Mon, 22 Jan 2007 20:05:16 +0000 (GMT) (envelope-from owner-perforce@freebsd.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id D013F16A404; Mon, 22 Jan 2007 20:05:16 +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 ADBE816A400 for ; Mon, 22 Jan 2007 20:05:16 +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 8CF4313C474 for ; Mon, 22 Jan 2007 20:05:16 +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 l0MK5Gfr089472 for ; Mon, 22 Jan 2007 20:05:16 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0MK5G97089469 for perforce@freebsd.org; Mon, 22 Jan 2007 20:05:16 GMT (envelope-from millert@freebsd.org) Date: Mon, 22 Jan 2007 20:05:16 GMT Message-Id: <200701222005.l0MK5G97089469@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 113407 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:15:34 -0000 http://perforce.freebsd.org/chv.cgi?CH=113407 Change 113407 by millert@millert_macbook on 2007/01/22 20:04:30 Allow access to /System/Library/StartupItems. Affected files ... .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/configd.te#15 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/system/darwin.te#4 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/system/init.te#12 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/configd.te#15 (text+ko) ==== @@ -87,6 +87,10 @@ configd_allow_resource_read(configd_t) configd_allow_resource_execute(configd_t) +# Read /System/Library/StartupItems +allow configd_t darwin_startup_t:dir { read search getattr }; +allow configd_t darwin_startup_t:file { execute execute_no_trans read ioctl getattr }; + # Allow configd to start ntpdate ntp_domtrans_ntpdate(configd_t) ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/system/darwin.te#4 (text+ko) ==== @@ -12,6 +12,7 @@ type darwin_system_t; type darwin_resource_t; type darwin_security_t; +type darwin_startup_t; type darwin_private_t; type darwin_loginplugin_t; type darwin_cache_t; ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/system/init.te#12 (text+ko) ==== @@ -658,6 +658,11 @@ darwin_allow_global_pref_read(init_t) darwin_allow_host_pref_read(init_t) darwin_allow_system_read(init_t) +allow init_t darwin_system_t:file execute; + +# Read /System/Library/StartupItems +allow init_t darwin_startup_t:dir { read search getattr }; +allow init_t darwin_startup_t:file { execute execute_no_trans read ioctl getattr }; # Use Frameworks frameworks_read(init_t)