Bug 919652 - SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'create' accesses on the directory POkemon Advanced Adventure.
Summary: SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'create' acc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a61fa43a6d156686e5244578da3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-09 07:47 UTC by odp94
Modified: 2013-03-14 03:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-14 03:01:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description odp94 2013-03-09 07:47:28 UTC
Description of problem:
SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'create' accesses on the directory POkemon Advanced Adventure.

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

If you believe that plugin-container should be allowed create access on the POkemon Advanced Adventure 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_t:s0
Target Objects                POkemon Advanced Adventure [ dir ]
Source                        plugin-containe
Source Path                   /usr/lib64/xulrunner/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner-18.0.2-1.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-78.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.8-202.fc18.x86_64 #1 SMP Fri
                              Feb 15 17:33:07 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-03-09 07:41:38 GMT
Last Seen                     2013-03-09 07:41:38 GMT
Local ID                      bcebbf76-42f3-4138-86ca-dc9fef041c3e

Raw Audit Messages
type=AVC msg=audit(1362814898.648:366): avc:  denied  { create } for  pid=2180 comm="plugin-containe" name=504F6B656D6F6E20416476616E63656420416476656E74757265 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir


type=SYSCALL msg=audit(1362814898.648:366): arch=x86_64 syscall=mkdir success=no exit=EACCES a0=7f6bfb4bd680 a1=1ff a2=7ffff8dc0d78 a3=aaaaaaaaaaaaaaab items=0 ppid=2000 pid=2180 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=2 tty=(none) comm=plugin-containe exe=/usr/lib64/xulrunner/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

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

audit2allow

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

audit2allow -R

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


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.8-202.fc18.x86_64
type:           libreport

Potential duplicate: bug 823699

Comment 1 Daniel Walsh 2013-03-11 14:35:56 UTC
You could create a directory "POkemon Advanced Adventure"  and label it mozilla_home_t.

mkdir ~/"POkemon Advanced Adventure"
chcon -t mozilla_home_t ~/"POkemon Advanced Adventure"

Or you could turn off mozilla plugin protection.

setsebool -P unconfined_mozilla_plugin_transition 0

Comment 2 Daniel Walsh 2013-03-11 14:38:39 UTC
f029221daf9d74ecf7ecbd490672efe9af7852ee fixes this in Rawhide, although it would be nice if all games though their content in a standard directory.

Comment 3 Fedora Update System 2013-03-12 13:55:51 UTC
selinux-policy-3.11.1-85.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2013-3605/selinux-policy-3.11.1-85.fc18

Comment 4 Fedora Update System 2013-03-12 23:35:52 UTC
Package selinux-policy-3.11.1-85.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-85.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3605/selinux-policy-3.11.1-85.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-03-14 03:01:11 UTC
selinux-policy-3.11.1-85.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.