Bug 975567 - SELinux is preventing /usr/sbin/abrt-server from 'write' accesses on the directory abrt.
SELinux is preventing /usr/sbin/abrt-server from 'write' accesses on the dire...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
18
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:bd11631903d381d013c82b66fa7...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-18 15:18 EDT by kasar8amar
Modified: 2013-06-19 02:35 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-06-19 02:35:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description kasar8amar 2013-06-18 15:18:56 EDT
Description of problem:
SELinux is preventing /usr/sbin/abrt-server from 'write' accesses on the directory abrt.

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

If you believe that abrt-server should be allowed write 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-server /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-server
Source Path                   /usr/sbin/abrt-server
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           abrt-2.1.4-3.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-97.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.5-201.fc18.x86_64 #1 SMP Tue
                              Jun 11 19:40:51 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-06-19 00:45:00 IST
Last Seen                     2013-06-19 00:45:00 IST
Local ID                      568a844a-2651-4449-a5e3-4c00dc839108

Raw Audit Messages
type=AVC msg=audit(1371582900.96:394): avc:  denied  { write } for  pid=3373 comm="abrt-server" name="abrt" dev="dm-1" ino=1966215 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(1371582900.96:394): arch=x86_64 syscall=mkdir success=no exit=EACCES a0=aa8130 a1=1f8 a2=aa8161 a3=2d39312d36302d33 items=0 ppid=504 pid=3373 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=abrt-server exe=/usr/sbin/abrt-server subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)

Hash: abrt-server,abrt_t,initrc_tmp_t,dir,write

audit2allow

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

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

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


Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.5-201.fc18.x86_64
type:           libreport
Comment 1 Miroslav Grepl 2013-06-19 02:35:58 EDT
Please execute

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

Note You need to log in before you can comment on or make changes to this bug.