Bug 1045876

Summary: SELinux is preventing /usr/sbin/abrtd from 'read' accesses on the directory abrt.
Product: [Fedora] Fedora Reporter: Mukundan Ragavan <nonamedotc>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:2f264dabc21d1c94255b4bbd29c7ccc476a6708a20845d9901fcb11bbc28cf72
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-02 23:19:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mukundan Ragavan 2013-12-22 18:33:52 UTC
Description of problem:
SELinux is preventing /usr/sbin/abrtd from 'read' accesses on the directory abrt.

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

If you believe that abrtd should be allowed read access on the abrt directory 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 abrtd /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                unconfined_u:object_r:rpm_tmp_t:s0
Target Objects                abrt [ dir ]
Source                        abrtd
Source Path                   /usr/sbin/abrtd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           abrt-dbus-2.1.10-1.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-66.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.10-4.fc18.x86_64 #1 SMP Tue
                              Dec 11 18:01:27 UTC 2012 x86_64 x86_64
Alert Count                   6
First Seen                    2013-12-22 13:23:14 EST
Last Seen                     2013-12-22 13:27:56 EST
Local ID                      a3dd2cfe-0b2b-44fb-a646-145cc28b70c8

Raw Audit Messages
type=AVC msg=audit(1387736876.571:352): avc:  denied  { read } for  pid=2524 comm="abrt-dbus" name="abrt" dev="tmpfs" ino=24166 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:rpm_tmp_t:s0 tclass=dir


type=SYSCALL msg=audit(1387736876.571:352): arch=x86_64 syscall=openat success=no exit=EACCES a0=ffffffffffffff9c a1=7f9a5d35d7f0 a2=90800 a3=0 items=0 ppid=1 pid=2524 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=abrt-dbus exe=/usr/sbin/abrt-dbus subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)

Hash: abrtd,abrt_t,rpm_tmp_t,dir,read

audit2allow
audit2allow -R

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.6.10-4.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-01-02 23:19:44 UTC
restorecon -R -v /var/tmp/abrt

Should fix the label, BTW You need to update to a newer release F18 is about to be unsupported.