Bug 1158819

Summary: SELinux is preventing /usr/sbin/skdump from 'read' accesses on the file .
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f18da1eadacb4991698469172fd7eff014db9325b54972ee0b0153c2fd6ccbb0
Fixed In Version: selinux-policy-3.12.1-197.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-10 00:55:51 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 Kamil Páral 2014-10-30 10:09:17 UTC
Description of problem:
SELinux is preventing /usr/sbin/skdump from 'read' accesses on the file .

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

If you believe that skdump should be allowed read access on the  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 skdump /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:abrt_t:s0-s0:c0.c1023
Target Context                system_u:object_r:udev_var_run_t:s0
Target Objects                 [ file ]
Source                        skdump
Source Path                   /usr/sbin/skdump
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           libatasmart-0.19-5.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-192.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.16.6-202.fc20.x86_64 #1 SMP Wed
                              Oct 22 20:50:37 UTC 2014 x86_64 x86_64
Alert Count                   3
First Seen                    2013-12-12 17:07:03 CET
Last Seen                     2014-10-30 10:31:42 CET
Local ID                      70421af9-186e-444d-8ab0-84ea5cf34720

Raw Audit Messages
type=AVC msg=audit(1414661502.14:3230): avc:  denied  { read } for  pid=18403 comm="skdump" name="b8:0" dev="tmpfs" ino=26550 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:udev_var_run_t:s0 tclass=file permissive=1


type=AVC msg=audit(1414661502.14:3230): avc:  denied  { open } for  pid=18403 comm="skdump" path="/run/udev/data/b8:0" dev="tmpfs" ino=26550 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:udev_var_run_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1414661502.14:3230): arch=x86_64 syscall=open success=yes exit=ENOMEM a0=7fff0c5a1040 a1=80000 a2=1b6 a3=0 items=0 ppid=18401 pid=18403 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=skdump exe=/usr/sbin/skdump subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)

Hash: skdump,abrt_t,udev_var_run_t,file,read

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.16.6-202.fc20.x86_64
type:           libreport

Potential duplicate: bug 800572

Comment 1 Daniel Walsh 2015-01-02 13:51:15 UTC
f09ffeb069a0189138185c8be91343f610e6db0d allows this in git.

Comment 2 Lukas Vrabec 2015-01-15 15:27:09 UTC
commit f09ffeb069a0189138185c8be91343f610e6db0d
Author: Dan Walsh <dwalsh>
Date:   Fri Jan 2 08:50:53 2015 -0500

    Allow abrt to read udev database

Comment 3 Fedora Update System 2015-01-27 16:56:42 UTC
selinux-policy-3.12.1-197.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-197.fc20

Comment 4 Fedora Update System 2015-01-30 04:41:39 UTC
Package selinux-policy-3.12.1-197.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-197.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1398/selinux-policy-3.12.1-197.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-03-10 00:55:51 UTC
selinux-policy-3.12.1-197.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.