If u want to make selinux enforcing than change the file /etc/selinux/config as shown below and system need to restart to make it effective. Restart make take 30 minutes or so.<br><br><br>cat /etc/selinux/config<br># This file controls the state of SELinux on the system.<br>

# SELINUX= can take one of these three values:<br>#     enforcing - SELinux security policy is enforced.<br>#     permissive - SELinux prints warnings instead of enforcing.<br>#     disabled - No SELinux policy is loaded.<br>

SELINUX=<b>enforcing</b><br># SELINUXTYPE= can take one of these two values:<br>#     targeted - Targeted processes are protected,<br>#     mls - Multi Level Security protection.<br>SELINUXTYPE=targeted<br><br><br>On Wed, Jun 13, 2012 at 6:59 PM,  <<a href="mailto:rhelv6-list-request@redhat.com">rhelv6-list-request@redhat.com</a>> wrote:<br>

> Send rhelv6-list mailing list submissions to<br>>        <a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a><br>><br>> To subscribe or unsubscribe via the World Wide Web, visit<br>>        <a href="https://www.redhat.com/mailman/listinfo/rhelv6-list">https://www.redhat.com/mailman/listinfo/rhelv6-list</a><br>

> or, via email, send a message with subject or body 'help' to<br>>        <a href="mailto:rhelv6-list-request@redhat.com">rhelv6-list-request@redhat.com</a><br>><br>> You can reach the person managing the list at<br>

>        <a href="mailto:rhelv6-list-owner@redhat.com">rhelv6-list-owner@redhat.com</a><br>><br>> When replying, please edit your Subject line so it is more specific<br>> than "Re: Contents of rhelv6-list digest..."<br>

><br>><br>> Today's Topics:<br>><br>>   1. Unable to activate SELinux (Simon Reber)<br>>   2. Re: Unable to activate SELinux (Stephen Smalley)<br>>   3. Re: Unable to activate SELinux (Tris Hoar)<br>

>   4. Re: Unable to activate SELinux (Simon Reber)<br>>   5. Re: Unable to activate SELinux (Gabriel S. Craciun)<br>>   6. Re: Unable to activate SELinux (Stephen Smalley)<br>>   7. Re: Unable to activate SELinux (Simon Reber)<br>

><br>><br>> ----------------------------------------------------------------------<br>><br>> Message: 1<br>> Date: Wed, 13 Jun 2012 14:05:35 +0200<br>> From: "Simon Reber" <<a href="mailto:S.Reber@lcsys.ch">S.Reber@lcsys.ch</a>><br>

> To: <<a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a>><br>> Subject: [rhelv6-list] Unable to activate SELinux<br>> Message-ID:<br>>        <<a href="mailto:1209832B38DC214CB373A59426B91DFE010D6BA7@chbsex01.lcsys.ch">1209832B38DC214CB373A59426B91DFE010D6BA7@chbsex01.lcsys.ch</a>><br>

> Content-Type: text/plain;       charset="us-ascii"<br>><br>> Hi all,<br>><br>> I'm having trouble to active SELinux on our RHEL 6 Linux system.<br>> We have some sort of special installation framework (cobbler and puppet)<br>

> and initially disabled SELinux (which is fine)<br>><br>> [output from Kickstart]<br>> ...<br>> selinux --disabled<br>> ...<br>> %packages --excludedocs --nobase<br>> kernel<br>> yum<br>> openssh-server<br>

> openssh-clients<br>> audit<br>> logrotate<br>> tmpwatch<br>> vixie-cron<br>> crontabs<br>> ksh<br>> ntp<br>> perl<br>> bind-utils<br>> sudo<br>> which<br>> sendmail<br>> wget<br>

> redhat-lsb<br>> rsync<br>> authconfig<br>> lsof<br>> unzip<br>> sharutils<br>> logwatch<br>> libacl<br>> nfs-utils<br>> lcsetup<br>> -firstboot<br>> -tftp-server<br>> -system-config-soundcard<br>

> -libselinux-python<br>> -selinux-policy<br>> -libselinux-utils<br>> -selinux-policy-targeted<br>> ...<br>><br>> But for some high Security Risk systems, it's required to turn it on<br>> anyway.<br>

> So I followed the guidance on:<br>> <a href="http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Securi">http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Securi</a><br>> ty-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-Enab<br>

> ling_and_Disabling_SELinux.html to enable SELinux again on these systems<br>><br>> Unfortunately does the system not initiate SELinux correctly nor do I<br>> see any hint where the problem is:<br>><br>> tgl90a-8401 root:/etc/init $ sestatus<br>

> SELinux status:                 disabled<br>> tgl90a-8401 root:/etc/init $ cat /etc/selinux/config<br>> # This file controls the state of SELinux on the system.<br>> # SELINUX= can take one of these three values:<br>

> #     enforcing - SELinux security policy is enforced.<br>> #     permissive - SELinux prints warnings instead of enforcing.<br>> #     disabled - No SELinux policy is loaded.<br>> SELINUX=permissive<br>> # SELINUXTYPE= can take one of these two values:<br>

> #     targeted - Targeted processes are protected,<br>> #     mls - Multi Level Security protection.<br>> SELINUXTYPE=targeted<br>><br>><br>> The only thing I can see is:<br>> tgl90a-8401 root:/etc/init $ cat /var/log/messages<br>

> Jun 13 13:41:30 tgl90a-8401 kernel: SELinux:  Initializing.<br>><br>><br>> Does anybody know if I need additional packages on the system or any<br>> special setting set?<br>>        If tried "permissive" mode with /.autorelable - which didn't<br>

> work either<br>>        I also installed @Base Group to ensure nothing is missing - but<br>> still the same result<br>><br>> I've tried it with the same setup on RHEL 5 which perfectly worked - but<br>

> not on RHEL 6!<br>>        So I'm really looking forward to get some hints/tips<br>><br>> Thanks and all the best,<br>> Si<br>><br>><br>><br>><br>> ------------------------------<br>><br>

> Message: 2<br>> Date: Wed, 13 Jun 2012 08:23:34 -0400<br>> From: Stephen Smalley <<a href="mailto:sds@tycho.nsa.gov">sds@tycho.nsa.gov</a>><br>> To: <a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a><br>

> Subject: Re: [rhelv6-list] Unable to activate SELinux<br>> Message-ID: <<a href="mailto:1339590214.13501.1.camel@moss-pluto.epoch.ncsc.mil">1339590214.13501.1.camel@moss-pluto.epoch.ncsc.mil</a>><br>> Content-Type: text/plain; charset="UTF-8"<br>

><br>> On Wed, 2012-06-13 at 14:05 +0200, Simon Reber wrote:<br>>> -libselinux-python<br>>> -selinux-policy<br>>> -libselinux-utils<br>>> -selinux-policy-targeted<br>>> ...<br>><br>
> Did you install selinux-policy-targeted and the other packages above<br>
> that were originally excluded from your install?<br>><br>> --<br>> Stephen Smalley<br>> National Security Agency<br>><br>><br>><br>> ------------------------------<br>><br>> Message: 3<br>

> Date: Wed, 13 Jun 2012 13:36:03 +0100<br>> From: Tris Hoar <<a href="mailto:trishoar@bgfl.org">trishoar@bgfl.org</a>><br>> To: <a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a><br>> Subject: Re: [rhelv6-list] Unable to activate SELinux<br>

> Message-ID: <<a href="mailto:4FD88933.5000403@bgfl.org">4FD88933.5000403@bgfl.org</a>><br>> Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"<br>><br>> On 13/06/2012 13:05, Simon Reber wrote:<br>

>> Hi all,<br>>><br>>> I'm having trouble to active SELinux on our RHEL 6 Linux system.<br>>> We have some sort of special installation framework (cobbler and puppet)<br>>> and initially disabled SELinux (which is fine)<br>

>><br>>> [output from Kickstart]<br>>> ...<br>>> selinux --disabled<br>>> ...<br>>> %packages --excludedocs --nobase<br>>> kernel<br>>> yum<br>>> openssh-server<br>>> openssh-clients<br>

>> audit<br>>> logrotate<br>>> tmpwatch<br>>> vixie-cron<br>>> crontabs<br>>> ksh<br>>> ntp<br>>> perl<br>>> bind-utils<br>>> sudo<br>>> which<br>>> sendmail<br>

>> wget<br>>> redhat-lsb<br>>> rsync<br>>> authconfig<br>>> lsof<br>>> unzip<br>>> sharutils<br>>> logwatch<br>>> libacl<br>>> nfs-utils<br>>> lcsetup<br>
>> -firstboot<br>
>> -tftp-server<br>>> -system-config-soundcard<br>>> -libselinux-python<br>>> -selinux-policy<br>>> -libselinux-utils<br>>> -selinux-policy-targeted<br>>> ...<br>>><br>>> But for some high Security Risk systems, it's required to turn it on<br>

>> anyway.<br>>> So I followed the guidance on:<br>>> <a href="http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Securi">http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Securi</a><br>

>> ty-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-Enab<br>>> ling_and_Disabling_SELinux.html to enable SELinux again on these systems<br>>><br>>> Unfortunately does the system not initiate SELinux correctly nor do I<br>

>> see any hint where the problem is:<br>>><br>>> tgl90a-8401 root:/etc/init $ sestatus<br>>> SELinux status:                 disabled<br>>> tgl90a-8401 root:/etc/init $ cat /etc/selinux/config<br>

>> # This file controls the state of SELinux on the system.<br>>> # SELINUX= can take one of these three values:<br>>> #     enforcing - SELinux security policy is enforced.<br>>> #     permissive - SELinux prints warnings instead of enforcing.<br>

>> #     disabled - No SELinux policy is loaded.<br>>> SELINUX=permissive<br>>> # SELINUXTYPE= can take one of these two values:<br>>> #     targeted - Targeted processes are protected,<br>>> #     mls - Multi Level Security protection.<br>

>> SELINUXTYPE=targeted<br>>><br>>><br>>> The only thing I can see is:<br>>> tgl90a-8401 root:/etc/init $ cat /var/log/messages<br>>> Jun 13 13:41:30 tgl90a-8401 kernel: SELinux:  Initializing.<br>

>><br>>><br>>> Does anybody know if I need additional packages on the system or any<br>>> special setting set?<br>>>       If tried "permissive" mode with /.autorelable - which didn't<br>

>> work either<br>>>       I also installed @Base Group to ensure nothing is missing - but<br>>> still the same result<br>>><br>>> I've tried it with the same setup on RHEL 5 which perfectly worked - but<br>

>> not on RHEL 6!<br>>>       So I'm really looking forward to get some hints/tips<br>>><br>>> Thanks and all the best,<br>>> Si<br>>><br>>><br>><br>> Are you sure you are installing the packages needed for SE?<br>

><br>> @Base does not include any SE packages. I think you will want<br>> selinux-policy and selinux-policy-targeted as this gives the default SE<br>> policy for the system.<br>><br>> Regards,<br>><br>

> Tris<br>><br>><br>><br>> *************************************************************<br>> This email and any files transmitted with it are confidential<br>> and intended solely for the use of the individual or entity<br>

> to whom they are addressed. If you have received this email<br>> in error please notify <a href="mailto:postmaster@bgfl.org">postmaster@bgfl.org</a><br>><br>> The views expressed within this email are those of the<br>

> individual, and not necessarily those of the organisation<br>> *************************************************************<br>><br>><br>><br>> ------------------------------<br>><br>> Message: 4<br>

> Date: Wed, 13 Jun 2012 14:56:04 +0200<br>> From: "Simon Reber" <<a href="mailto:S.Reber@lcsys.ch">S.Reber@lcsys.ch</a>><br>> To: "Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list"<br>

>        <<a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a>><br>> Subject: Re: [rhelv6-list] Unable to activate SELinux<br>> Message-ID:<br>>        <<a href="mailto:1209832B38DC214CB373A59426B91DFE010D6BA9@chbsex01.lcsys.ch">1209832B38DC214CB373A59426B91DFE010D6BA9@chbsex01.lcsys.ch</a>><br>

> Content-Type: text/plain;       charset="us-ascii"<br>><br>>> On Wed, 2012-06-13 at 14:05 +0200, Simon Reber wrote:<br>>> > -libselinux-python<br>>> > -selinux-policy<br>>> > -libselinux-utils<br>

>> > -selinux-policy-targeted<br>>> > ...<br>>><br>>> Did you install selinux-policy-targeted and the other packages above<br>>> that were originally excluded from your install?<br>> Yes, both packages have been installed:<br>

><br>> tgl90a-8401 root:/etc/init $ rpm -qa | grep selinux-policy<br>> selinux-policy-targeted-3.7.19-126.el6_2.10.noarch<br>> selinux-policy-3.7.19-126.el6_2.10.noarch<br>><br>> Like I said, I strictly followed the instruction on<br>

> <a href="http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Securi">http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Securi</a><br>> ty-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-Enab<br>

> ling_and_Disabling_SELinux.html<br>>        -> In section 5.4.1.1 the packages are stated and all of them<br>> have been installed<br>><br>> tgl90a-8401 root:/etc/init $ rpm -qa | grep sel<br>> libselinux-2.0.94-5.2.el6.x86_64<br>

> libselinux-ruby-2.0.94-5.2.el6.x86_64<br>> libselinux-python-2.0.94-5.2.el6.x86_64<br>> selinux-policy-targeted-3.7.19-126.el6_2.10.noarch<br>> libselinux-utils-2.0.94-5.2.el6.x86_64<br>> selinux-policy-3.7.19-126.el6_2.10.noarch<br>

><br>> tgl90a-8401 root:/etc/init $ rpm -qa | grep set<br>> setserial-2.17-25.el6.x86_64<br>> setools-libs-python-3.3.7-4.el6.x86_64<br>> setuptool-1.19.9-3.el6.x86_64<br>> setools-libs-3.3.7-4.el6.x86_64<br>

> setroubleshoot-plugins-3.0.16-1.el6.noarch<br>> setroubleshoot-3.0.38-2.1.el6.x86_64<br>> setroubleshoot-server-3.0.38-2.1.el6.x86_64<br>><br>> Thanks and all the best,<br>> Simon Reber<br>><br>><br>

><br>> ------------------------------<br>><br>> Message: 5<br>> Date: Wed, 13 Jun 2012 13:16:34 +0000<br>> From: "Gabriel S. Craciun" <<a href="mailto:gcraciun@transfond.ro">gcraciun@transfond.ro</a>><br>

> To: "Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list"<br>>        <<a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a>><br>> Subject: Re: [rhelv6-list] Unable to activate SELinux<br>

> Message-ID:<br>>        <<a href="mailto:18ACE6C30FF1454D93B4C039FB62EA7627DE79FD@SPO-MAIL.stfd.ro">18ACE6C30FF1454D93B4C039FB62EA7627DE79FD@SPO-MAIL.stfd.ro</a>><br>> Content-Type: text/plain; charset="us-ascii"<br>

><br>> Did you check /etc/sysconfig/selinux ????<br>><br>> -----Original Message-----<br>> From: <a href="mailto:rhelv6-list-bounces@redhat.com">rhelv6-list-bounces@redhat.com</a> [mailto:<a href="mailto:rhelv6-list-bounces@redhat.com">rhelv6-list-bounces@redhat.com</a>] On Behalf Of Simon Reber<br>

> Sent: Wednesday, June 13, 2012 3:56 PM<br>> To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list<br>> Subject: Re: [rhelv6-list] Unable to activate SELinux<br>><br>>> On Wed, 2012-06-13 at 14:05 +0200, Simon Reber wrote:<br>

>> > -libselinux-python<br>>> > -selinux-policy<br>>> > -libselinux-utils<br>>> > -selinux-policy-targeted<br>>> > ...<br>>><br>>> Did you install selinux-policy-targeted and the other packages above<br>

>> that were originally excluded from your install?<br>> Yes, both packages have been installed:<br>><br>> tgl90a-8401 root:/etc/init $ rpm -qa | grep selinux-policy selinux-policy-targeted-3.7.19-126.el6_2.10.noarch<br>

> selinux-policy-3.7.19-126.el6_2.10.noarch<br>><br>> Like I said, I strictly followed the instruction on <a href="http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Securi">http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Securi</a><br>

> ty-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-Enab<br>> ling_and_Disabling_SELinux.html<br>>        -> In section 5.4.1.1 the packages are stated and all of them have been installed<br>

><br>> tgl90a-8401 root:/etc/init $ rpm -qa | grep sel<br>> libselinux-2.0.94-5.2.el6.x86_64<br>> libselinux-ruby-2.0.94-5.2.el6.x86_64<br>> libselinux-python-2.0.94-5.2.el6.x86_64<br>> selinux-policy-targeted-3.7.19-126.el6_2.10.noarch<br>

> libselinux-utils-2.0.94-5.2.el6.x86_64<br>> selinux-policy-3.7.19-126.el6_2.10.noarch<br>><br>> tgl90a-8401 root:/etc/init $ rpm -qa | grep set<br>> setserial-2.17-25.el6.x86_64<br>> setools-libs-python-3.3.7-4.el6.x86_64<br>

> setuptool-1.19.9-3.el6.x86_64<br>> setools-libs-3.3.7-4.el6.x86_64<br>> setroubleshoot-plugins-3.0.16-1.el6.noarch<br>> setroubleshoot-3.0.38-2.1.el6.x86_64<br>> setroubleshoot-server-3.0.38-2.1.el6.x86_64<br>

><br>> Thanks and all the best,<br>> Simon Reber<br>><br>> _______________________________________________<br>> rhelv6-list mailing list<br>> <a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a><br>

> <a href="https://www.redhat.com/mailman/listinfo/rhelv6-list">https://www.redhat.com/mailman/listinfo/rhelv6-list</a><br>> -------------------------------- NOTICE OF CONFIDENTIALITY This E-mail message and its attachments (if any) are intended solely for the use of the addressees hereof. In addition, this message and the attachments (if any) may contain information that is confidential, privileged and exempt from disclosure under applicable law. If you are not the intended recipient of this message, you are prohibited from reading, disclosing, reproducing, distributing, disseminating or otherwise using this transmission. Delivery of this message to any person other than the intended recipient is not intended to waive any right or privilege. If you have received this message in error, please promptly notify the sender by reply E-mail and immediately delete this message from your system.<br>

><br>><br>><br>> ------------------------------<br>><br>> Message: 6<br>> Date: Wed, 13 Jun 2012 09:20:17 -0400<br>> From: Stephen Smalley <<a href="mailto:sds@tycho.nsa.gov">sds@tycho.nsa.gov</a>><br>

> To: "Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list"<br>>        <<a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a>><br>> Subject: Re: [rhelv6-list] Unable to activate SELinux<br>

> Message-ID: <<a href="mailto:1339593617.13501.6.camel@moss-pluto.epoch.ncsc.mil">1339593617.13501.6.camel@moss-pluto.epoch.ncsc.mil</a>><br>> Content-Type: text/plain; charset="UTF-8"<br>><br>> On Wed, 2012-06-13 at 14:56 +0200, Simon Reber wrote:<br>

>> Yes, both packages have been installed:<br>>><br>>> tgl90a-8401 root:/etc/init $ rpm -qa | grep selinux-policy<br>>> selinux-policy-targeted-3.7.19-126.el6_2.10.noarch<br>>> selinux-policy-3.7.19-126.el6_2.10.noarch<br>

><br>> What happens if you try to manually load the policy now?<br>> load_policy -i<br>><br>> --<br>> Stephen Smalley<br>> National Security Agency<br>><br>><br>><br>> ------------------------------<br>

><br>> Message: 7<br>> Date: Wed, 13 Jun 2012 15:29:07 +0200<br>> From: "Simon Reber" <<a href="mailto:S.Reber@lcsys.ch">S.Reber@lcsys.ch</a>><br>> To: "Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list"<br>

>        <<a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a>><br>> Subject: Re: [rhelv6-list] Unable to activate SELinux<br>> Message-ID:<br>>        <<a href="mailto:1209832B38DC214CB373A59426B91DFE010D6BAB@chbsex01.lcsys.ch">1209832B38DC214CB373A59426B91DFE010D6BAB@chbsex01.lcsys.ch</a>><br>

> Content-Type: text/plain;       charset="us-ascii"<br>><br>>> Did you check /etc/sysconfig/selinux ????<br>> File is there and from my point of view correctly configured:<br>><br>> tgl90a-8401 root:/etc/init $ ls -al /etc/sysconfig/selinux<br>

> lrwxrwxrwx 1 root root 17 Jun 13 12:58 /etc/sysconfig/selinux -><br>> ../selinux/config<br>> tgl90a-8401 root:/etc/init $ cat /etc/sysconfig/selinux<br>> # This file controls the state of SELinux on the system.<br>

> # SELINUX= can take one of these three values:<br>> #     enforcing - SELinux security policy is enforced.<br>> #     permissive - SELinux prints warnings instead of enforcing.<br>> #     disabled - No SELinux policy is loaded.<br>

> SELINUX=permissive<br>> # SELINUXTYPE= can take one of these two values:<br>> #     targeted - Targeted processes are protected,<br>> #     mls - Multi Level Security protection.<br>> SELINUXTYPE=targeted<br>

><br>><br>> Cheers,<br>> Si<br>><br>><br>><br>> ------------------------------<br>><br>> _______________________________________________<br>> rhelv6-list mailing list<br>> <a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a><br>

> <a href="https://www.redhat.com/mailman/listinfo/rhelv6-list">https://www.redhat.com/mailman/listinfo/rhelv6-list</a><br>><br>><br>> End of rhelv6-list Digest, Vol 20, Issue 6<br>> ******************************************<br>

<br><br><br>-- <br>MANOJ KUMAR<br>SUBROTO PARK<br>NEW DELHI<br>Mob No 09911130165<br>