summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-02-05 20:41:06 +0000
committerAnthony G. Basile <blueness@gentoo.org>2011-02-05 20:41:06 +0000
commit7297073f9ae00bd1ff8f3261597591a9d73c2788 (patch)
treecc6bda71ac9301019ec59688a631926ecf3f3512 /sec-policy/selinux-mozilla
parentAdd ~amd64-linux/~x86-linux, use ED instead of D in a couple places (diff)
downloadgentoo-2-7297073f9ae00bd1ff8f3261597591a9d73c2788.tar.gz
gentoo-2-7297073f9ae00bd1ff8f3261597591a9d73c2788.tar.bz2
gentoo-2-7297073f9ae00bd1ff8f3261597591a9d73c2788.zip
Bulk addition of new selinux policies.
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Diffstat (limited to 'sec-policy/selinux-mozilla')
-rw-r--r--sec-policy/selinux-mozilla/ChangeLog14
-rw-r--r--sec-policy/selinux-mozilla/files/fix-mozilla.patch57
-rw-r--r--sec-policy/selinux-mozilla/metadata.xml6
-rw-r--r--sec-policy/selinux-mozilla/selinux-mozilla-2.20101213-r1.ebuild15
-rw-r--r--sec-policy/selinux-mozilla/selinux-mozilla-2.20101213.ebuild15
5 files changed, 107 insertions, 0 deletions
diff --git a/sec-policy/selinux-mozilla/ChangeLog b/sec-policy/selinux-mozilla/ChangeLog
new file mode 100644
index 000000000000..64ccd9257cdc
--- /dev/null
+++ b/sec-policy/selinux-mozilla/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for sec-policy/selinux-mozilla
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-mozilla/ChangeLog,v 1.1 2011/02/05 20:41:05 blueness Exp $
+
+ 05 Feb 2011; Anthony G. Basile <blueness@gentoo.org> ChangeLog:
+ Initial commit to portage.
+
+*selinux-mozilla-2.20101213-r1 (22 Jan 2011)
+
+ 22 Jan 2011; <swift@gentoo.org> +selinux-mozilla-2.20101213-r1.ebuild,
+ files/fix-mozilla.patch:
+ Support binary firefox, add call to alsa interface and support tmp type
+ for mozilla
+
diff --git a/sec-policy/selinux-mozilla/files/fix-mozilla.patch b/sec-policy/selinux-mozilla/files/fix-mozilla.patch
new file mode 100644
index 000000000000..bfa24856170a
--- /dev/null
+++ b/sec-policy/selinux-mozilla/files/fix-mozilla.patch
@@ -0,0 +1,57 @@
+--- 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)
++')
diff --git a/sec-policy/selinux-mozilla/metadata.xml b/sec-policy/selinux-mozilla/metadata.xml
new file mode 100644
index 000000000000..d1cc6baa448f
--- /dev/null
+++ b/sec-policy/selinux-mozilla/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>hardened</herd>
+<longdescription>Gentoo SELinux policy for mozilla</longdescription>
+</pkgmetadata>
diff --git a/sec-policy/selinux-mozilla/selinux-mozilla-2.20101213-r1.ebuild b/sec-policy/selinux-mozilla/selinux-mozilla-2.20101213-r1.ebuild
new file mode 100644
index 000000000000..df8f5aa9928f
--- /dev/null
+++ b/sec-policy/selinux-mozilla/selinux-mozilla-2.20101213-r1.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-mozilla/selinux-mozilla-2.20101213-r1.ebuild,v 1.1 2011/02/05 20:41:05 blueness Exp $
+
+IUSE=""
+
+MODS="mozilla"
+
+inherit selinux-policy-2
+
+DESCRIPTION="SELinux policy for general applications"
+
+KEYWORDS="~amd64 ~x86"
+
+POLICY_PATCH="${FILESDIR}/fix-mozilla.patch"
diff --git a/sec-policy/selinux-mozilla/selinux-mozilla-2.20101213.ebuild b/sec-policy/selinux-mozilla/selinux-mozilla-2.20101213.ebuild
new file mode 100644
index 000000000000..7045789cd713
--- /dev/null
+++ b/sec-policy/selinux-mozilla/selinux-mozilla-2.20101213.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-mozilla/selinux-mozilla-2.20101213.ebuild,v 1.1 2011/02/05 20:41:05 blueness Exp $
+
+IUSE=""
+
+MODS="mozilla"
+
+inherit selinux-policy-2
+
+DESCRIPTION="SELinux policy for general applications"
+
+KEYWORDS="~amd64 ~x86"
+
+POLICY_PATCH="${FILESDIR}/fix-mozilla.patch"