Bug 525499 - setroubleshoot: SELinux is preventing the plugin-config from using potentially mislabeled files (/home1/normal/java/jre1.6.0_16/plugin/i386/ns7/libjavaplugin_oji.so).
Summary: setroubleshoot: SELinux is preventing the plugin-config from using poten...
Status: CLOSED DUPLICATE of bug 524635
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:af1e4372bbd...
Depends On:
TreeView+ depends on / blocked
Reported: 2009-09-24 15:35 UTC by David
Modified: 2009-09-24 15:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-09-24 15:37:57 UTC

Attachments (Terms of Use)

Description David 2009-09-24 15:35:24 UTC
The following was filed automatically by setroubleshoot:


SELinux is preventing the plugin-config from using potentially mislabeled files

Detailed Description:

SELinux has denied plugin-config access to potentially mislabeled file(s)
(/home1/normal/java/jre1.6.0_16/plugin/i386/ns7/libjavaplugin_oji.so). This
means that SELinux will not allow plugin-config to use these files. It is common
for users to edit files in their home directory or tmp directories and then move
(mv) them to system directories. The problem is that the files end up with the
wrong file context which confined applications are not allowed to access.

Allowing Access:

If you want plugin-config to access this files, you need to relabel them using
restorecon -v
'/home1/normal/java/jre1.6.0_16/plugin/i386/ns7/libjavaplugin_oji.so'. You might
want to relabel the entire directory using restorecon -R -v

Additional Information:

Source Context                unconfined_u:unconfined_r:nsplugin_config_t:s0-s0:
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                /home1/normal/java/jre1.6.0_16/plugin/i386/ns7/lib
                              javaplugin_oji.so [ file ]
Source                        plugin-config
Source Path                   plugin-config
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-8.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   home_tmp_bad_labels
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31-33.fc12.i686.PAE #1 SMP Thu Sep 17 15:40:35
                              EDT 2009 i686 i686
Alert Count                   1
First Seen                    Thu 24 Sep 2009 08:33:36 AM PDT
Last Seen                     Thu 24 Sep 2009 08:34:47 AM PDT
Local ID                      057a79d5-0d33-4a5b-830c-ba1eea391ec1
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1253806487.392:96): avc:  denied  { execute } for  pid=21413 comm="plugin-config" path="/home1/normal/java/jre1.6.0_16/plugin/i386/ns7/libjavaplugin_oji.so" dev=sda3 ino=73447 scontext=unconfined_u:unconfined_r:nsplugin_config_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file

audit2allow suggests:

#============= nsplugin_config_t ==============
allow nsplugin_config_t user_home_t:file execute;

Comment 1 David 2009-09-24 15:37:57 UTC

*** This bug has been marked as a duplicate of bug 524635 ***

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