Bug 863820

Summary: SELinux is preventing /usr/lib64/nspluginwrapper/plugin-config from 'execute' accesses on the file /opt/jre1.7.0_04-x64/lib/amd64/libnpjp2.so.
Product: [Fedora] Fedora Reporter: russianred
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:0e5807ef5c0b821108b122d9f72dc74f0146015d10d9eb5ba7e8009e6c94d8dd
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-08 08:53:24 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

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.