Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-04-2010, 01:36 PM   #1
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Rep: Reputation: 18
Questions regarding the selinux?

I have few doubts regarding the selinux.Anyone who can help me out :

1.I typed :
[root@localhost ~]# sestatus
SELinux status:                 disabled
[root@localhost ~]#
How can I enable it?


I went to startx and typed:
Selected enforced
Closed the UI.
No Effect.

Question:2 Say, I have SELINUX enabled when I installed it during installation.How to disable it?


I ran:

#setenforce  0
No Effect !!!

Question:3> What exact packages I need for SELinux?
Question:4> I ran:

seinfo -u

No Answer !!!
Am I missing any packages?
Old 05-04-2010, 02:09 PM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

Have a look at this site. Also it would be handy to know what distro you're using. You seem to be posting from Fedora, but what version?

Kind regards,

1 members found this post helpful.
Old 05-05-2010, 12:39 AM   #3
LQ Newbie
Registered: May 2010
Location: Asia/Novosibirsk
Distribution: Fedora 12, Ubuntu 9.10, CentOS 5.3, Slackware
Posts: 2

Rep: Reputation: 0
Originally Posted by linuxunix View Post
I have few doubts regarding the selinux.Anyone who can help me out :

1.I typed :
[root@localhost ~]# sestatus
SELinux status:                 disabled
[root@localhost ~]#
How can I enable it?
Usually I enable/disable SELinux by direct editing /etc/selinux/config:

# 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 - No SELinux policy is loaded.
# SELINUXTYPE= can take one of these two values:
#	targeted - Targeted processes are protected,
#	mls - Multi Level Security protection.
Don't forget to reboot


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix and selinux [selinux updates broke postfix?] rjcroasdale Linux - Server 58 03-15-2010 02:26 AM
Questions about SELinux TheStarLion Linux - Security 16 12-02-2009 04:42 PM
"../system.h :selinux/selinux.h:no such file or directory" ashmita04 Linux From Scratch 4 02-05-2009 03:36 AM
Questions about selinux on slackware okos Slackware 16 12-13-2008 04:04 AM
selinux.h ? DJ Shaji Red Hat 1 03-26-2005 12:57 PM

All times are GMT -5. The time now is 04:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration