Bug 695170

Summary: SELinux is preventing /usr/bin/killall from 'getattr' accesses on the file /usr/sbin/abrtd.
Product: [Fedora] Fedora Reporter: Rahul Sundaram <metherid>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:cc9ec7b19c34f25d031eff659b361283565c6b494bb5a85e0ab2e1262bc23965
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-11 06:50:56 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 Rahul Sundaram 2011-04-11 02:18:48 UTC
SELinux is preventing /usr/bin/killall from 'getattr' accesses on the file /usr/sbin/abrtd.

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

If you believe that killall should be allowed getattr access on the abrtd file 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 killall /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:mock_t:s0-s0:c0.c1023
Target Context                system_u:object_r:abrt_exec_t:s0
Target Objects                /usr/sbin/abrtd [ file ]
Source                        killall
Source Path                   /usr/bin/killall
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           psmisc-22.13-8.fc15
Target RPM Packages           abrt-2.0.0-4.fc15
Policy RPM                    selinux-policy-3.9.16-10.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.x86_64 #1 SMP
                              Wed Mar 30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   6
First Seen                    Wed 06 Apr 2011 03:43:41 PM IST
Last Seen                     Wed 06 Apr 2011 04:21:54 PM IST
Local ID                      c0e91469-9fcb-4e5c-bc69-35eb15547334

Raw Audit Messages
type=AVC msg=audit(1302087114.212:3231): avc:  denied  { getattr } for  pid=16763 comm="killall" path="/usr/sbin/abrtd" dev=dm-1 ino=8210 scontext=unconfined_u:unconfined_r:mock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:abrt_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1302087114.212:3231): arch=x86_64 syscall=stat success=yes exit=0 a0=20044e0 a1=7fffb6896ac0 a2=7fffb6896ac0 a3=0 items=0 ppid=16762 pid=16763 auid=501 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm=killall exe=/usr/bin/killall subj=unconfined_u:unconfined_r:mock_t:s0-s0:c0.c1023 key=(null)

Hash: killall,mock_t,abrt_exec_t,file,getattr

audit2allow

#============= mock_t ==============
allow mock_t abrt_exec_t:file getattr;

audit2allow -R

#============= mock_t ==============
allow mock_t abrt_exec_t:file getattr;

Comment 1 Miroslav Grepl 2011-04-11 06:50:56 UTC

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