Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th June 2012, 09:34 PM
maddaemon Offline
Registered User
 
Join Date: Jan 2012
Location: DE
Posts: 11
linuxchrome
F17, QuakeLive Firefox plugin and SELinux

Hello,

yesterday I upgraded from F16 to F17 (I did fresh re-install because my boot partition was too small). I play QuakeLive which is a game that runs as Firefox plugin. It requires access to ~/.quakelive directory where it downloads maps and stores its configuration. In F16 I had no problems but it seems that F17 has more strict SELinux policy. Unfortunately I've very little experience with SELinux and I don't want to completely disable it.

I tried to fix it by issuing following

# grep plugin-containe /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

every time new alert is reported. However it seems like never ending task.

Could someone give me and advice how to fix this issue please?

Mr. David Miller seems to have exactly same problem.

Here is example SELinux alert that occurs during installation:

Code:
SELinux is preventing /usr/lib64/xulrunner-2/plugin-container from create access on the file manifest.xfer.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that plugin-container should be allowed create access on the manifest.xfer 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-containe /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Context                unconfined_u:object_r:user_home_dir_t:s0
Target Objects                manifest.xfer [ file ]
Source                        plugin-containe
Source Path                   /usr/lib64/xulrunner-2/plugin-container
Port                          <Neznámé>
Host                          kotomi
Source RPM Packages           xulrunner-13.0-1.fc17.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-128.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     kotomi
Platform                      Linux kotomi 3.4.0-1.fc17.x86_64 #1 SMP Sun Jun 3
                              06:35:17 UTC 2012 x86_64 x86_64
Alert Count                   106
First Seen                    Pá*8.*červen*2012,*22:08:53*CEST
Last Seen                     Pá*8.*červen*2012,*22:09:14*CEST
Local ID                      c0a4cc81-2590-42d9-a75f-a86a1fc30bf3

Raw Audit Messages
type=AVC msg=audit(1339186154.103:348): avc:  denied  { create } for  pid=6424 comm="plugin-containe" name="manifest.xfer" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file


type=SYSCALL msg=audit(1339186154.103:348): arch=x86_64 syscall=open success=no exit=EACCES a0=7f45e8f1e0d0 a1=241 a2=1b6 a3=0 items=0 ppid=5379 pid=6424 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=5 comm=plugin-containe exe=/usr/lib64/xulrunner-2/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: plugin-containe,mozilla_plugin_t,user_home_dir_t,file,create

audit2allowunable to open /sys/fs/selinux/policy:  Permission denied


audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
Any advice is appreciated. Thank you.
Reply With Quote
  #2  
Old 24th June 2012, 09:32 AM
graham_alton Offline
Registered User
 
Join Date: Jun 2009
Posts: 5
linuxchrome
Re: F17, QuakeLive Firefox plugin and SELinux

There's already a boolean in the SELinux policy in F17 that will sort you out, however, by default it's switched off. The relevant boolean is mozilla_plugin_enable_homedirs. Booleans in SELinux are a simple way to turn on/off different capabilities provided in the policy.

Try running the following command either as root or via sudo and you should be good to go:

Quote:
setsebool mozilla_plugin_enable_homedirs on
To make the change persistent over reboots run with the -P flag like this (note it takes a lot longer to run the command this way):

Quote:
setsebool -P mozilla_plugin_enable_homedirs on
Reply With Quote
  #3  
Old 24th June 2012, 07:20 PM
maddaemon Offline
Registered User
 
Join Date: Jan 2012
Location: DE
Posts: 11
linuxchrome
Re: F17, QuakeLive Firefox plugin and SELinux

It works. Thank you!

I had to remove ~/.quakelive directory because it was created with user_home_t label when SELinux was turned off (not enforcing mode). Now it has mozilla_home_t label. To be sure I also reinstalled plugin and removed ~/.nv directory.
Reply With Quote
  #4  
Old 25th June 2012, 08:05 AM
graham_alton Offline
Registered User
 
Join Date: Jun 2009
Posts: 5
linuxchrome
Re: F17, QuakeLive Firefox plugin and SELinux

No problem. I play a bit of Quake Live occasionally myself so this little tip will be useful for me too. Guess I may see you around on there some time, my Quake name is "Gibba".
Reply With Quote
  #5  
Old 22nd August 2012, 11:54 AM
fixles Offline
Registered User
 
Join Date: Aug 2012
Location: UK
Posts: 21
linuxfirefox
Re: F17, QuakeLive Firefox plugin and SELinux

Thanks, worked for me too. I had to delete ~/.quakelive as well.
Reply With Quote
Reply

Tags
f17, firefox, plugin, quakelive, selinux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SELinux is preventing /usr/lib/firefox-3.6/firefox from execmod access on the file /u carleto Using Fedora 5 6th November 2011 01:27 AM
[SOLVED] Selinux Issue: Sun Java plugin crashes Firefox, Chrome does nothing on F13 32 bit nyjetshead Using Fedora 2 7th October 2010 08:43 PM
F11 x86_64, Firefox 3.5, flash-plugin i386, mozilla-plugin-config bongoman Using Fedora 21 30th July 2009 02:58 AM
How to Install Java plugin and Macromedia plugin on Firefox 1.5? spongehead Using Fedora 5 12th March 2006 07:20 AM


Current GMT-time: 11:11 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat