Bug 722773

Summary: SELinux is preventing /usr/sbin/abrtd from 'setattr' accesses on the dossier abrt.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl, nicolas.mailhot
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:81987d46a6097bb271ee70070217110425658c5d4093ba0e121663707b9658b1
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-23 14:38:22 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 Nicolas Mailhot 2011-07-17 17:07:37 UTC
SELinux is preventing /usr/sbin/abrtd from 'setattr' accesses on the dossier abrt.

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

If you believe that abrtd should be allowed setattr 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                system_u:object_r:var_run_t:s0
Target Objects                abrt [ dir ]
Source                        abrtd
Source Path                   /usr/sbin/abrtd
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           abrt-2.0.3-1.fc16
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-4.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.0-0.rc7.git3.1.fc16.x86_64 #1
                              SMP Fri Jul 15 22:56:12 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    dim. 17 juil. 2011 19:05:33 CEST
Last Seen                     dim. 17 juil. 2011 19:06:11 CEST
Local ID                      ce53bff1-0e5c-4719-bf9f-9a37054ca436

Raw Audit Messages
type=AVC msg=audit(1310922371.542:598): avc:  denied  { setattr } for  pid=3936 comm="abrtd" name="abrt" dev=tmpfs ino=15590 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=dir


type=SYSCALL msg=audit(1310922371.542:598): arch=x86_64 syscall=chmod success=yes exit=0 a0=405385 a1=1ed a2=ffffffffffffff80 a3=7fffa0ec5490 items=0 ppid=1 pid=3936 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=abrtd exe=/usr/sbin/abrtd subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)

Hash: abrtd,abrt_t,var_run_t,dir,setattr

audit2allow

#============= abrt_t ==============
allow abrt_t var_run_t:dir setattr;

audit2allow -R

#============= abrt_t ==============
allow abrt_t var_run_t:dir setattr;

Comment 1 Daniel Walsh 2011-11-21 16:38:18 UTC
Is this file in /run/abrt?

restorecon -R -v /run