Bug 895764 - SELinux is preventing plugin-containe from 'create' accesses on the directory .quakelive.
Summary: SELinux is preventing plugin-containe from 'create' accesses on the directory...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2ab478b1aadd4462cce46de381a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-16 00:21 UTC by Leszek Matok
Modified: 2013-01-25 21:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-25 21:44:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Leszek Matok 2013-01-16 00:21:09 UTC
Description of problem:
Fresh Fedora 18 install.

1. Open Firefox (default browser).

2. Go to http://quakelive.com/

3. Log in, let the game install its plugin, let Firefox restart.

4. After the restart, page hangs on "starting Quake Live plugin...". (Looks like the plugin doesn't even check for errors when creating $HOME/.quakelive)

This alert has been reported half an hour later, long after closing the browser.

I have to say, this is horrible user experience - stuff not working and the alert not being shown when it happens, so normal user would probably ignore this alert and never connect to the non-working  game.
SELinux is preventing plugin-containe from 'create' accesses on the directory .quakelive.

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

If you believe that plugin-containe should be allowed create access on the .quakelive directory 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                .quakelive [ dir ]
Source                        plugin-containe
Source Path                   plugin-containe
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-66.fc18.noarch selinux-
                              policy-3.11.1-67.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.10-4.fc18.i686.PAE #1 SMP Tue
                              Dec 11 18:15:08 UTC 2012 i686 i686
Alert Count                   830
First Seen                    2013-01-16 00:48:06 CET
Last Seen                     2013-01-16 00:50:54 CET
Local ID                      c448e08a-ae70-49fc-a756-e8ee335e4cbc

Raw Audit Messages
type=AVC msg=audit(1358293854.828:1735): avc:  denied  { create } for  pid=7020 comm="plugin-containe" name=".quakelive" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir


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

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_dir_t:dir create;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_dir_t:dir create;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.10-4.fc18.i686.PAE
type:           libreport

Potential duplicate: bug 799313

Comment 1 Daniel Walsh 2013-01-16 21:09:17 UTC
Thanks added fixes for this in Rawhide, c743dfbdbac50354136697a83bf2da3f28de39a1

Miroslav can you back port to F18, F17.

Comment 2 Miroslav Grepl 2013-01-17 11:45:34 UTC
Added.

Comment 3 Fedora Update System 2013-01-21 23:35:52 UTC
selinux-policy-3.11.1-73.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-73.fc18

Comment 4 Fedora Update System 2013-01-23 01:57:32 UTC
Package selinux-policy-3.11.1-73.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-73.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1272/selinux-policy-3.11.1-73.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-01-25 21:45:01 UTC
selinux-policy-3.11.1-73.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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