Bug 427584 - Selinux is preventing access to /var/run/nscd/socket
Summary: Selinux is preventing access to /var/run/nscd/socket
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: selinux-policy
Version: 5.3
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-04 21:38 UTC by George
Modified: 2008-04-08 02:18 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-08 02:18:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
This is the log requested by the tech (2.40 MB, text/plain)
2008-03-19 21:03 UTC, George
no flags Details

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.


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