Bug 604498

Summary: SELinux is preventing /sbin/killall5 "sys_ptrace" access .
Product: [Fedora] Fedora Reporter: Jeffrey S Austin <jeffrey.austin>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: carlg, didier.louvet, dwalsh, jeffrey.austin, mgrepl, w8jsa
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:c316a6adeacce8557c52079c0e4fec0fc179c4379e5ea0e12cf222824b878242
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-09 00:28:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeffrey S Austin 2010-06-16 04:23:29 UTC
Summary:

SELinux is preventing /sbin/killall5 "sys_ptrace" access .

Detailed Description:

SELinux denied access requested by pidof. It is not expected that this access is
required by pidof and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:hotplug_t:s0
Target Context                system_u:system_r:hotplug_t:s0
Target Objects                None [ capability ]
Source                        pidof
Source Path                   /sbin/killall5
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           sysvinit-tools-2.87-4.dsf.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-116.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.32.12-115.fc12.x86_64 #1 SMP Fri Apr 30
                              19:46:25 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Wed 16 Jun 2010 12:09:42 AM EDT
Last Seen                     Wed 16 Jun 2010 12:09:42 AM EDT
Local ID                      e834bfba-cf5d-45ed-80d3-1f7216108d12
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1276661382.926:878): avc:  denied  { sys_ptrace } for  pid=28515 comm="pidof" capability=19  scontext=system_u:system_r:hotplug_t:s0 tcontext=system_u:system_r:hotplug_t:s0 tclass=capability

node=(removed) type=SYSCALL msg=audit(1276661382.926:878): arch=c000003e syscall=89 success=no exit=-13 a0=7fffbaf2a6a0 a1=e89610 a2=1000 a3=1000 items=0 ppid=28506 pid=28515 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="pidof" exe="/sbin/killall5" subj=system_u:system_r:hotplug_t:s0 key=(null)



Hash String generated from  catchall,pidof,hotplug_t,hotplug_t,capability,sys_ptrace
audit2allow suggests:

#============= hotplug_t ==============
allow hotplug_t self:capability sys_ptrace;

Comment 1 Daniel Walsh 2010-06-16 17:23:39 UTC
Miroslav add as a dontaudit.  Also add in F13/RHEL6

Comment 2 Miroslav Grepl 2010-06-23 07:56:51 UTC
Fixed in selinux-policy-3.6.32-119.fc12