Bug 841507 - SELinux is preventing mplayer from 'execmod' accesses on the file /usr/lib/libmpg123.so.0.29.10.
SELinux is preventing mplayer from 'execmod' accesses on the file /usr/lib/li...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-07-19 05:03 EDT by steinach2810
Modified: 2012-07-19 17:26 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-07-19 17:26:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description steinach2810 2012-07-19 05:03:32 EDT
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

: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'
:# 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.
: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 17:26:28 EDT
# 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.