Bug 427584

Summary: Selinux is preventing access to /var/run/nscd/socket
Product: Red Hat Enterprise Linux 5 Reporter: George <gmilas>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.3Keywords: Reopened
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-08 02:18:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
This is the log requested by the tech none

Description George 2008-01-04 21:38:29 UTC
Description of problem:

SELinux is preventing /usr/sbin/setsebool (semanage_t) "connectto" to
/var/run/nscd/socket (initrc_t).

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Walsh 2008-01-05 09:30:59 UTC
This looks like you have nscd running as initrc_t?  Which would be wrong.  You
could have a labeling problem.

ps -eZ | grep nscd

To fix labeling problems you can execute 

touch /.autorelabel; reboot

Please attach the avc messages from /var/log/audit/audit.log

ausearch -m avc  

will gather them

Comment 2 George 2008-03-19 21:03:48 UTC
Created attachment 298591 [details]
This is the log requested by the tech

Comment 3 Daniel Walsh 2008-03-19 21:22:37 UTC
Looks like nscd is mislabeled.

# matchpathcon /usr/sbin/nscd
/usr/sbin/nscd	system_u:object_r:nscd_exec_t:s0

If it does not have this label

# restorecon /usr/sbin/nscd
# service nscd restart

Should fix it.