Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Selinux Enable Failed

    Currently I have using RHEL4 Update 3 Linux and CentOS 4.4 Linux and I have disabled selinux during Kick Start Installation and now i want to enable selinux to both the machines

    I have tried to enable the selinux using GUI tools system-config-securitylevel->selinux->Enabled (Modification Requires Reboot)
    After reboot I have executed the getseboll command
    i am getting the following message
    getsebool: SELinux is disabled

    I have executed following command to enable the selinux
    setenforce 1
    but i am getting the following message only
    setenforce: SELinux is disabled

    I have verified selinux rpm are installed or not
    rpm -qa | grep -i -e selinux
    libselinux-devel-1.19.1-7.2
    selinux-doc-1.14.1-1
    libselinux-1.19.1-7.2
    selinux-policy-targeted-sources-1.17.30-2.140
    selinux-policy-targeted-1.17.30-2.140

    I don't know what is the problem or i have done wrongly
    Can any one help me or guide me to enable the selinux in MY PCs
    Thank in Advance

    Regards
    -S.Balaji

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    This isn't really a server side language issue, more of a computer / pc discussion.
    Lessee, have you checked the /etc/selinux/config file to see if its still sitting at disabled? Oh, I should mention that my (broken) linux box is Fedora, but I think its still the same.
    If its currently set to disabled, you'll need to activate it by changing it to... enforcing or enforced I think it is? The documentation in the file should tell you what it is (or you may need to google it up).
    Don't trust the linux gui for anything. I remember trying to add a user once through it and it jammed up the interface. I was right displeased. Moreso when I found out it was a consistent problem. No big deal though, its 100000x faster to do it from the command line anyway :P
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #3
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Selinux Enable Failed

    Dear All,
    I have changed my selinux configuration manually to enforcing, and i have rebooted my pc.
    After boot-up i am getting the same status "selinux disabled"
    getsebool
    getsebool: SELinux is disabled

    Please verify my selinux configuration details below
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    # enforcing - SELinux security policy is enforced.
    # permissive - SELinux prints warnings instead of enforcing.
    # disabled - SELinux is fully disabled.
    SELINUX=enforcing
    # SELINUXTYPE= type of policy in use. Possible values are:
    # targeted - Only targeted network daemons are protected.
    # strict - Full SELinux protection.
    SELINUXTYPE=targeted

    Regards
    -S.Balaji

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    I found this like for you, looks like it may help:
    http://www.linuxtopia.org/online_boo...h-selinux.html

    Sounds like its having issues with either a broken symlink to the /etc/selinux/config file or its the labeling problem for selinux.
    In the case of the latter, I would recommend you set you're selinux into permissive mode before running an autolabel. Apparently you can really jam things up if something goes wrong otherwise.

    Hope that helps, without being able to perform any trials myself I don't think I can give you more advice; perhaps a linux expert on the forum here could pick up from this point.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • Users who have thanked Fou-Lu for this post:

    balajisundar (11-10-2008)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •