Bug 863820 - SELinux is preventing /usr/lib64/nspluginwrapper/plugin-config from 'execute' accesses on the file /opt/jre1.7.0_04-x64/lib/amd64/libnpjp2.so.
Summary: SELinux is preventing /usr/lib64/nspluginwrapper/plugin-config from 'execute'...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0e5807ef5c0b821108b122d9f72...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-07 16:19 UTC by russianred
Modified: 2012-10-08 08:53 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-08 08:53:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-07 16:19 UTC, russianred
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-07 16:19 UTC, russianred
no flags Details

Description russianred 2012-10-07 16:19:28 UTC
Additional info:
libreport version: 2.0.14
kernel:         3.5.4-2.fc17.x86_64

description:
:SELinux is preventing /usr/lib64/nspluginwrapper/plugin-config from 'execute' accesses on the file /opt/jre1.7.0_04-x64/lib/amd64/libnpjp2.so.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/opt/jre1.7.0_04-x64/lib/amd64/libnpjp2.so default label should be textrel_shlib_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /opt/jre1.7.0_04-x64/lib/amd64/libnpjp2.so
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that plugin-config should be allowed execute access on the libnpjp2.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 plugin-config /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:mozilla_plugin_config_t:
:                              s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:admin_home_t:s0
:Target Objects                /opt/jre1.7.0_04-x64/lib/amd64/libnpjp2.so [ file
:                              ]
:Source                        plugin-config
:Source Path                   /usr/lib64/nspluginwrapper/plugin-config
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           nspluginwrapper-1.4.4-11.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-149.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.4-2.fc17.x86_64 #1 SMP Wed Sep
:                              26 21:58:50 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-10-07 18:11:43 CEST
:Last Seen                     2012-10-07 18:11:43 CEST
:Local ID                      7579e90e-b7a2-4b9b-8cbf-f853bf97634a
:
:Raw Audit Messages
:type=AVC msg=audit(1349626303.350:201): avc:  denied  { execute } for  pid=23608 comm="plugin-config" path="/opt/jre1.7.0_04-x64/lib/amd64/libnpjp2.so" dev="dm-2" ino=2499193 scontext=unconfined_u:unconfined_r:mozilla_plugin_config_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1349626303.350:201): arch=x86_64 syscall=mmap success=yes exit=139721007480832 a0=0 a1=21e768 a2=5 a3=802 items=0 ppid=23606 pid=23608 auid=1000 uid=1000 gid=1000 euid=0 suid=0 fsuid=0 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4 comm=plugin-config exe=/usr/lib64/nspluginwrapper/plugin-config subj=unconfined_u:unconfined_r:mozilla_plugin_config_t:s0-s0:c0.c1023 key=(null)
:
:Hash: plugin-config,mozilla_plugin_config_t,admin_home_t,file,execute
:
:audit2allow
:
:#============= mozilla_plugin_config_t ==============
:allow mozilla_plugin_config_t admin_home_t:file execute;
:
:audit2allow -R
:
:#============= mozilla_plugin_config_t ==============
:allow mozilla_plugin_config_t admin_home_t:file execute;
:

Comment 1 russianred 2012-10-07 16:19:31 UTC
Created attachment 623034 [details]
File: type

Comment 2 russianred 2012-10-07 16:19:34 UTC
Created attachment 623035 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-10-08 08:53:24 UTC
You will need to fix labeling using the "restorecon" tool. Execute in your terminal

# restorecon -R -v /opt/jre1.7.0_04-x64

should fix this issue.


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