Bug 722773 - SELinux is preventing /usr/sbin/abrtd from 'setattr' accesses on the dossier abrt.
Summary: SELinux is preventing /usr/sbin/abrtd from 'setattr' accesses on the dossier ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:81987d46a60...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-17 17:07 UTC by Nicolas Mailhot
Modified: 2011-11-23 14:38 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-23 14:38:22 UTC
Type: ---


Attachments (Terms of Use)

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


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