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 04-20-2011, 09:11 AM   #1
majepiga
LQ Newbie
 
Registered: Apr 2011
Location: France
Posts: 5

Rep: Reputation: 0
SELinux Project


Hi everybody,

I would like to secure my site and I want to implement CAS for SSO, SELinux for the permission into my server and CODA, this last one I have read is not compatible with it, but I don't know if somebody have tried something.

The most important request from HQ is use SELinux, they're conviced is the best one for the user permissions. I tried to look for some info in internet but there almost nothing.

I appreciate very much any help.

Thanks
majepiga

Last edited by majepiga; 04-20-2011 at 09:14 AM.
 
Old 04-20-2011, 01:12 PM   #2
sibe
Member
 
Registered: Apr 2011
Location: Jakarta, Indonesia
Distribution: Fedora, CentOS
Posts: 122

Rep: Reputation: 21
Hi,

if you're serious about it, try these links :

http://danwalsh.livejournal.com/ - Dan Walsh has written many tutorials about SELinux. He actually *wrote* SELinux.

http://oss.tresys.com/projects/refpolicy - If you feel like writing some SELinux policy by yourself. You should.

http://www.engardelinux.org/modules/index/selinux/ - Engarde Linux, a security heavyweight OS built upon SELinux.

SELinux is hard, but then again--as usual--security is just a state of mind; the LSM, a framework which provides an ecosystem for mandatory access control security models, including SELinux and Apparmor, has been compromised. Discovered in 2009, an exploit infamously named as wunderbar emporium has successfully bypassed LSM module in the kernel, effectively turned SELinux security contexts into nothing and gave up root access for free.

Good luck.
 
Old 04-20-2011, 04:46 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
what operating system???
RHEL 6 ,fedora 14,centos 5.6,SL 6 have SELinux built in
 
Old 04-20-2011, 11:08 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
The RHEL Admin manual here has a thorough explanation http://www.linuxtopia.org/online_boo...ion/index.html
 
Old 04-20-2011, 11:55 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Arch wiki also has a good bit of info
https://wiki.archlinux.org/index.php/SELinux

if your OS dose not come with a SE enabled kernel .
 
Old 04-21-2011, 03:58 AM   #6
majepiga
LQ Newbie
 
Registered: Apr 2011
Location: France
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks a lot guys! I'll check all the info suggested, my OS is FEDORA 14.
 
Old 04-29-2011, 06:05 AM   #7
majepiga
LQ Newbie
 
Registered: Apr 2011
Location: France
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Guys,

I would like to try to do something with CODA and SELinux I have read all the given information, but I would like to know your opinion about if it is possible to do a mirroring of the SELinux policies and the CODA policies? I think maybe if I create a script which I can apply my SElinux policies into my filesystem CODA, I could get work these systems together.

Thanks in advance
Majepiga
 
Old 05-02-2011, 09:38 AM   #8
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 232

Rep: Reputation: 8
Quote:
Originally Posted by sibe View Post
Hi,

if you're serious about it, try these links :

http://danwalsh.livejournal.com/ - Dan Walsh has written many tutorials about SELinux. He actually *wrote* SELinux.

http://oss.tresys.com/projects/refpolicy - If you feel like writing some SELinux policy by yourself. You should.

http://www.engardelinux.org/modules/index/selinux/ - Engarde Linux, a security heavyweight OS built upon SELinux.

SELinux is hard, but then again--as usual--security is just a state of mind; the LSM, a framework which provides an ecosystem for mandatory access control security models, including SELinux and Apparmor, has been compromised. Discovered in 2009, an exploit infamously named as wunderbar emporium has successfully bypassed LSM module in the kernel, effectively turned SELinux security contexts into nothing and gave up root access for free.

Good luck.
so what became of the wunderbar emporium exploit?
 
Old 05-02-2011, 12:30 PM   #9
sibe
Member
 
Registered: Apr 2011
Location: Jakarta, Indonesia
Distribution: Fedora, CentOS
Posts: 122

Rep: Reputation: 21
Quote:
Originally Posted by dman777 View Post
so what became of the wunderbar emporium exploit?
A root shell. There's a demo here.
I tried it on kernel 2.6-18-xx once, running SELinux strict policy in enforcing mode, execute the exploit, and it dropped me a root shell after the video's over.
 
Old 05-02-2011, 08:45 PM   #10
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 232

Rep: Reputation: 8
Sorry, I meant is the vulnability still there for the expliot? or has SELinux fixed it?
 
Old 05-03-2011, 06:02 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
The 2009 Julien Tinnes / Tavis Ormandy sendpage vulnerability aka incorrect proto_ops initialization aka CVE-2009-2692 was corrected on August 13th 2009: http://git.kernel.org/?p=linux/kerne...9e8945cf0f1b98. Also to counter misconceptions: sure it was back in the days but nowadays running and maintaining SELinux is not hard anymore and wrt to the LSM compromise: GRSecurity lives outside of the LSM and can't be run in parallel with SELinux but that doesn't make it flawless either: grsec/PaX bypass (April 2011, fixed).
 
Old 05-05-2011, 08:10 PM   #12
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 232

Rep: Reputation: 8
Interesting....Can't GRsecurity live parrellell to SELinux if you disable GRsecurity's RBAC?
 
  


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
postfix and selinux [selinux updates broke postfix?] rjcroasdale Linux - Server 59 12-03-2019 11:17 PM
SELinux errors, SELinux and wine ziphem Linux - Security 10 01-27-2011 04:15 PM
Selinux-how do i find out what domains have permissions on what type?(selinux policy) vishyc88 Linux - Security 2 11-22-2010 04:27 AM
[SOLVED] How to store all files related to a c++ project and build in linux. Like project dir sharanlinux Programming 1 04-29-2010 06:52 AM
"../system.h :selinux/selinux.h:no such file or directory" ashmita04 Linux From Scratch 4 02-05-2009 03:36 AM

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

All times are GMT -5. The time now is 12:12 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