Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionAsha Akkiangady
2011-11-07 23:05:39 UTC
Description of problem:
SSO: Selinux error prevent login to virtual terminal (CTRL+ALT+F2) with a smart card.
Version-Release number of selected component (if applicable):
pam_pkcs11-0.6.2-11.1.el6.x86_64
coolkey-1.1.0-19.el6.x86_64
pam_krb5-2.3.11-9.el6.x86_64
authconfig-6.1.12-5.el6.x86_64
How reproducible:
Steps to Reproduce:
1. Desktop is configured with smart card authentication. User can login to desktop successfully with a smart card.
2. Login to virtual terminal (CTRL + ALT + F2) with the same smart card,
Terminal display:
Red Hat Enterprise Linux Client release 6.2 Beta (Santiago)
Kernel 2.6.32-216.el6.x86_64 on an x86_64
dhcp231-57 login: aakkiang
Found the Smart card.
Welcome Asha!
Smart card PIN:
ERROR:pam_pkcs11.c:492: verify_certificate() failed:
ERROR:pam_pkcs11.c:544: no valid certificate which meets all requirements found
Login incorrect
Actual results:
Unable to login with selinux policy enforcing.
This selinux error is thrown:
Nov 7 17:51:13 XXXX kernel: type=1400 audit(1320706273.000:15): avc: denied { name_connect } for pid=3986 comm="login" dest=9180 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:pki_ca_port_t:s0 tclass=tcp_socket
Expected results:
User should be able to login with a smart card.
Additional info:
With selinux in permissive mode login to virtual terminal is successful.
Comment 2Chandrasekar Kannan
2011-11-07 23:14:30 UTC
So, is this working in enforcing mode with
# grep local_login /var/log/audit/audit.log |audit2allow -M mylocallogin
# semodule -i mylocallogin.pp
If this is a regression, in which release did it work?
I don't know how, I don't believe we removed this access, and do not see this access in Fedora. In RHEL5 login programs were not confined.
You can prove me wrong if this returns values on 6.0 or 6.1
sesearch -A -s local_login_t -t pki_ca_port_t -p name_connect -C
Should this port be allowed to all login programs?
I expect that NSS is performing OCSP verification on certificates. This could get messy, as OCSP-over-HTTP doesn't run on a predefined port (though IIRC Dogtag defaults to a combination of 9180 and 9443).
Tested with selinux-policy-3.7.19-126.el6, login to virtual terminal (CTRL+ALT+F2) with a smart card is successful. No AVC denied messages.
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-2011-1511.html
Description of problem: SSO: Selinux error prevent login to virtual terminal (CTRL+ALT+F2) with a smart card. Version-Release number of selected component (if applicable): pam_pkcs11-0.6.2-11.1.el6.x86_64 coolkey-1.1.0-19.el6.x86_64 pam_krb5-2.3.11-9.el6.x86_64 authconfig-6.1.12-5.el6.x86_64 How reproducible: Steps to Reproduce: 1. Desktop is configured with smart card authentication. User can login to desktop successfully with a smart card. 2. Login to virtual terminal (CTRL + ALT + F2) with the same smart card, Terminal display: Red Hat Enterprise Linux Client release 6.2 Beta (Santiago) Kernel 2.6.32-216.el6.x86_64 on an x86_64 dhcp231-57 login: aakkiang Found the Smart card. Welcome Asha! Smart card PIN: ERROR:pam_pkcs11.c:492: verify_certificate() failed: ERROR:pam_pkcs11.c:544: no valid certificate which meets all requirements found Login incorrect Actual results: Unable to login with selinux policy enforcing. This selinux error is thrown: Nov 7 17:51:13 XXXX kernel: type=1400 audit(1320706273.000:15): avc: denied { name_connect } for pid=3986 comm="login" dest=9180 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:pki_ca_port_t:s0 tclass=tcp_socket Expected results: User should be able to login with a smart card. Additional info: With selinux in permissive mode login to virtual terminal is successful.