Bug 986533 - SELinux is preventing /usr/bin/gtk-gnash from 'read' accesses on the file pulse-shm-3806488092.
Summary: SELinux is preventing /usr/bin/gtk-gnash from 'read' accesses on the file pul...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:47ec81201f8a0ad6c4c4b277507...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-20 10:32 UTC by Eric Seynaeve
Modified: 2013-09-12 01:53 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-74.2.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-12 01:53:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Eric Seynaeve 2013-07-20 10:32:24 UTC
Description of problem:
Start firefox in sandbox:

sandbox -X -t sandbox_web_t firefox

Open a youtube video. The video plays but no sound is there.

There is no problem outside of the sandbox.
SELinux is preventing /usr/bin/gtk-gnash from 'read' accesses on the file pulse-shm-3806488092.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that gtk-gnash should be allowed read access on the pulse-shm-3806488092 file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep gtk-gnash /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:sandbox_web_client_t:s0:
                              c236,c423
Target Context                unconfined_u:object_r:mozilla_plugin_tmpfs_t:s0
Target Objects                pulse-shm-3806488092 [ file ]
Source                        gtk-gnash
Source Path                   /usr/bin/gtk-gnash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gnash-0.8.10-8.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-63.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.9-302.fc19.x86_64 #1 SMP Sat
                              Jul 6 13:41:07 UTC 2013 x86_64 x86_64
Alert Count                   4
First Seen                    2013-07-20 12:12:49 CEST
Last Seen                     2013-07-20 12:12:50 CEST
Local ID                      ef498f48-324b-4503-912f-75f1aed15508

Raw Audit Messages
type=AVC msg=audit(1374315170.761:472): avc:  denied  { read } for  pid=3528 comm="gtk-gnash" name="pulse-shm-3806488092" dev="tmpfs" ino=68550 scontext=unconfined_u:unconfined_r:sandbox_web_client_t:s0:c236,c423 tcontext=unconfined_u:object_r:mozilla_plugin_tmpfs_t:s0 tclass=file


type=SYSCALL msg=audit(1374315170.761:472): arch=x86_64 syscall=open success=no exit=EACCES a0=7fff0bd70b90 a1=a0000 a2=0 a3=0 items=0 ppid=3511 pid=3528 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=gtk-gnash exe=/usr/bin/gtk-gnash subj=unconfined_u:unconfined_r:sandbox_web_client_t:s0:c236,c423 key=(null)

Hash: gtk-gnash,sandbox_web_client_t,mozilla_plugin_tmpfs_t,file,read

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.9.9-302.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-07-22 10:36:29 UTC
Ok and do you have also opened a video outside of sandbox?

Comment 2 Daniel Walsh 2013-07-22 19:44:40 UTC
If everything works we should dontaudit this.

Comment 3 Eric Seynaeve 2013-09-05 09:27:58 UTC
Sorry for the late reply, must have missed the mails.

Miroslav, yes, I can play video's fine outside of the sandbox (normal Firefox, Tor browser or VLC).

I just tried with a video again and the problem remains (all F19 updates are applied).

How can I help with more bug reporting ?

Thanks,

Eric

Comment 4 Daniel Walsh 2013-09-05 15:15:13 UTC
If you add the rules using audit2allow, does the sound work?

Comment 5 Daniel Walsh 2013-09-05 15:18:07 UTC
4497d91296136a7daf4ad7b4246d014dcac68317 should fix this in git.

Comment 6 Miroslav Grepl 2013-09-05 20:59:01 UTC
Ok, I was able to reproduce it. It is needed. Back ported.

Comment 7 Fedora Update System 2013-09-09 07:53:37 UTC
selinux-policy-3.12.1-74.2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.2.fc19

Comment 8 Fedora Update System 2013-09-09 23:56:50 UTC
Package selinux-policy-3.12.1-74.2.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-74.2.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-16231/selinux-policy-3.12.1-74.2.fc19
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2013-09-12 01:53:04 UTC
selinux-policy-3.12.1-74.2.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.