All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH 06/15] Add firefox file contexts for binary installations
@ 2011-03-09 21:12 Sven Vermeulen
  2011-03-09 22:39 ` Guido Trentalancia
  2011-03-23 13:08 ` Christopher J. PeBenito
  0 siblings, 2 replies; 9+ messages in thread
From: Sven Vermeulen @ 2011-03-09 21:12 UTC (permalink / raw)
  To: refpolicy

Binary installations of firefox provide binaries in /opt/firefox by default. 

Also, binary can be in /usr/bin (but most often this is a script that calls
the binary in /opt/firefox). In both cases, this needs to be marked as
mozilla_exec_t too.

Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
---
 policy/modules/apps/mozilla.fc |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/policy/modules/apps/mozilla.fc b/policy/modules/apps/mozilla.fc
index 93ac529..ad59444 100644
--- a/policy/modules/apps/mozilla.fc
+++ b/policy/modules/apps/mozilla.fc
@@ -7,6 +7,7 @@ HOME_DIR/\.phoenix(/.*)?		gen_context(system_u:object_r:mozilla_home_t,s0)
 #
 # /bin
 #
+/usr/bin/firefox(-bin)?		--	gen_context(system_u:object_r:mozilla_exec_t,s0)
 /usr/bin/netscape		--	gen_context(system_u:object_r:mozilla_exec_t,s0)
 /usr/bin/mozilla		--	gen_context(system_u:object_r:mozilla_exec_t,s0)
 /usr/bin/mozilla-snapshot	--	gen_context(system_u:object_r:mozilla_exec_t,s0)
@@ -27,3 +28,12 @@ HOME_DIR/\.phoenix(/.*)?		gen_context(system_u:object_r:mozilla_home_t,s0)
 /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)
+
+#
+# /opt
+#
+/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)
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-03-23 13:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-09 21:12 [refpolicy] [PATCH 06/15] Add firefox file contexts for binary installations Sven Vermeulen
2011-03-09 22:39 ` Guido Trentalancia
2011-03-10  8:27   ` Dominick Grift
2011-03-10 12:02     ` Guido Trentalancia
2011-03-10 13:37       ` Sven Vermeulen
2011-03-10 14:10         ` Sven Vermeulen
2011-03-10 14:34           ` Guido Trentalancia
2011-03-10 15:25         ` Guido Trentalancia
2011-03-23 13:08 ` Christopher J. PeBenito

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.