Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th April 2007, 10:16 PM
thequestion Offline
Registered User
 
Join Date: Feb 2007
Posts: 5
problems with selinux config doesnt take.

I'm having troubles with selinux. I edit selinux's config file (etc/selinux/config) to

SELINUX=enforcing (from disabled)

and

SELINUXTYPE=strict (from targeted)

I reboot and check if the changes took place with "selinuxenabled && echo $?" but I get nothing, from what I gather it should say 0 if it is enabled.

so I check back at the config file but it's correct, the changes I made is still there, yet after I reboot yet again the startup doesnt take them.

anyone know what it might be?
Reply With Quote
  #2  
Old 5th April 2007, 12:29 AM
pete_1967 Online
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,929
Did you relabel your filesystem after you enabled SELinux?

"I reboot and check if the changes took place with "selinuxenabled && echo $?" but I get nothing, from what I gather it should say 0 if it is enabled."

Exit status 0 means it's enabled, you won't see any output from your command if and when it is enabled, you'll only see exit status if it's disabled - so, in brief: yes, your SELinux is enabled.
Reply With Quote
  #3  
Old 5th April 2007, 07:40 AM
thequestion Offline
Registered User
 
Join Date: Feb 2007
Posts: 5
no I havent relabled, and I've checked again selinux is not on, I check with sestatus and it says:

sestatus
SELinux status: disabled

[root@fedora policy]# getenforce
Disabled

and my config file.
SELINUX=permissive
SELINUXTYPE=targeted
SETLOCALDEFS=0

I have rebooted several times.

Also when I try to manually start the policy file I get this:

[root@fedora policy]# /usr/sbin/load_policy /etc/selinux/targeted/policy/policy.21
/usr/sbin/load_policy: Warning! Policy file argument (/etc/selinux/targeted/policy/policy.21) is no longer supported, installed policy is always loaded. Continuing...
Reply With Quote
  #4  
Old 5th April 2007, 09:50 AM
pete_1967 Online
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,929
To start with, relabel your system. You have to do it every time you stop/start it or change the policy.
Reply With Quote
Reply

Tags
config, problems, selinux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
system-config-selinux not loading netweblogic Using Fedora 0 6th October 2008 09:34 PM
Problem configuring SElinux using system-config-selinux GUI majdi Servers & Networking 0 6th September 2008 11:33 AM
Its another one of those: It doesnt work on GCC 4.0 problems! lsproc Programming & Packaging 4 11th August 2006 04:53 PM
Apt-Get finds Problems that Yum Doesnt? Raafi Using Fedora 3 3rd April 2006 02:54 AM
SELinux & MySQL (not the standard "it doesnt work" question) c0uchm0nster Servers & Networking 8 6th January 2005 01:09 PM


Current GMT-time: 00:27 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat