Bug 946916

Summary: SELinux is preventing /usr/sbin/abrt-dbus from 'read' accesses on the directory abrt.
Product: [Fedora] Fedora Reporter: Dandim <dan.dim>
Component: abrtAssignee: abrt <abrt-devel-list>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: abrt-devel-list, dominick.grift, dvlasenk, dwalsh, iprikryl, jfilak, jmoskovc, mgrepl, mmilata, mtoman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c9590fe349c508cb2ddb6c4697c37857ffec8f90868f046e9011168bea9bacb2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-04 21:40:15 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 Dandim 2013-03-31 23:13:34 UTC
Description of problem:
Open ABRT app.
Click "All problems"
SELinux is preventing /usr/sbin/abrt-dbus from 'read' accesses on the directory abrt.

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

If you believe that abrt-dbus 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 abrt-dbus /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:initrc_tmp_t:s0
Target Objects                abrt [ dir ]
Source                        abrt-dbus
Source Path                   /usr/sbin/abrt-dbus
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           abrt-dbus-2.1.2-2.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-86.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.4-202.fc18.x86_64 #1 SMP Thu
                              Mar 21 17:02:20 UTC 2013 x86_64 x86_64
Alert Count                   3
First Seen                    2013-04-01 01:08:38 CEST
Last Seen                     2013-04-01 01:11:46 CEST
Local ID                      3b4f1a9f-1dbb-488d-aa57-84fd32f23543

Raw Audit Messages
type=AVC msg=audit(1364771506.719:1450): avc:  denied  { read } for  pid=18345 comm="abrt-dbus" name="abrt" dev="dm-1" ino=524379 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=dir


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

Hash: abrt-dbus,abrt_t,initrc_tmp_t,dir,read

audit2allow

#============= abrt_t ==============
allow abrt_t initrc_tmp_t:dir read;

audit2allow -R
require {
	type initrc_tmp_t;
	type abrt_t;
	class dir read;
}

#============= abrt_t ==============
allow abrt_t initrc_tmp_t:dir read;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.4-202.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-04-02 09:30:59 UTC
Does

# restorecon -R -v /var/tmp/abrt

help?

Comment 2 Dandim 2013-04-02 10:54:32 UTC
Yes. This command help for me. :-) Thanks.

Comment 3 Daniel Walsh 2013-04-04 21:40:15 UTC

*** This bug has been marked as a duplicate of bug 946919 ***