diff options
Diffstat (limited to 'sec-policy/selinux-mozilla/files/fix-apps-mozilla-r4.patch')
-rw-r--r-- | sec-policy/selinux-mozilla/files/fix-apps-mozilla-r4.patch | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/sec-policy/selinux-mozilla/files/fix-apps-mozilla-r4.patch b/sec-policy/selinux-mozilla/files/fix-apps-mozilla-r4.patch new file mode 100644 index 000000000000..beef75d4a880 --- /dev/null +++ b/sec-policy/selinux-mozilla/files/fix-apps-mozilla-r4.patch @@ -0,0 +1,82 @@ +--- apps/mozilla.te 2010-12-13 15:11:01.000000000 +0100 ++++ apps/mozilla.te 2011-07-24 16:48:16.221000672 +0200 +@@ -33,6 +33,10 @@ + files_tmpfs_file(mozilla_tmpfs_t) + ubac_constrained(mozilla_tmpfs_t) + ++type mozilla_tmp_t; ++files_tmp_file(mozilla_tmp_t) ++ubac_constrained(mozilla_tmp_t) ++ + ######################################## + # + # Local policy +@@ -68,6 +72,10 @@ + manage_sock_files_pattern(mozilla_t, mozilla_tmpfs_t, mozilla_tmpfs_t) + fs_tmpfs_filetrans(mozilla_t, mozilla_tmpfs_t, { file lnk_file sock_file fifo_file }) + ++manage_files_pattern(mozilla_t, mozilla_tmp_t, mozilla_tmp_t) ++manage_dirs_pattern(mozilla_t, mozilla_tmp_t, mozilla_tmp_t) ++files_tmp_filetrans(mozilla_t, mozilla_tmp_t, { file dir } ) ++ + kernel_read_kernel_sysctls(mozilla_t) + kernel_read_network_state(mozilla_t) + # Access /proc, sysctl +@@ -89,15 +97,18 @@ + corenet_raw_sendrecv_generic_node(mozilla_t) + corenet_tcp_sendrecv_http_port(mozilla_t) + corenet_tcp_sendrecv_http_cache_port(mozilla_t) ++corenet_tcp_sendrecv_tor_port(mozilla_t) + corenet_tcp_sendrecv_ftp_port(mozilla_t) + corenet_tcp_sendrecv_ipp_port(mozilla_t) + corenet_tcp_connect_http_port(mozilla_t) + corenet_tcp_connect_http_cache_port(mozilla_t) ++corenet_tcp_connect_tor_port(mozilla_t) + corenet_tcp_connect_ftp_port(mozilla_t) + corenet_tcp_connect_ipp_port(mozilla_t) + corenet_tcp_connect_generic_port(mozilla_t) + corenet_tcp_connect_soundd_port(mozilla_t) + corenet_sendrecv_http_client_packets(mozilla_t) ++corenet_sendrecv_tor_client_packets(mozilla_t) + corenet_sendrecv_http_cache_client_packets(mozilla_t) + corenet_sendrecv_ftp_client_packets(mozilla_t) + corenet_sendrecv_ipp_client_packets(mozilla_t) +@@ -143,6 +154,7 @@ + + userdom_use_user_ptys(mozilla_t) + ++ + xserver_user_x_domain_template(mozilla, mozilla_t, mozilla_tmpfs_t) + xserver_dontaudit_read_xdm_tmp_files(mozilla_t) + xserver_dontaudit_getattr_xdm_tmp_sockets(mozilla_t) +@@ -193,6 +205,7 @@ + userdom_list_user_tmp(mozilla_t) + userdom_read_user_tmp_files(mozilla_t) + userdom_read_user_tmp_symlinks(mozilla_t) ++ userdom_list_user_home_content(mozilla_t) + userdom_read_user_home_content_files(mozilla_t) + userdom_read_user_home_content_symlinks(mozilla_t) + +@@ -266,3 +279,7 @@ + optional_policy(` + thunderbird_domtrans(mozilla_t) + ') ++ ++optional_policy(` ++ alsa_read_rw_config(mozilla_t) ++') +--- apps/mozilla.fc 2010-08-03 15:11:03.000000000 +0200 ++++ apps/mozilla.fc 2011-07-21 10:08:43.909000256 +0200 +@@ -27,3 +27,12 @@ + /usr/lib(64)?/[^/]*firefox[^/]*/firefox-bin -- gen_context(system_u:object_r:mozilla_exec_t,s0) + /usr/lib/[^/]*firefox[^/]*/firefox -- gen_context(system_u:object_r:mozilla_exec_t,s0) + /usr/lib64/[^/]*firefox[^/]*/firefox -- gen_context(system_u:object_r:mozilla_exec_t,s0) ++ ++ifdef(`distro_gentoo',` ++/usr/bin/firefox-bin -- gen_context(system_u:object_r:mozilla_exec_t,s0) ++/opt/firefox/libxul\.so -- gen_context(system_u:object_r:textrel_shlib_t,s0) ++/opt/firefox/firefox -- gen_context(system_u:object_r:mozilla_exec_t,s0) ++/opt/firefox/run-mozilla.sh -- gen_context(system_u:object_r:mozilla_exec_t,s0) ++/opt/firefox/firefox-bin -- gen_context(system_u:object_r:mozilla_exec_t,s0) ++/opt/firefox/plugin-container -- gen_context(system_u:object_r:mozilla_exec_t,s0) ++') |