LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-30-2008, 09:23 AM   #1
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Rep: Reputation: 31
selinux - who uses it, and how did you learn it?


For some time now, I usually just disable selinux on my machines that I setup (redhat / centos / fedora). Mainly due to the fact that it gets in my ways of other programs, and I don't know how to work any of it.

I'd like to learn it, especially if it's worthwhile in making things more secure, but I have no idea where to get started with this.

If it's worthwhile what are some good resources so I can start looking at actually using this?

Thanks,
 
Old 01-30-2008, 09:28 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
well selinux is a highley secure incryptic system built for government use. but it is also used on like other free distros. you loaded it so now you will have to unistall to get rid of it . It is a adon to your regular systm and is embeded now sorry for the lack of info.
 
Old 01-30-2008, 09:32 AM   #3
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
I used to disable it in suse 9.something... possibly even 10.0. I thought the configuration program that came with fedora was simple enough to use, and the pre-configuration was sensible, so I kept it on. If you are behind a firewall and keep to the official repositories... or you don't have any data on the pc that needs securing, I think you can turn it off without worries.
 
Old 01-30-2008, 01:10 PM   #4
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
I saw tons of hits when searching Google:

http://www.google.com/search?q=using...ient=firefox-a
 
Old 01-30-2008, 01:14 PM   #5
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Original Poster
Rep: Reputation: 31
So did I with out much of a newbie beginners guide who doesn't really know what selinux is about.

I was hoping for a place that someone already knew that had great info, where I can hit the ground running.
 
Old 01-30-2008, 01:35 PM   #6
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by neocontrol View Post
So did I with out much of a newbie beginners guide who doesn't really know what selinux is about.

I was hoping for a place that someone already knew that had great info, where I can hit the ground running.
I have never used SELinux, and some of the links I saw appear good enough for a beginner to understand and follow along. sometimes a good effort is enough to get you started.
 
Old 01-31-2008, 10:26 AM   #7
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44
I found a good overview here
http://people.redhat.com/dwalsh/SELi...anageRHEL5.pdf

also

http://fedoraproject.org/wiki/SELinux

Last edited by doublejoon; 01-31-2008 at 10:29 AM.
 
Old 01-31-2008, 10:20 PM   #8
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
You can use "ls -lZ" to examine the context of existing files and directories and use the chcon command to modify the context.

I have a howto that shows how to mount httpd viewable directories via nfs using RHEL 5. The same contexts can be used with the chcon command.
http://pitmanweb.com/blog/index.php?...&c=1&tb=1&pb=1

Just remember that directory and file contexts must be set so that the kernel will allow applications to access directory trees.

You can change the value in /etc/selinux/config: SELINUX=enforcing to SELINUX=disabled and reboot without having to uninstall anything

Last edited by frndrfoe; 01-31-2008 at 10:25 PM. Reason: further info
 
Old 02-01-2008, 12:27 AM   #9
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
I use SELinux at work because of its security.

I learned it by studying for my Red Hat exam. It can be annoying and frustrating, but it's not that difficult once you understand.
 
Old 02-01-2008, 09:42 AM   #10
jphilput
Member
 
Registered: Nov 2007
Posts: 58

Rep: Reputation: 15
I found the book, SELinux: NSA's Open Source Security Enhanced Linux by Bill McCarty, to be very useful.
 
Old 02-01-2008, 02:15 PM   #11
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 366
Blog Entries: 1

Rep: Reputation: 44
The Gentoo team has put out an excellent guide for SELinux. Much of it is Gentoo-centric, but you could still learn quite a bit from it.

http://www.gentoo.org/proj/en/harden...x-handbook.xml

Last edited by jrtayloriv; 02-01-2008 at 02:22 PM.
 
Old 02-01-2008, 03:23 PM   #12
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by jphilput
I found the book, SELinux: NSA's Open Source Security Enhanced Linux by Bill McCarty, to be very useful.
+1

I won't pretend to be a selinux expert, but I read through this book and found it to be quite thorough. If my job depended on me learning selinux well, I believe this book would be among the more valuable resources. (Even if your head does hurt after reading it.)
 
Old 02-01-2008, 07:25 PM   #13
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by neocontrol View Post
I'd like to learn it, especially if it's worthwhile in making things more secure
Turning things around (and while I do like GRSecurity for its strengths) I could argue there is no realistic equivalent in the GNU/Linux world that is maintained and supported like this, gains adaptation and helps distributions get EAL certified. Yes, it is worthwhile enabling. Whats more is that everyone enabling it can help make it better just by running it and adding tickets to the bug tracker when modifying the local policy doesn't make things work. Also, unlike other solutions you get the upstream rulesets so you don't have to build them from scratch (unless you need MLS or like that) to work with SELinux, there's lotsa tools for policy makers and if you use RHEL, CentOS or Fedora the documentation on the RH and Fedora sites should help you get going in no time. Next to that I'd like to plug Prentice Hall's "SELinux by example", definately readable.


Quote:
Originally Posted by Drakeo View Post
well selinux is a highley secure incryptic system built for government use. (..) you loaded it so now you will have to unistall to get rid of it . It is a adon to your regular systm and is embeded now sorry for the lack of info.
You better go read some before you post. Please do.


Quote:
Originally Posted by oskar View Post
If you are behind a firewall and keep to the official repositories... or you don't have any data on the pc that needs securing, I think you can turn it off without worries.
By running it you gain "extra" protection you wouldn't get otherwise and not at that low a cost.
 
Old 02-04-2008, 07:37 PM   #14
dob12460
Red Hat Content Author
 
Registered: Nov 2007
Location: Brisbane, Australia
Distribution: RHEL, Fedora
Posts: 32

Rep: Reputation: 4
You could also check the following for info about SELinux: http://www.redhat.com/docs/manuals/e...-overview.html

Bear in mind that there have been some major changes to SELinux over the last 12 months, so you might want to be careful when choosing which books to spend money on.
 
  


Reply



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
"../system.h :selinux/selinux.h:no such file or directory" ashmita04 Linux From Scratch 4 02-05-2009 03:36 AM
HELP with SELINUX Iamriccati Linux - Newbie 4 12-03-2007 10:19 PM
Selinux mickeyboa Fedora 3 11-12-2007 10:43 PM
SElinux Gortex Linux - General 8 07-19-2007 01:15 AM
Selinux fedorafreak Fedora 2 08-15-2004 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:47 AM.

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