Bug 744266 - SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'execmod' accesses on the file /usr/lib/flash-plugin/libflashplayer.so.
Summary: SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'execmod' ac...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:af72c41db6e7f64269649a438ea...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-07 17:18 UTC by cornel panceac
Modified: 2011-10-19 04:31 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-3.10.0-40.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-19 04:31:22 UTC
Type: ---


Attachments (Terms of Use)

Description cornel panceac 2011-10-07 17:18:16 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc8.git0.1.fc16.i686.PAE
reason:         SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'execmod' accesses on the file /usr/lib/flash-plugin/libflashplayer.so.
time:           Fri Oct  7 20:18:00 2011

description:
:SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'execmod' accesses on the file /usr/lib/flash-plugin/libflashplayer.so.
:
:*****  Plugin allow_execmod (91.4 confidence) suggests  **********************
:
:If you want to allow npviewer.bin to have execmod access on the libflashplayer.so file
:Then you need to change the label on '/usr/lib/flash-plugin/libflashplayer.so'
:Do
:# semanage fcontext -a -t textrel_shlib_t '/usr/lib/flash-plugin/libflashplayer.so'
:# restorecon -v '/usr/lib/flash-plugin/libflashplayer.so'
:
:*****  Plugin catchall (9.59 confidence) suggests  ***************************
:
:If you believe that npviewer.bin should be allowed execmod access on the libflashplayer.so 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 npviewer.bin /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c102
:                              3
:Target Context                system_u:object_r:lib_t:s0
:Target Objects                /usr/lib/flash-plugin/libflashplayer.so [ file ]
:Source                        npviewer.bin
:Source Path                   /usr/lib/nspluginwrapper/npviewer.bin
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           nspluginwrapper-1.4.4-1.fc16
:Target RPM Packages           flash-plugin-11.0.1.152-release
:Policy RPM                    selinux-policy-3.10.0-36.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.1.0-0.rc8.git0.1.fc16.i686.PAE #1 SMP Tue Oct 4
:                              03:51:34 UTC 2011 i686 i686
:Alert Count                   129
:First Seen                    Wed 05 Oct 2011 09:30:47 AM EEST
:Last Seen                     Fri 07 Oct 2011 08:14:52 PM EEST
:Local ID                      8a584791-a1d1-4f66-9a8e-50946ef1fdea
:
:Raw Audit Messages
:type=AVC msg=audit(1318007692.948:71): avc:  denied  { execmod } for  pid=1778 comm="npviewer.bin" path="/usr/lib/flash-plugin/libflashplayer.so" dev=dm-1 ino=1188034 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1318007692.948:71): arch=i386 syscall=mprotect success=no exit=EACCES a0=b3e000 a1=fc7000 a2=5 a3=bfa960d0 items=0 ppid=1776 pid=1778 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=npviewer.bin exe=/usr/lib/nspluginwrapper/npviewer.bin subj=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: npviewer.bin,nsplugin_t,lib_t,file,execmod
:
:audit2allow
:
:#============= nsplugin_t ==============
:allow nsplugin_t lib_t:file execmod;
:
:audit2allow -R
:
:#============= nsplugin_t ==============
:allow nsplugin_t lib_t:file execmod;
:

Comment 1 Miroslav Grepl 2011-10-10 09:02:01 UTC
Fixed in selinux-policy-3.10.0-39.fc16

chcon -t textrel_shlib_t /usr/lib/flash-plugin/libflashplayer.so

will fix for now

Comment 2 Fedora Update System 2011-10-14 16:18:11 UTC
selinux-policy-3.10.0-40.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-40.fc16

Comment 3 Fedora Update System 2011-10-15 14:31:52 UTC
Package selinux-policy-3.10.0-40.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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.10.0-40.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14363
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-10-19 04:31:22 UTC
selinux-policy-3.10.0-40.fc16 has been pushed to the Fedora 16 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.