Bug 679886

Summary: SELinux is preventing /usr/bin/perl from using the 'sigkill' accesses on a process.
Product: [Fedora] Fedora Reporter: Klaus Lichtenwalder <klic>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:aae687274a129b908137bed971b56a7a878be422f0cb4bda6d5b80a0e217cc78
Fixed In Version: selinux-policy-3.9.7-37.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-22 18:52:14 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 Klaus Lichtenwalder 2011-02-23 19:07:46 UTC
SELinux is preventing /usr/bin/perl from using the 'sigkill' accesses on a process.

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

If you believe that perl should be allowed sigkill access on processes labeled amavis_t 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 amavisd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:amavis_t:s0
Target Context                system_u:system_r:amavis_t:s0
Target Objects                Unknown [ process ]
Source                        amavisd
Source Path                   /usr/bin/perl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           perl-5.12.3-141.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-31.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.x86_64
                              #1 SMP Mon Feb 7 07:06:44 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Wed 23 Feb 2011 05:35:20 AM CET
Last Seen                     Wed 23 Feb 2011 05:35:20 AM CET
Local ID                      ab58a8de-a0ec-43ac-9fee-54244312e755

Raw Audit Messages
type=AVC msg=audit(1298435720.150:65787): avc:  denied  { sigkill } for  pid=15879 comm="amavisd" scontext=system_u:system_r:amavis_t:s0 tcontext=system_u:system_r:amavis_t:s0 tclass=process


type=SYSCALL msg=audit(1298435720.150:65787): arch=x86_64 syscall=kill success=no exit=EACCES a0=f6a a1=9 a2=7ffffffffffffffe a3=204c4c494b474953 items=0 ppid=15872 pid=15879 auid=0 uid=486 gid=481 euid=486 suid=486 fsuid=486 egid=481 sgid=481 fsgid=481 tty=(none) ses=395 comm=amavisd exe=/usr/bin/perl subj=system_u:system_r:amavis_t:s0 key=(null)

Hash: amavisd,amavis_t,amavis_t,process,sigkill

audit2allow

#============= amavis_t ==============
allow amavis_t self:process sigkill;

audit2allow -R

#============= amavis_t ==============
allow amavis_t self:process sigkill;

Comment 1 Daniel Walsh 2011-02-23 19:52:56 UTC
Add this to F13/F14/RHEL6 please

Comment 2 Miroslav Grepl 2011-02-25 11:20:20 UTC
Fixed in selinux-policy-3.9.7-32.fc14

Comment 3 Fedora Update System 2011-03-18 15:07:13 UTC
selinux-policy-3.9.7-34.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-34.fc14

Comment 4 Fedora Update System 2011-03-21 08:45:12 UTC
selinux-policy-3.9.7-37.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-37.fc14

Comment 5 Fedora Update System 2011-03-22 18:50:47 UTC
selinux-policy-3.9.7-37.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.