From owner-trustedbsd-cvs@FreeBSD.ORG Mon Jan 22 20:19:18 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 5F8F416A400 for ; Mon, 22 Jan 2007 20:19:18 +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 BE91613C4EA for ; Mon, 22 Jan 2007 20:19:15 +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 628A948A58 for ; Mon, 22 Jan 2007 15:19:09 -0500 (EST) Received: from hub.freebsd.org (hub.freebsd.org [69.147.83.54]) by mx2.freebsd.org (Postfix) with ESMTP id 5A1B155FDF; Mon, 22 Jan 2007 20:18:48 +0000 (GMT) (envelope-from owner-perforce@freebsd.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 3361C16A4A0; Mon, 22 Jan 2007 20:18:48 +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 E11FB16A48F for ; Mon, 22 Jan 2007 20:18:47 +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 0660E13C500 for ; Mon, 22 Jan 2007 20:18:45 +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 l0MKIhCn093944 for ; Mon, 22 Jan 2007 20:18:43 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0MKIhUK093941 for perforce@freebsd.org; Mon, 22 Jan 2007 20:18:43 GMT (envelope-from millert@freebsd.org) Date: Mon, 22 Jan 2007 20:18:43 GMT Message-Id: <200701222018.l0MKIhUK093941@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 113426 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:19:18 -0000 http://perforce.freebsd.org/chv.cgi?CH=113426 Change 113426 by millert@millert_macbook on 2007/01/22 20:18:14 Relabel /Applications as darwin_applications_t (was bin_t). Affected files ... .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/configd.te#18 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/coreservicesd.te#11 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/loginwindow.te#16 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/notifyd.te#8 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/securityd.te#16 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/kernel/kernel.te#5 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/system/darwin.fc#10 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/system/darwin.te#9 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/system/init.te#14 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/configd.te#18 (text+ko) ==== @@ -83,6 +83,9 @@ allow configd_t sbin_t:dir { getattr read search }; allow configd_t sbin_t:file { execute_no_trans getattr read }; +allow configd_t darwin_applications_t:dir { search read }; +allow configd_t darwin_applications_t:file { read getattr }; + # Execute configd helpers configd_allow_resource_read(configd_t) configd_allow_resource_execute(configd_t) ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/coreservicesd.te#11 (text+ko) ==== @@ -38,6 +38,9 @@ # Talk to kernel kernel_allow_ipc(coreservicesd_t) +# Talk to notifyd +notifyd_allow_shm(coreservicesd_t) + # Talk to WindowServer WindowServer_allow_ipc(coreservicesd_t) allow coreservicesd_t WindowServer_t:process taskforpid; ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/loginwindow.te#16 (text+ko) ==== @@ -55,6 +55,9 @@ allow loginwindow_t darwin_services_t:dir { read search getattr }; +allow loginwindow_t darwin_applications_t:dir { search getattr read }; +allow loginwindow_t darwin_applications_t:file { read getattr }; + allow loginwindow_t init_t:process taskforpid; # Talk to self ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/notifyd.te#8 (text+ko) ==== @@ -60,3 +60,4 @@ # /var operations files_read_var_symlinks(notifyd_t) +allow notifyd_t var_t:file write; ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/darwin/securityd.te#16 (text+ko) ==== @@ -49,6 +49,9 @@ allow securityd_t darwin_network_t:dir { getattr search }; allow securityd_t darwin_network_t:lnk_file { getattr read }; +allow securityd_t darwin_applications_t:dir { getattr search read }; +allow securityd_t darwin_applications_t:file { getattr read }; + # /var file operations files_manage_var_files(securityd_t) files_manage_var_dirs(securityd_t) ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/kernel/kernel.te#5 (text+ko) ==== @@ -236,6 +236,8 @@ files_list_home(kernel_t) files_read_usr_files(kernel_t) +allow kernel_t darwin_applications_t:file read; + mcs_process_set_categories(kernel_t) mls_process_read_up(kernel_t) ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/system/darwin.fc#10 (text+ko) ==== @@ -22,7 +22,7 @@ # # Applications # -/Applications.* gen_context(system_u:object_r:bin_t,s0) +/Applications.* gen_context(system_u:object_r:darwin_applications_t,s0) # # /Library ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/system/darwin.te#9 (text+ko) ==== @@ -5,6 +5,7 @@ # Declarations # +type darwin_applications_t; type darwin_global_pref_t; type darwin_host_pref_t; type darwin_CoreServices_t; @@ -51,6 +52,9 @@ allow unconfined_t darwin_system_t:lnk_file { read getattr }; allow unconfined_t darwin_system_t:dir { read search getattr }; + allow unconfined_t darwin_applications_t:dir { search getattr read }; + allow unconfined_t darwin_applications_t:file { read getattr execute_no_trans execute }; + allow unconfined_t darwin_cache_t:file { read write lock getattr create }; allow unconfined_t darwin_cache_t:dir { search getattr add_name }; ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/refpolicy/policy/modules/system/init.te#14 (text+ko) ==== @@ -665,6 +665,9 @@ allow init_t darwin_startup_t:dir { read search getattr }; allow init_t darwin_startup_t:file { execute execute_no_trans read ioctl getattr }; +allow init_t darwin_applications_t:dir { search getattr read }; +allow init_t darwin_applications_t:file { read getattr }; + # Use Frameworks frameworks_read(init_t) frameworks_execute(init_t)