Bug 830768 - selinux is preventing nslcd from name_connect to socket
selinux is preventing nslcd from name_connect to socket
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy (Show other bugs)
7.0
All Linux
medium Severity medium
: beta
: ---
Assigned To: Daniel Walsh
BaseOS QE Security Team
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-11 07:29 EDT by Ondrej Moriš
Modified: 2013-01-29 04:18 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-06-11 09:50:13 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ondrej Moriš 2012-06-11 07:29:55 EDT
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 09:50:13 EDT
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.