LinuxQuestions.org
Help answer threads with 0 replies.
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 11-05-2009, 08:10 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
What is easier to learn/setup GRsecurity or SELinux?


I'm going to try to setup 2 servers one with Lids and then one with either GRSecurity or SELinux and then compare them.

What is easier to learn/setup GRsecurity or SELinux?

TIA
 
Old 11-05-2009, 10:16 PM   #2
chiragrk
Member
 
Registered: Nov 2009
Location: India
Distribution: Xandros, Ubuntu
Posts: 74

Rep: Reputation: 16
I've never worked on Lids or GRsecurity. As far as SELinux is concerned it comes by default in RHEL (during installation) and from what I know is pretty seriously developed/initiated by the Red Hat folks.
As far as learning goes, its pretty much easy to comprehend/understand and in most cases you wont even have to touch any settings. There's good documentation available on it too. If you plan to setup SELinux on RHEL, do it on RHEL5 instead of RHEL4 (SELinux in RHEL4 appeared broken to us in many places).
 
Old 11-06-2009, 10:24 AM   #3
avalonit
Member
 
Registered: Jun 2008
Posts: 81

Rep: Reputation: 19
Fedora receives latest development so for educational purposes I would recommend it. SELinux is in upstream kernel that's why it is IMHO most promising for the future and that's why Red Hat work with/on it.

http://people.redhat.com/dwalsh/

Lots of useful links from there. Blog is absolutely eye-opening!

Last edited by avalonit; 11-06-2009 at 10:30 AM.
 
Old 11-08-2009, 11:29 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
The RHEL Admin guide has a good description/howto http://www.linuxtopia.org/online_boo...ion/index.html
 
Old 11-09-2009, 10:51 AM   #5
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 abefroman View Post
What is easier to learn/setup GRsecurity or SELinux?
Instead of asking what is easier to use, ask yourself what specific goals you have and then match your feature list with theirs?

Last edited by unSpawn; 11-09-2009 at 02:26 PM.
 
Old 11-10-2009, 02:05 AM   #6
avalonit
Member
 
Registered: Jun 2008
Posts: 81

Rep: Reputation: 19
selinux is already setup on most distros. For the grsecurity it seems you need to patch kernel. Not sure about grsecurity but doesn't seem too mature.

Of course you'd better try both and see what goes easier/better for you. If you want to be on the safe side, SELinux is obviously the answer with existing user base and great promises for the future. No idea, grsecurity may or may not be accepted in linux kernel but nobody can guarantee you anything.
I'm not implying anybody can guarantee you anything about whatever...
 
Old 11-10-2009, 03:21 AM   #7
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 avalonit View Post
selinux is already setup on most distros. For the grsecurity it seems you need to patch kernel.
Gentoo released GRSecurity-enabled kernels a long time ago. And for using SE Linux in vanilla kernels that requires patching too.


Quote:
Originally Posted by avalonit View Post
Not sure about grsecurity but doesn't seem too mature.
With all due respect but what is your opinion based on?
 
Old 11-10-2009, 01:11 PM   #8
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
Quote:
Originally Posted by avalonit View Post
Not sure about grsecurity but doesn't seem too mature.
Grsecurity was started in Feb. 2001 w/ kernel version 2.4.1. And not to be rude but i would say that it is pretty mature. Selinux was released on Dec. 22, 2000.

Selinux is about 3 months older than grsecurity.

As others have said it depends what the goal is. SELinux is good but is lacking certain things that are blocked by the use of LSM. If LSM does not have a hook for a feature then selinux can't protect it. Grsecurity is a kernel patch that does not use LSM so it is not limited to the same constraints.


Here is some reading about problems that LSM introduce and why grsecurity does not use it.

http://www.grsecurity.net/lsm.php



on a more personal note. I have used/currently use both Grsecurity and SELinux. I also have one machine running kernel protection from grsecurity and policy from selinux.

If you have a need for the one shortfall of grsecurity, MLS, (at least that i have found) then selinux is the way to go. (Hence the hybrid above) Otherwise I personally feel that grsecurity can provide much better access control and kernel restrictions. Not to forget _FULL_ pax protection that is included in grsecurity.


look up spendergrsec user channel on youtube. He displays numerous kernel vulns. that either relate to SELinux or the severity of the vuln. is increased by the presence of SELinux.

Quote:
Originally Posted by avalonit View Post
SELinux is obviously the answer with existing user base and great promises for the future
If we assume this then we could also assume that windows is better than linux because of its "existing user base and great promises for the future".

Last edited by slimm609; 11-10-2009 at 01:15 PM.
 
Old 11-12-2009, 05:28 AM   #9
avalonit
Member
 
Registered: Jun 2008
Posts: 81

Rep: Reputation: 19
Hey guys,

although not familiar with grsecurity, my point was that selinux is upstream and grsecurity is not. I have seen great tech die never being accepted upstream so for certain SELinux is more promising. As well being shipped with gentoo doesn't mean you don't have to compile your kernel a grsecurity patch is included with Debian and I guess such patches are available for various other distros, but you still have to compile kernel.

I'm not saying though that it will never be accepted or any other suggestions about grsecurity features. I'll be happy if you show somebody is working on getting grsecurity upstream!

Your comparisons with windows and date of first release are meaningless to me btw. Of course windows will most probably live a lot of time with its great user base, which doesn't mean linux will not (moreover linux is having a great userbase nowadays). And date of release is a bad guarantee for maturity although maturity depends on time and usually is getting better with time (not implying grsecurity is immature nor mature).
 
Old 11-12-2009, 09:40 AM   #10
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
Actually for a long time grsecurity was much more mature then selinux. SELinux was lacking greatly until a few years ago. red hat did not even enable it by default until RHEL 4, even though it was added to the mainline in 2003. I know alot of people that feel that SELinux made it into the kernel mainline because NSA developed it and pushed for it to get into the kernel and red hat took it because of similar reasons.


Here is a link where they took some of the stuff from grsecurity for the mainline.
http://thread.gmane.org/gmane.linux.kernel.lsm/9206

there are a few more but i dont have time to go through git and find them.

Quote:
Originally Posted by avalonit View Post
Your comparisons with windows and date of first release are meaningless to me btw. Of course windows will most probably live a lot of time with its great user base, which doesn't mean linux will not (moreover linux is having a great userbase nowadays). And date of release is a bad guarantee for maturity although maturity depends on time and usually is getting better with time (not implying grsecurity is immature nor mature).
But before that you said

"SELinux is obviously the answer with existing user base and great promises for the future"

so the windows comparison is a very relevent comparison in this case. And the release dates are factual data which is not based on personal assumption so while they are meaningless to you i am guessing that it will assist the OP in his decision making


I was trying in my last post to properly inform the OP as well as teach others not to post on things which they may have little knowledge of and to refrain from making assumptions with little to no facts. The current count of Registered Members is 427,123. There is almost always someone on here that has working knowledge of the application for the question being asked.

Last edited by slimm609; 11-12-2009 at 09:46 AM.
 
Old 11-15-2009, 07:38 AM   #11
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

I think the OP has posted once?

2) At bottom of post I found some links includes a post by someone called abefroman ?

http://www.linuxquestions.org/questi...nabled-635627/

3) Off topic hijack...I was attracted to this post as grsecurity appears to be linked to a person who reported openssl security threat.

http://geeksecurity.blogspot.com/200...ux-kernel.html

regards
 
  


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
Is anyone running grsecurity with SELinux enabled? abefroman Linux - Security 1 04-17-2008 06:52 AM
A comparison between SELinux and grsecurity natasha Linux - Security 1 08-15-2006 09:48 PM
mail server grsecurity-selinux zuessh Linux - Security 1 04-26-2005 01:52 PM
grsecurity vs selinux vs lids XaViaR Linux - Security 3 04-08-2005 02:55 PM
LIDS, GRsecurity, RSBAC, SElinux DJ Cacophony Linux - Security 1 10-01-2004 06:14 PM

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

All times are GMT -5. The time now is 07:54 PM.

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