Bug 1158819 - SELinux is preventing /usr/sbin/skdump from 'read' accesses on the file .
Summary: SELinux is preventing /usr/sbin/skdump from 'read' accesses on the file .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f18da1eadacb4991698469172fd...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-30 10:09 UTC by Kamil Páral
Modified: 2015-03-10 00:55 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-197.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-10 00:55:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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