Bug 863399 - SELinux is preventing /usr/bin/abrt-dump-oops from 'getattr' accesses on the file /sys/kernel/debug/suspend_stats.
SELinux is preventing /usr/bin/abrt-dump-oops from 'getattr' accesses on the ...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-10-05 07:22 EDT by Dario Castellarin
Modified: 2012-12-20 10:59 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-12-20 10:59:03 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-05 07:22 EDT, Dario Castellarin
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-05 07:22 EDT, Dario Castellarin
no flags Details

  None (edit)
Description Dario Castellarin 2012-10-05 07:22:48 EDT
Description of problem:
This happened while updating abrt

Additional info:
libreport version: 2.0.15
kernel:         3.5.5-2.fc17.x86_64

:SELinux is preventing /usr/bin/abrt-dump-oops from 'getattr' accesses on the file /sys/kernel/debug/suspend_stats.
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:If si desidera sistemare l'etichetta. 
:L'etichetta predefinita di /sys/kernel/debug/suspend_stats dovrebbe essere sysfs_t.
:Then è possibile avviare restorecon.
:# /sbin/restorecon -v /sys/kernel/debug/suspend_stats
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:If si crede che abrt-dump-oops dovrebbe avere possibilità di accesso getattr sui suspend_stats file in modo predefinito.
:Then si dovrebbe riportare il problema come bug.
:E' possibile generare un modulo di politica locale per consentire questo accesso.
:consentire questo accesso per il momento eseguendo:
:# grep abrt-dump-oops /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:Additional Information:
:Source Context                system_u:system_r:abrt_dump_oops_t:s0
:Target Context                system_u:object_r:debugfs_t:s0
:Target Objects                /sys/kernel/debug/suspend_stats [ file ]
:Source                        abrt-dump-oops
:Source Path                   /usr/bin/abrt-dump-oops
:Port                          <Sconosciuto>
:Host                          (removed)
:Source RPM Packages           abrt-addon-kerneloops-2.0.14-1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-150.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.5-2.fc17.x86_64 #1 SMP Wed Oct
:                              3 13:20:37 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-10-05 13:20:38 CEST
:Last Seen                     2012-10-05 13:20:38 CEST
:Local ID                      6a9061ae-872e-4a6f-bc3f-992b7919d266
:Raw Audit Messages
:type=AVC msg=audit(1349436038.452:105): avc:  denied  { getattr } for  pid=5867 comm="abrt-dump-oops" path="/sys/kernel/debug/suspend_stats" dev="debugfs" ino=1184 scontext=system_u:system_r:abrt_dump_oops_t:s0 tcontext=system_u:object_r:debugfs_t:s0 tclass=file
:type=SYSCALL msg=audit(1349436038.452:105): arch=x86_64 syscall=fstat success=yes exit=0 a0=3 a1=7fff29b05190 a2=7fff29b05190 a3=7fff29b04f10 items=0 ppid=5864 pid=5867 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=abrt-dump-oops exe=/usr/bin/abrt-dump-oops subj=system_u:system_r:abrt_dump_oops_t:s0 key=(null)
:Hash: abrt-dump-oops,abrt_dump_oops_t,debugfs_t,file,getattr
:#============= abrt_dump_oops_t ==============
:allow abrt_dump_oops_t debugfs_t:file getattr;
:audit2allow -R
:#============= abrt_dump_oops_t ==============
:allow abrt_dump_oops_t debugfs_t:file getattr;
Comment 1 Dario Castellarin 2012-10-05 07:22:52 EDT
Created attachment 622113 [details]
File: type
Comment 2 Dario Castellarin 2012-10-05 07:22:55 EDT
Created attachment 622115 [details]
File: hashmarkername
Comment 3 Daniel Walsh 2012-10-06 07:53:47 EDT
I just added this access to F18 policy.
Comment 4 Miroslav Grepl 2012-10-08 03:43:06 EDT

commit c7255b32c627bd7c8c23439ff9882b85a7f82264
Author: Miroslav Grepl <mgrepl@redhat.com>
Date:   Mon Oct 8 09:42:31 2012 +0200

    abrt_dump_oops needs to read debugfs
Comment 5 Fedora Update System 2012-10-08 10:07:14 EDT
selinux-policy-3.10.0-153.fc17 has been submitted as an update for Fedora 17.
Comment 6 Fedora Update System 2012-10-08 17:58:09 EDT
Package selinux-policy-3.10.0-153.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-153.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 7 Fedora Update System 2012-12-20 10:59:05 EST
selinux-policy-3.10.0-153.fc17 has been pushed to the Fedora 17 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.