Bug 841507 - SELinux is preventing mplayer from 'execmod' accesses on the file /usr/lib/libmpg123.so.0.29.10.
Summary: SELinux is preventing mplayer from 'execmod' accesses on the file /usr/lib/li...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f0980c7b3921a3f445ec5b18dc7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-19 09:03 UTC by steinach2810
Modified: 2012-07-19 21:26 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-07-19 21:26:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description steinach2810 2012-07-19 09:03:32 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.4-5.fc17.i686.PAE
time:           Thu 19 Jul 2012 12:03:06 PM EEST

description:
:SELinux is preventing mplayer from 'execmod' accesses on the file /usr/lib/libmpg123.so.0.29.10.
:
:*****  Plugin allow_execmod (91.4 confidence) suggests  **********************
:
:If you want to allow mplayer to have execmod access on the libmpg123.so.0.29.10 file
:Then you need to change the label on '/usr/lib/libmpg123.so.0.29.10'
:Do
:# semanage fcontext -a -t textrel_shlib_t '/usr/lib/libmpg123.so.0.29.10'
:# restorecon -v '/usr/lib/libmpg123.so.0.29.10'
:
:*****  Plugin catchall (9.59 confidence) suggests  ***************************
:
:If you believe that mplayer should be allowed execmod access on the libmpg123.so.0.29.10 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.29.10 [ file ]
:Source                        mplayer
:Source Path                   mplayer
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           libmpg123-1.13.8-1.fc17.i686
:Policy RPM                    selinux-policy-3.10.0-137.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.4-5.fc17.i686.PAE
:                              #1 SMP Thu Jul 5 20:09:45 UTC 2012 i686 i686
:Alert Count                   6
:First Seen                    Thu 19 Jul 2012 12:01:16 PM EEST
:Last Seen                     Thu 19 Jul 2012 12:01:17 PM EEST
:Local ID                      ec0ea365-a34a-4d94-8f14-1ddf25c104a6
:
:Raw Audit Messages
:type=AVC msg=audit(1342688477.498:259): avc:  denied  { execmod } for  pid=30911 comm="mplayer" path="/usr/lib/libmpg123.so.0.29.10" dev="dm-1" ino=1331612 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
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-07-19 21:26:28 UTC
# semanage fcontext -a -t textrel_shlib_t '/usr/lib/libmpg123.so.0.29.10'
# restorecon -v '/usr/lib/libmpg123.so.0.29.10'


will fix it.


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