Bug 911490

Summary: SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'getattr' accesses on the file /core.2129.
Product: [Fedora] Fedora Reporter: Christian Brauner <christianvanbrauner>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: christianvanbrauner, dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:4ffa7bf3d79862ed1238006788a24914321f8d7f50ee6777dcd50dc445811075
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-24 08:59:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Brauner 2013-02-15 07:39:47 UTC
Description of problem:
SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'getattr' accesses on the file /core.2129.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/core.2129 default label should be etc_runtime_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /core.2129

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that plugin-container should be allowed getattr access on the core.2129 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 pool /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                system_u:object_r:root_t:s0
Target Objects                /core.2129 [ file ]
Source                        pool
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-76.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.6-201.fc18.x86_64 #1 SMP Mon
                              Feb 4 15:54:08 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-02-15 08:38:20 CET
Last Seen                     2013-02-15 08:38:20 CET
Local ID                      447ecb28-fcb6-4598-b968-7580291aec44

Raw Audit Messages
type=AVC msg=audit(1360913900.536:347): avc:  denied  { getattr } for  pid=3055 comm="pool" path="/core.2129" dev="dm-1" ino=2257 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:root_t:s0 tclass=file


type=SYSCALL msg=audit(1360913900.536:347): arch=x86_64 syscall=lstat success=no exit=EACCES a0=7f0d00049430 a1=7f0cfdffa9b0 a2=7f0cfdffa9b0 a3=100007 items=0 ppid=2464 pid=3055 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=2 tty=(none) comm=pool exe=/usr/lib64/xulrunner/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: pool,mozilla_plugin_t,root_t,file,getattr

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t root_t:file getattr;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t root_t:file getattr;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.6-201.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-02-18 16:17:42 UTC
Did this happen while firefox was crashing?

Comment 2 Christian Brauner 2013-02-18 16:23:24 UTC
Yes, it happened while firefox was crashing.

Comment 3 Daniel Walsh 2013-02-18 16:38:20 UTC
Well probably not something we want to allow.  The /core file was created by the kernel, and we do not want to allow plugins to touch the core file.

Comment 4 Christian Brauner 2013-02-18 16:47:25 UTC
Cheers!

Comment 5 Daniel Walsh 2013-02-18 16:53:42 UTC
Miroslav lets add a dontaudit.

Comment 6 Daniel Walsh 2013-02-18 16:56:14 UTC
3054d7bedbd52af28c7adfdd8ceba9872b5720b9 fixes this in Rawhide.

Comment 7 Miroslav Grepl 2013-02-19 13:50:33 UTC
Has been backported.

Comment 8 Fedora Update System 2013-02-22 08:20:49 UTC
selinux-policy-3.11.1-81.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-81.fc18

Comment 9 Fedora Update System 2013-02-24 08:59:57 UTC
selinux-policy-3.11.1-81.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.