Bug 1157770 - SELinux is preventing cat from 'getattr' accesses on the file /proc/mdstat.
Summary: SELinux is preventing cat from 'getattr' accesses on the file /proc/mdstat.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cf4bf4c454353c0b3525d20e31b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-27 16:34 UTC by Kamil Páral
Modified: 2014-12-03 17:15 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.13.1-99.fc21
Clone Of:
Environment:
Last Closed: 2014-12-03 17:15:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1157657 0 unspecified CLOSED DeviceTreeError: failed to scan disk sdb 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1157774 0 unspecified CLOSED [abrt] mdadm: strcpy(): mdadm killed by SIGSEGV 2021-02-22 00:41:40 UTC

Internal Links: 1157657 1157774 1160424

Description Kamil Páral 2014-10-27 16:34:14 UTC
Description of problem:
I received this at the end of anaconda installation when debugging bug 1157657.
SELinux is preventing cat from 'getattr' accesses on the file /proc/mdstat.

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

If you believe that cat should be allowed getattr access on the mdstat 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 cat /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:proc_mdstat_t:s0
Target Objects                /proc/mdstat [ file ]
Source                        cat
Source Path                   cat
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-90.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.17.1-302.fc21.x86_64 #1 SMP Fri
                              Oct 17 20:05:46 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-10-27 12:30:31 EDT
Last Seen                     2014-10-27 12:30:31 EDT
Local ID                      cd6c74d4-247a-4ab1-8638-4ca58e9d039e

Raw Audit Messages
type=AVC msg=audit(1414427431.98:465): avc:  denied  { getattr } for  pid=2989 comm="cat" path="/proc/mdstat" dev="proc" ino=4026531986 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_mdstat_t:s0 tclass=file permissive=1


Hash: cat,abrt_t,proc_mdstat_t,file,getattr

Version-Release number of selected component:
selinux-policy-3.13.1-90.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.17.1-302.fc21.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2014-11-03 12:25:33 UTC
commit e481cb3bed5f2de4e2ecd2e5c427e5346af62072
Author: Lukas Vrabec <lvrabec>
Date:   Mon Nov 3 13:23:16 2014 +0100

    Allow abrt to read software raid state. BZ (1157770)

Comment 2 Fedora Update System 2014-11-21 12:23:59 UTC
selinux-policy-3.13.1-99.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-99.fc21

Comment 3 Adam Williamson 2014-11-28 03:50:09 UTC
Description of problem:
Did a UEFI install to Intel firmware RAID-0 of an F21 RC1 smoketest live image (basically same package set as RC1) over an existing BIOS install of the same image to the same firmware RAID set.

Version-Release number of selected component:
selinux-policy-3.13.1-92.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.17.4-301.fc21.x86_64
type:           libreport

Comment 4 Fedora Update System 2014-12-03 17:15:19 UTC
selinux-policy-3.13.1-99.fc21 has been pushed to the Fedora 21 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.