Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-03-2008, 07:46 AM   PM User | #1
balajisundar
New to the CF scene

 
Join Date: Oct 2008
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
balajisundar is an unknown quantity at this point
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
balajisundar is offline   Reply With Quote
Old 11-03-2008, 11:03 AM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
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
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Old 11-06-2008, 06:27 AM   PM User | #3
balajisundar
New to the CF scene

 
Join Date: Oct 2008
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
balajisundar is an unknown quantity at this point
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
balajisundar is offline   Reply With Quote
Old 11-06-2008, 08:13 AM   PM User | #4
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
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.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Users who have thanked Fou-Lu for this post:
balajisundar (11-10-2008)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:20 PM.


Advertisement
Log in to turn off these ads.