1 |
commit: e9d52a7ed8f2dfcaf24af410a552004e0ce37057 |
2 |
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
3 |
AuthorDate: Sun Nov 25 20:05:28 2012 +0000 |
4 |
Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
5 |
CommitDate: Sun Nov 25 20:05:28 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=e9d52a7e |
7 |
|
8 |
Have alsa domain optional for mplayer |
9 |
|
10 |
Package-Manager: portage-2.1.11.31 |
11 |
Manifest-Sign-Key: 0xCDBA2FDB |
12 |
|
13 |
--- |
14 |
.../files/fix-alsa-is-optional-r8.patch | 22 ++++++++++++++++++++ |
15 |
.../selinux-mplayer-2.20120725-r8.ebuild | 1 + |
16 |
2 files changed, 23 insertions(+), 0 deletions(-) |
17 |
|
18 |
diff --git a/sec-policy/selinux-mplayer/files/fix-alsa-is-optional-r8.patch b/sec-policy/selinux-mplayer/files/fix-alsa-is-optional-r8.patch |
19 |
new file mode 100644 |
20 |
index 0000000..de6a559 |
21 |
--- /dev/null |
22 |
+++ b/sec-policy/selinux-mplayer/files/fix-alsa-is-optional-r8.patch |
23 |
@@ -0,0 +1,22 @@ |
24 |
+--- contrib/mplayer.te 2012-11-25 21:02:45.896073761 +0100 |
25 |
++++ contrib/mplayer.te 2012-11-25 21:02:14.847042646 +0100 |
26 |
+@@ -207,8 +207,6 @@ |
27 |
+ xserver_user_x_domain_template(mplayer, mplayer_t, mplayer_tmpfs_t) |
28 |
+ |
29 |
+ ifdef(`distro_gentoo',` |
30 |
+- alsa_domain(mplayer_t, mplayer_tmpfs_t) |
31 |
+- |
32 |
+ xdg_manage_videos_home(mplayer_t) |
33 |
+ |
34 |
+ tunable_policy(`mplayer_read_user_content',` |
35 |
+@@ -226,6 +224,10 @@ |
36 |
+ |
37 |
+ userdom_write_user_tmp_sockets(mplayer_t) |
38 |
+ ') |
39 |
++ |
40 |
++ optional_policy(` |
41 |
++ alsa_domain(mplayer_t, mplayer_tmpfs_t) |
42 |
++ ') |
43 |
+ ') |
44 |
+ |
45 |
+ ifndef(`enable_mls',` |
46 |
|
47 |
diff --git a/sec-policy/selinux-mplayer/selinux-mplayer-2.20120725-r8.ebuild b/sec-policy/selinux-mplayer/selinux-mplayer-2.20120725-r8.ebuild |
48 |
index 588c7e3..548eef2 100644 |
49 |
--- a/sec-policy/selinux-mplayer/selinux-mplayer-2.20120725-r8.ebuild |
50 |
+++ b/sec-policy/selinux-mplayer/selinux-mplayer-2.20120725-r8.ebuild |
51 |
@@ -16,3 +16,4 @@ DEPEND="${DEPEND} |
52 |
sec-policy/selinux-xserver |
53 |
" |
54 |
RDEPEND="${DEPEND}" |
55 |
+POLICY_PATCH="${FILESDIR}/fix-alsa-is-optional-r8.patch" |