Date: Mon, 22 Jan 2007 20:18:43 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 113426 for review Message-ID: <200701222018.l0MKIhUK093941@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701222018.l0MKIhUK093941>