Bug 1240885

Summary: SELinux is preventing cat from 'read' accesses on the file dmesg_restrict.
Product: [Fedora] Fedora Reporter: Moez Roy <moez.roy>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dominick.grift, dosbre, dwalsh, ehabkost, hk.stefansson, jvwaldo, lvrabec, mail2kristophorus, mgrepl, nexusfc, pablo, plautrba, setha45, taviso, wilf
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:cccc9ca9a58f4e8e999fd5bab7209e728d78fe097a10ea8b0d5f198949ea04aa
Fixed In Version: selinux-policy-3.13.1-105.20.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-15 02:11:07 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 Moez Roy 2015-07-08 04:00:34 UTC
Description of problem:
SELinux is preventing cat from 'read' accesses on the file dmesg_restrict.

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

If you believe that cat should be allowed read access on the dmesg_restrict 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_security_t:s0
Target Objects                dmesg_restrict [ file ]
Source                        cat
Source Path                   cat
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-105.19.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.7-200.fc21.x86_64 #1 SMP Mon
                              Jun 29 22:11:52 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-07-07 20:42:13 PDT
Last Seen                     2015-07-07 20:42:13 PDT
Local ID                      0f6c9d9e-8fc0-4670-aa69-8a55a8773fb4

Raw Audit Messages
type=AVC msg=audit(1436326933.966:1715): avc:  denied  { read } for  pid=29018 comm="cat" name="dmesg_restrict" dev="proc" ino=103371 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_security_t:s0 tclass=file permissive=0


Hash: cat,abrt_t,proc_security_t,file,read

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

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         4.0.7-200.fc21.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2015-07-08 08:11:55 UTC
commit 54e2a15bfa507f8d8dd89ebc5d0543b17157b039
Author: Lukas Vrabec <lvrabec>
Date:   Wed Jul 8 10:11:04 2015 +0200

    Allow abrt_t read all proc files. BZ (1240885)

Comment 2 Fedora Update System 2015-07-21 15:49:59 UTC
selinux-policy-3.13.1-105.20.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-105.20.fc21

Comment 3 Wilf 2015-07-22 23:12:57 UTC
Description of problem:
happens when using yum?

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

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         4.0.6-200.fc21.x86_64+debug
type:           libreport

Comment 4 Fedora Update System 2015-07-29 01:59:14 UTC
Package selinux-policy-3.13.1-105.20.fc21:
* should fix your issue,
* was pushed to the Fedora 21 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.13.1-105.20.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-12049/selinux-policy-3.13.1-105.20.fc21
then log in and leave karma (feedback).

Comment 5 J Waldo 2015-08-01 18:20:17 UTC
Description of problem:
Not sure what happened... Message popped up soon after I switched Sound output from built-in speakers to (already connected) bluetooth headphones... but I'm not sure that had anything to do with it.

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

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         4.0.8-200.fc21.x86_64
type:           libreport

Comment 6 Douglas S. 2015-08-07 21:57:57 UTC
Description of problem:
I was just update with 'sudo yum update'.

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

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

Comment 7 Fedora Update System 2015-08-15 02:11:07 UTC
selinux-policy-3.13.1-105.20.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Eduardo Habkost 2015-08-21 16:30:23 UTC
Description of problem:
This seems to be triggered by ABRT, when it was handling a CPU temperature Machine Check Exception reported by the kernel.

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         4.1.3-100.fc21.x86_64
type:           libreport

Comment 9 Seth Alford 2015-09-07 00:37:14 UTC
Description of problem:
Opened a web page.  Keyboard stopped working, as it sometimes does.  It's an old PS/2 keyboard.  Rebooted.  Got the selinux problem.

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

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         4.0.8-200.fc21.x86_64
type:           libreport