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.
Bug 830768 - selinux is preventing nslcd from name_connect to socket
Summary: selinux is preventing nslcd from name_connect to socket
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: beta
: ---
Assignee: Daniel Walsh
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-11 11:29 UTC by Ondrej Moriš
Modified: 2013-01-29 09:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-11 13:50:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ondrej Moriš 2012-06-11 11:29:55 UTC
Description of problem:

selinux is preventing nslcd from name_connect to socket which prevents nss-pam-ldapd to connect to LDAP server

Version-Release number of selected component (if applicable):

selinux-policy-3.10.0-128.el7.noarch

How reproducible:

100%

Steps to Reproduce:
1. Run /CoreOS/nss-pam-ldapd/Regression/bz518911-Case-insensitivity-in-nss-ldap-creates-problems

  
Actual results:

ausearch -m AVC -ts recent
----
time->Mon Jun 11 07:20:28 2012
type=SYSCALL msg=audit(1339413628.102:480): arch=c000003e syscall=42 success=no exit=-115 a0=b a1=7f47b8000fd0 a2=10 a3=7f47bfd04ea0 items=0 ppid=1 pid=11661 auid=4294967295 uid=55 gid=55 euid=55 suid=55 fsuid=55 egid=55 sgid=55 fsgid=55 tty=(none) ses=4294967295 comm="nslcd" exe="/usr/sbin/nslcd" subj=system_u:system_r:nslcd_t:s0 key=(null)
type=AVC msg=audit(1339413628.102:480): avc:  denied  { name_connect } for  pid=11661 comm="nslcd" dest=389 scontext=system_u:system_r:nslcd_t:s0 tcontext=system_u:object_r:ldap_port_t:s0 tclass=tcp_socket
----
time->Mon Jun 11 07:26:58 2012
type=SYSCALL msg=audit(1339414018.013:505): arch=c000003e syscall=42 success=no exit=-115 a0=b a1=7ff9d0000fd0 a2=10 a3=7ff9d8043ea0 items=0 ppid=1 pid=12177 auid=4294967295 uid=55 gid=55 euid=55 suid=55 fsuid=55 egid=55 sgid=55 fsgid=55 tty=(none) ses=4294967295 comm="nslcd" exe="/usr/sbin/nslcd" subj=system_u:system_r:nslcd_t:s0 key=(null)
type=AVC msg=audit(1339414018.013:505): avc:  denied  { name_connect } for  pid=12177 comm="nslcd" dest=389 scontext=system_u:system_r:nslcd_t:s0 tcontext=system_u:object_r:ldap_port_t:s0 tclass=tcp_socket


Expected results:

<no matches>

Comment 1 Daniel Walsh 2012-06-11 13:50:13 UTC
Turn on the authlogin_nsswitch_use_ldap boolean

setsebool -P authlogin_nsswitch_use_ldap 1


Note You need to log in before you can comment on or make changes to this bug.