Hi <br>I have followed the same steps what you are given the information to change the libc.so.6 file label. Now user will be able to login to the system it not showing any error message while login time. But still i am not able do system restart services. Now it showing error message is  unrecognized service.<br>
<div class="gmail_quote">
<br>I have received the following error messages. <br><br>[root@turtle11 ~]# sestatus <br><div class="Ih2E3d">SELinux status:                  enabled<br>SELinuxfs mount:                /selinux<br></div>Current mode:                     permissive<div class="Ih2E3d">
<br>
Mode from config file:          enforcing<br>Policy version:                    21<br></div><div class="Ih2E3d">Policy from config file:         mls<br><br></div><div class="Ih2E3d">[root@turtle11 ~]# service nfs restart<br>
</div>Shutting down NFS mountd:                                   [  OK  ]<br>
Shutting down NFS daemon:                                  [  OK  ]<br>Shutting down NFS quotas:                                    [ OK  ]<br>Shutting down NFS services:                                  [  OK  ]<div class="Ih2E3d">
<br>Starting NFS services:                                           [  OK  ]<br>
Starting NFS quotas:                                              [  OK  ]<br>Starting NFS daemon:                                            [  OK  ]<br>Starting NFS mountd:                                             [  OK  ]<br>

<br></div>[root@turtle11 ~]# setenforce 1<div class="Ih2E3d"><br>[root@turtle11 ~]# sestatus <br>SELinux status:                   enabled<br>SELinuxfs mount:                 /selinux<br>Current mode:                      enforcing<br>
Mode from config file:           enforcing<br>
Policy version:                     21<br>Policy from config file:          mls<br><br></div><div class="Ih2E3d">[root@turtle11 ~]# service nfs restart<br></div>nfs: unrecognized service<br><br>[root@turtle11 ~]# service ldap restart<br>
ldap: unrecognized service<br>
<br>[root@turtle11 ~]# service samba restart<br>samba: unrecognized service<br><br>[root@turtle11 ~]# service named restart<br>named: unrecognized service<br>[root@turtle11 ~]# <br><br>Please help me, what should i do.<br>

<br>Thanks,<br><font color="#888888">prakash</font><div><div></div><div class="Wj3C7c"><br><br><br><br> <br><br><div class="gmail_quote">On Tue, Jun 10, 2008 at 5:37 PM, Stephen Smalley <<a href="mailto:sds@tycho.nsa.gov" target="_blank">sds@tycho.nsa.gov</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div><br>
On Tue, 2008-06-10 at 17:14 +0530, prakash hallalli wrote:<br>
> Hi All<br>
><br>
> I have configured SELinux on ContOS 5.1. I have configured the RBAC<br>
> using MLS (Multilevel Security) Policy.<br>
> Now i am trying to restart the system services and they are not<br>
> restarting and it is throwing some error message.<br>
> I have a question here, with mls policy enabled will i be able to<br>
> restart the system service? If yes then what to do and If no what is<br>
> the reason?<br>
><br>
> Steps to reproduce:<br>
><br>
> 1) MLS Policy configuration.<br>
><br>
> 1. Install selinux-policy-mls<br>
> 2. Set SELINUXTYPE=MLS in /etc/selinux/config file<br>
> 3. touch ./autorelabel; on root's home directory, and reboot the<br>
> machine.<br>
> 4. While machine is rebooting, change the GRUB parameter.<br>
> enforcing=0<br>
><br>
> 2) Now system is in permissive mode and SELinux status is as follows.<br>
><br>
> # sestatus<br>
> SELinux status:                 enabled<br>
> SELinuxfs mount:               /selinux<br>
> Current mode:                    permissive<br>
> Mode from config file:        enforcing<br>
> Policy version:                  21<br>
> policy from config file:        mls<br>
><br>
> 3) Restart the system services and they restart successfully.<br>
><br>
> [root@turtle11 ~]# service nfs restart<br>
> Shutting down NFS mountd:                                   [FAILED]<br>
> Shutting down NFS daemon:                                  [FAILED]<br>
> Shutting down NFS quotas:                                    [FAILED]<br>
> Shutting down NFS services:                                  [FAILED]<br>
> Starting NFS services:                                           [<br>
> OK  ]<br>
> Starting NFS quotas:                                             [<br>
> OK  ]<br>
> Starting NFS daemon:                                           [<br>
> OK  ]<br>
> Starting NFS mountd:                                            [<br>
> OK  ]<br>
><br>
> 4) Now i am setting enforcing mode using setenforce command.<br>
><br>
> root@turtle11 ~]#setenforce 1<br>
> root@turtle11 ~]# sestatus<br>
> SELinux status:             enabled<br>
> SELinuxfs mount:          /selinux<br>
> Current mode:               enforcing<br>
> Mode from config file:    enforcing<br>
> Policy version:              21<br>
> Policy from config file:   mls<br>
><br>
> 5) a) Now system is in enforcing mode and i am trying to restart the<br>
> system service. The restart will result in error message.<br>
><br>
> root@turtle11 ~]#service nfs restart<br>
> /sbin/consoletype: error while loading shared libraries: libc.so.6:<br>
> cannot open shared object  file: No such file or directory<br>
> /sbin/consoletype: error while loading shared libraries: libc.so.6:<br>
> cannot open shared object file: No such file or directory<br>
<br>
</div></div>This suggests that libc.so.6 has the wrong label.  In older versions of<br>
the policy, this was a difference between targeted and strict/mls<br>
policies.  Boot in single-user mode and run fixfiles -F relabel.<br>
<div><br>
> nfs: unrecognized service<br>
><br>
> b) When I trying to login it will show the following error.<br>
><br>
> turtle login: smbldap3<br>
> /bin/login:error while loading shared libraries: libcrypt.so.1:failed<br>
> to map segment from shared object: Permission denied<br>
> /sbin/mingetty: error while loading shared libraries: libc.so.6:<br>
> failed to map segment from shared object: Permission denied<br>
><br>
> c) When using su command.<br>
><br>
> root@turtle11 ~]# su smbldap3<br>
> su: error while loading shared libraries: libpam.so.0: failed to map<br>
> segment from shared object: Permission denied<br>
><br>
> I am not sure what is going on. I referred to many websites and PDFs<br>
> but couldn't get the proper solution.<br>
><br>
> please help me.<br>
><br>
> Thanks<br>
> Prakash.<br>
><br>
><br>
</div>> --<br>
> fedora-selinux-list mailing list<br>
> <a href="mailto:fedora-selinux-list@redhat.com" target="_blank">fedora-selinux-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/fedora-selinux-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-selinux-list</a><br>
<font color="#888888">--<br>
Stephen Smalley<br>
National Security Agency<br>
<br>
</font></blockquote></div><br>
</div></div></div><br>