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.
SELinux is preventing /usr/lib64/nspluginwrapper/plugin-config from 'execute'...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
17
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:0e5807ef5c0b821108b122d9f72...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-07 12:19 EDT by russianred
Modified: 2012-10-08 04:53 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-10-08 04:53:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description russianred 2012-10-07 12:19:28 EDT
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 12:19:31 EDT
Created attachment 623034 [details]
File: type
Comment 2 russianred 2012-10-07 12:19:34 EDT
Created attachment 623035 [details]
File: hashmarkername
Comment 3 Miroslav Grepl 2012-10-08 04:53:24 EDT
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.