Description of problem: SSO: ocsp request from KDC fails in selinux enforce mode, access needs to be allowed by the selinux policy. Version-Release number of selected component (if applicable): selinux-policy-2.4.6-327.el5 nss-tools-3.12.10-8.el5 krb5-server-1.6.1-70.el5 How reproducible: Steps to Reproduce: 1. KDC is set-up on a RHEL 5.8 machine. Configured for kinit with smart card certificates login. kinit with smart card results in error "Client not trusted while getting initial credentials" /var/log/krb5kdclog has this: Aug 24 11:32:15 ipaqavmg.idm.lab.bos.redhat.com krb5kdc[32420](info): AS_REQ (12 etypes {18 17 16 23 1 3 2 11 10 15 12 13}) 10.11.231.57: NEEDED_PREAUTH: aakkiang for krbtgt/EXAMPLE.COM, Additional pre-authentication required Aug 24 11:32:21 ipaqavmg.idm.lab.bos.redhat.com krb5kdc[32420](info): preauth (pkinit-nss) verify failure: Client not trusted Aug 24 11:32:21 ipaqavmg.idm.lab.bos.redhat.com krb5kdc[32420](info): AS_REQ (12 etypes {18 17 16 23 1 3 2 11 10 15 12 13}) 10.11.231.57: PREAUTH_FAILED: aakkiang for krbtgt/EXAMPLE.COM, Client not trusted # ausearch -m avc -ts today ---- time->Fri Aug 24 10:37:02 2012 type=SYSCALL msg=audit(1345819022.637:264): arch=c000003e syscall=42 success=no exit=-13 a0=15 a1=7fff8e1b79f0 a2=10 a3=1 items=0 ppid=1 pid=32100 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm="krb5kdc" exe="/usr/kerberos/sbin/krb5kdc" subj=root:system_r:krb5kdc_t:s0 key=(null) type=AVC msg=audit(1345819022.637:264): avc: denied { name_connect } for pid=32100 comm="krb5kdc" dest=9180 scontext=root:system_r:krb5kdc_t:s0 tcontext=system_u:object_r:pki_ca_port_t:s0 tclass=tcp_socket KDC is not allowed to contact pki_ca_port_t With selinux in permissive mode, kinit with smart card is successful and kerberos credentials issued successfully. Actual results: kinit with smart card login fails. Expected results: kinit with smart card login should be successful. Additional info:
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
Asha, so if you execute # grep krb5kdc /var/log/audit/audit.log |audit2allow -M mypol # semodule -i mypol.pp # setenfoce 1 then it works?
Great.
Marking the bug verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0060.html