Bug 1069161

Summary: SELinux is preventing /usr/lib64/firefox/plugin-container from 'getattr' accesses on the file /proc/kmsg.
Product: [Fedora] Fedora Reporter: Zoltan Hoppar <hopparz>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:711683652d234ad4c80dc9d4175ad0ae4c4ec2422a6b4f40be4d1dd068a746d9
Fixed In Version: selinux-policy-3.12.1-135.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-21 09:25:28 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 Zoltan Hoppar 2014-02-24 11:32:42 UTC
Description of problem:
SELinux is preventing /usr/lib64/firefox/plugin-container from 'getattr' accesses on the file /proc/kmsg.

*****  Plugin mozplugger (99.1 confidence) suggests   ************************

If ha szeretné használni a plugin csomagot
Then ki kell kapcsolnia az SELinux vezérléseit a Firefox pluginjain.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

*****  Plugin catchall (1.81 confidence) suggests   **************************

If ha úgy érzi, hogy plugin-container számára engedélyezni kell getattr hozzáférést itt: kmsg file alapértelmezésben.
Then ezt jelentenie kell, mint hibát.
Hogy engedélyezze ezt a hozzáférést előállíthat egy helyi szabálymodult.
Do
engedélyezheti ezt a hozzáférést most ezzel:
# 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                system_u:object_r:proc_kmsg_t:s0
Target Objects                /proc/kmsg [ file ]
Source                        plugin-containe
Source Path                   /usr/lib64/firefox/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           firefox-27.0-1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-122.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.13.3-201.fc20.x86_64 #1 SMP Fri
                              Feb 14 19:08:32 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-02-24 11:58:17 CET
Last Seen                     2014-02-24 11:58:17 CET
Local ID                      9abe75e9-3ac2-4ac8-ae9a-d669e25836dc

Raw Audit Messages
type=AVC msg=audit(1393239497.250:395): avc:  denied  { getattr } for  pid=2165 comm="plugin-containe" path="/proc/kmsg" dev="proc" ino=4026532033 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_kmsg_t:s0 tclass=file


type=SYSCALL msg=audit(1393239497.250:395): arch=x86_64 syscall=stat success=no exit=EACCES a0=7fe31d6e5808 a1=7fe31d639c00 a2=7fe31d639c00 a3=7fe31d6e5040 items=0 ppid=2051 pid=2165 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=plugin-containe exe=/usr/lib64/firefox/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: plugin-containe,mozilla_plugin_t,proc_kmsg_t,file,getattr

Additional info:
reporter:       libreport-2.1.12
hashmarkername: setroubleshoot
kernel:         3.13.3-201.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-02-24 21:20:58 UTC
commit 4891b3b71e58daa770922999026aa310d3433d91
 adds a dontaudit for this.

Comment 2 Fedora Update System 2014-03-12 07:19:29 UTC
selinux-policy-3.12.1-135.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-135.fc20

Comment 3 Fedora Update System 2014-03-13 05:10:37 UTC
Package selinux-policy-3.12.1-135.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-135.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-3813/selinux-policy-3.12.1-135.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-03-21 09:25:28 UTC
selinux-policy-3.12.1-135.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.