1 |
commit: 9ce39c14756e16c12ef1f09e9e0e063e14fb18d4 |
2 |
Author: Jason Zaman <jason <AT> perfinion <DOT> com> |
3 |
AuthorDate: Wed Nov 18 06:10:02 2015 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 18 06:10:02 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=9ce39c14 |
7 |
|
8 |
pulseaudio: add fd perms for v7 |
9 |
|
10 |
avc: denied { use } for pid=19660 comm="threaded-ml" |
11 |
path="anon_inode:[eventfd]" dev="anon_inodefs" ino=7523 |
12 |
scontext=staff_u:staff_r:mplayer_t:s0-s0:c0.c511 |
13 |
tcontext=staff_u:staff_r:pulseaudio_t:s0-s0:c0.c511 tclass=fd |
14 |
permissive=0 |
15 |
avc: denied { write } for pid=19792 comm="threaded-ml" |
16 |
name="pulse-shm-1853902321" dev="tmpfs" ino=183175232 |
17 |
scontext=staff_u:staff_r:mplayer_t:s0-s0:c0.c511 |
18 |
tcontext=staff_u:object_r:pulseaudio_tmpfs_t:s0 tclass=file permissive=0 |
19 |
|
20 |
policy/modules/contrib/pulseaudio.te | 4 ++++ |
21 |
1 file changed, 4 insertions(+) |
22 |
|
23 |
diff --git a/policy/modules/contrib/pulseaudio.te b/policy/modules/contrib/pulseaudio.te |
24 |
index 1a25024..4dc75b1 100644 |
25 |
--- a/policy/modules/contrib/pulseaudio.te |
26 |
+++ b/policy/modules/contrib/pulseaudio.te |
27 |
@@ -277,4 +277,8 @@ ifdef(`distro_gentoo',` |
28 |
|
29 |
# /tmp/pulse-* gets created by the clients usually as user_tmp_t, bug 556526 |
30 |
userdom_list_user_tmp(pulseaudio_client) |
31 |
+ |
32 |
+ # pulse 7 uses fd's |
33 |
+ allow pulseaudio_client pulseaudio_t:fd use; |
34 |
+ allow pulseaudio_client pulseaudio_tmpfs_t:file rw_file_perms; |
35 |
') |