Bug 691089

Summary: SELinux is preventing /usr/kerberos/sbin/klogind from using the 'signal' accesses on a process.
Product: [Fedora] Fedora Reporter: Russell King <rmk>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl, rmk
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:7543e2ee945fee860f1d6c2e63705d94d9c23804ba2a6acea9b81add1a6e8194
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-27 09:38:16 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 Russell King 2011-03-26 17:04:04 UTC
SELinux is preventing /usr/kerberos/sbin/klogind from using the 'signal' accesses on a process.

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

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

Additional Information:
Source Context                system_u:system_r:rlogind_t:s0-s0:c0.c1023
Target Context                system_u:system_r:chkpwd_t:s0-s0:c0.c1023
Target Objects                Unknown [ process ]
Source                        klogind
Source Path                   /usr/kerberos/sbin/klogind
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           krb5-appl-servers-1.0.1-3.fc14.1
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-37.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.37.3+ #1 SMP Tue
                              Mar 8 20:44:41 GMT 2011 i686 i686
Alert Count                   1
First Seen                    Fri 25 Mar 2011 08:07:01 PM GMT
Last Seen                     Fri 25 Mar 2011 08:07:01 PM GMT
Local ID                      67e93d7c-9ae0-4242-b24e-efa1115606f8

Raw Audit Messages
type=AVC msg=audit(1301083621.892:2157): avc:  denied  { signal } for  pid=4701 comm="klogind" scontext=system_u:system_r:rlogind_t:s0-s0:c0.c1023 tcontext=system_u:system_r:chkpwd_t:s0-s0:c0.c1023 tclass=process


type=SYSCALL msg=audit(1301083621.892:2157): arch=i386 syscall=kill success=yes exit=0 a0=ffffeda2 a1=1c a2=b76dbff4 a3=bfe94c7c items=0 ppid=1175 pid=4701 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=klogind exe=/usr/kerberos/sbin/klogind subj=system_u:system_r:rlogind_t:s0-s0:c0.c1023 key=(null)

Hash: klogind,rlogind_t,chkpwd_t,process,signal

audit2allow

#============= rlogind_t ==============
allow rlogind_t chkpwd_t:process signal;

audit2allow -R

#============= rlogind_t ==============
allow rlogind_t chkpwd_t:process signal;

Comment 1 Miroslav Grepl 2011-03-28 11:25:03 UTC
You can allow it for now using

# grep klogind /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp