Bug 971643 - SELinux is preventing /usr/bin/abrt-dump-oops from 'write' accesses on the directory abrt.
Summary: SELinux is preventing /usr/bin/abrt-dump-oops from 'write' accesses on the di...
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
(Show other bugs)
Version: 18
Hardware: x86_64 Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:93241fb2d29244abcb8c663056b...
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-07 02:52 UTC by ryan.cubicle
Modified: 2013-06-07 06:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-06-07 06:32:47 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description ryan.cubicle 2013-06-07 02:52:14 UTC
Description of problem:
SELinux is preventing /usr/bin/abrt-dump-oops from 'write' accesses on the directory abrt.

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

If you believe that abrt-dump-oops 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-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                unconfined_u:object_r:rpm_script_tmp_t:s0
Target Objects                abrt [ dir ]
Source                        abrt-dump-oops
Source Path                   /usr/bin/abrt-dump-oops
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           abrt-addon-kerneloops-2.0.19-2.fc18.x86_64 abrt-
                              addon-kerneloops-2.1.4-3.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-66.fc18.noarch selinux-
                              policy-3.11.1-97.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                   17
First Seen                    2013-06-07 10:46:27 HKT
Last Seen                     2013-06-07 10:47:48 HKT
Local ID                      90040c05-4cb7-4f67-8c6b-54f31b878ed0

Raw Audit Messages
type=AVC msg=audit(1370573268.959:3509): avc:  denied  { write } for  pid=27173 comm="abrt-dump-oops" name="abrt" dev="dm-1" ino=12190810 scontext=system_u:system_r:abrt_dump_oops_t:s0 tcontext=unconfined_u:object_r:rpm_script_tmp_t:s0 tclass=dir


type=SYSCALL msg=audit(1370573268.959:3509): arch=x86_64 syscall=mkdir success=no exit=EACCES a0=1ac2ab0 a1=1fd a2=1ac2ade a3=2f items=0 ppid=822 pid=27173 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,rpm_script_tmp_t,dir,write

audit2allow

#============= abrt_dump_oops_t ==============
allow abrt_dump_oops_t rpm_script_tmp_t:dir write;

audit2allow -R
require {
	type abrt_dump_oops_t;
}

#============= abrt_dump_oops_t ==============
rpm_manage_script_tmp_files(abrt_dump_oops_t)


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

Comment 1 Miroslav Grepl 2013-06-07 06:32:47 UTC
Please execute

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

will fix the problem.


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