Bug 919782

Summary: SELinux is preventing mplayer from 'execmod' accesses on the file /usr/lib/libmpg123.so.0.36.4.
Product: [Fedora] Fedora Reporter: cornel panceac <cpanceac>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:f0980c7b3921a3f445ec5b18dc786034eaab67786cdf6058d7cc2f35a0a4d322
Fixed In Version: selinux-policy-3.11.1-108.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-05 06:07:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description cornel panceac 2013-03-10 04:44:22 UTC
Description of problem:
tried vlc playlist from a-1radio.com, in firefox
SELinux is preventing mplayer from 'execmod' accesses on the file /usr/lib/libmpg123.so.0.36.4.

*****  Plugin allow_execmod (91.4 confidence) suggests  **********************

If you want to allow mplayer to have execmod access on the libmpg123.so.0.36.4 file
Then you need to change the label on '/usr/lib/libmpg123.so.0.36.4'
Do
# semanage fcontext -a -t textrel_shlib_t '/usr/lib/libmpg123.so.0.36.4'
# restorecon -v '/usr/lib/libmpg123.so.0.36.4'

*****  Plugin catchall (9.59 confidence) suggests  ***************************

If you believe that mplayer should be allowed execmod access on the libmpg123.so.0.36.4 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 mplayer /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib/libmpg123.so.0.36.4 [ file ]
Source                        mplayer
Source Path                   mplayer
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           libmpg123-1.14.3-1.fc18.i686
Policy RPM                    selinux-policy-3.11.1-82.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.1-201.fc18.i686 #1 SMP Thu Feb
                              28 19:48:01 UTC 2013 i686 i686
Alert Count                   5
First Seen                    2013-03-10 06:41:56 EET
Last Seen                     2013-03-10 06:42:02 EET
Local ID                      531a5494-8f91-42e8-a67e-47cce6fd89a3

Raw Audit Messages
type=AVC msg=audit(1362890522.176:337): avc:  denied  { execmod } for  pid=1744 comm="mplayer" path="/usr/lib/libmpg123.so.0.36.4" dev="dm-1" ino=165860 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file


Hash: mplayer,mozilla_plugin_t,lib_t,file,execmod

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t lib_t:file execmod;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t lib_t:file execmod;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.1-201.fc18.i686
type:           libreport

Potential duplicate: bug 841507

Comment 1 Daniel Walsh 2013-03-11 14:25:04 UTC
We allow this in Rawhide.

Comment 2 Lukas Vrabec 2013-10-29 12:35:34 UTC
back ported.

Comment 3 Fedora Update System 2013-12-19 23:59:25 UTC
selinux-policy-3.11.1-108.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-108.fc18

Comment 4 Fedora Update System 2013-12-21 02:17:44 UTC
Package selinux-policy-3.11.1-108.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-108.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23716/selinux-policy-3.11.1-108.fc18
then log in and leave karma (feedback).

Comment 5 Fedora End Of Life 2013-12-21 15:45:07 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Fedora Update System 2014-01-05 06:07:35 UTC
selinux-policy-3.11.1-108.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.