From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1 Description of problem: nscd won't start after enabling and active selinux Version-Release number of selected component (if applicable): selinux-policy-targeted-1.17.30-2.52.1 How reproducible: Always Steps to Reproduce: 1. install RHEL4 2. chkconfig nscd on 3. reboot Actual Results: Starting nscd: [ OK ] audit(1110542462.415:0): avc: denied { read write } for pid=1620 exe=/usr/sbi n/nscd name=passwd dev=md1 ino=465037 scontext=user_u:system_r:nscd_t tcontext=s ystem_u:object_r:file_t tclass=file # ps ax |grep nscd 2247 ttyS0 S+ 0:00 grep nscd # reboot ... Stopping nscd: [FAILED] ... Starting killall: Stopping nscd: [FAILED] [FAILED] Expected Results: Proper start like on selinux disabled: Starting nscd: [ OK ] # ps ax |grep nscd 1616 ? Ssl 0:00 /usr/sbin/nscd 2237 ttyS0 S+ 0:00 grep nscd Additional info:
This looks like a machine that was not installed with SELinux enabled and someone enabled it. If you want to run with SELinux you will need to relable. You can do this by entering the following command. touch /.autorelabel reboot
Strange, I've installed with SELinux enabled, but had already done relabeling after moving /var/log to a different partition (after installing). Now I relabled again and the failure is suddenly gone.