Stop SELinux from blocking flash using iced-tea firefox plugin


If you see this message when firefox tries to load flash content:

  1. SELinux is preventing the npviewer.bin from using potentially mislabeled files (/home/admica/.icedteaplugin/icedtea-plugin-to-appletviewer).
Source Context: unconfined_u:unconfined_r:nsplugin_t:s0
Target Context: unconfined_u:object_r:user_home_t:s0
Target Objects: /home/admica/.icedteaplugin/icedtea-plugin-to-appletviewer
Source: npviewer.bin
Source Path: /usr/lib64/nspluginwrapper/npviewer.binPort:<Unknown>
Host: somehost
Source RPM Packages: nspluginwrapper-1.1.2-4.fc10
Policy RPM: selinux-policy-3.5.13-26.fc10
Selinux Enabled: True
Policy Type: targetedMLS
Enabled: True
Enforcing Mode: Enforcing
Plugin Name: home_tmp_bad_labels

Then do this:  (replace with your home dir)

$ restorecon -v ‘/home/admica/.icedteaplugin/icedtea-plugin-to-appletviewer’

restorecon reset /home/admica/.icedteaplugin/icedtea-plugin-to-appletviewer context unconfined_u:object_r:user_home_t:s0->system_u:object_r:nsplugin_home_t:s0

and you should get that response and it should work the next time you try as long as you’ve got the right plugin association and the file you’re trying to load really is flash!


Posted on December 6th, by admin in Uncategorized.
Comments Off

Comments are closed.