public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] gentoo-x86 commit in sec-policy/selinux-mozilla/files: fix-mozilla.patch
@ 2011-02-05 20:41 99% Anthony G. Basile (blueness)
  0 siblings, 0 replies; 1+ results
From: Anthony G. Basile (blueness) @ 2011-02-05 20:41 UTC (permalink / raw
  To: gentoo-commits

blueness    11/02/05 20:41:05

  Added:                fix-mozilla.patch
  Log:
  Bulk addition of new selinux policies.
  
  (Portage version: 2.1.9.25/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sec-policy/selinux-mozilla/files/fix-mozilla.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-mozilla/files/fix-mozilla.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-mozilla/files/fix-mozilla.patch?rev=1.1&content-type=text/plain

Index: fix-mozilla.patch
===================================================================
--- apps/mozilla.te	2010-12-13 15:11:01.000000000 +0100
+++ ../../../refpolicy/policy/modules/apps/mozilla.te	2011-01-15 16:27:48.031000003 +0100
@@ -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,12 @@
 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 } )
+userdom_manage_user_tmp_files(mozilla_t)
+userdom_manage_user_tmp_sockets(mozilla_t)
+
 kernel_read_kernel_sysctls(mozilla_t)
 kernel_read_network_state(mozilla_t)
 # Access /proc, sysctl
@@ -143,6 +153,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)
@@ -266,3 +277,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
+++ ../../../refpolicy/policy/modules/apps/mozilla.fc	2011-01-02 22:23:34.407000019 +0100
@@ -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)
+')






^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2011-02-05 20:41 99% [gentoo-commits] gentoo-x86 commit in sec-policy/selinux-mozilla/files: fix-mozilla.patch Anthony G. Basile (blueness)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox