
| This forum is proudly powered by Scientific Linux 6 | SL website Download SL Help Search Members |
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| wearetheborg |
Posted: May 2 2011, 06:00 PM
|
|
![]() SLF Advocate ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 352 Member No.: 18 Joined: 11-April 11 |
I would like to study SELinux and AppArmor, and become proficient in using them.
Are there any guides, tutorials or books for noobies? -------------------- |
|
| thomei |
Posted: May 2 2011, 07:19 PM
|
|
![]() SLF Member ![]() ![]() ![]() Group: Members Posts: 80 Member No.: 38 Joined: 12-April 11 |
guides, tutorials:
Getting Started with SE Linux A step-by-step guide to building a new SELinux policy module AppArmor Admin Guide AppArmor - Ubuntu books: SELinux ISBN: 978-0596007164 -------------------- thomei
think free, think Linux |
|
| wearetheborg |
Posted: May 2 2011, 07:51 PM
|
|
![]() SLF Advocate ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 352 Member No.: 18 Joined: 11-April 11 |
Thanks!
Some of the resources are pretty old and outdated I gather (eg the book) though. -------------------- |
|
| joka |
Posted: May 2 2011, 08:32 PM
|
|
|
SLF Member ![]() ![]() ![]() Group: Members Posts: 121 Member No.: 107 Joined: 28-April 11 |
IMO the best publicly available starting point for SE-Linux is the RHEL 6 SELinux Guide
Also interesting and informative are the articles in Dan Walsh's Blog |
|
| schotty |
Posted: May 3 2011, 07:47 AM
|
|
|
SLF Newbie Group: Members Posts: 7 Member No.: 112 Joined: 30-April 11 |
Although at work right now, I have some off the top of my head that I can pull up here. I am having issues with Internet Exploder here being so old and crippled that some pages heavy on ajax aren't working right. But these should get you going.
If you are completely new to SELinux, read thru all of these top few first. Get the jist of what the hell SELinux really is, how it works, and what and why things are done. The main wiki has some really good breakdowns that are generic to any distro (been a while since I went thru em all), but will get you to understanding alot of things. Then move on to the Fedora/Red Hat ones to start tailoring what you need to what the RH folk and Fedora teams pre-setup for you. IMNSHO, killing off SELinux because of a weird error is a flat out stupid maneuver if you have a system that you want secure in the slightest. The way the policies work, is not too different in end user implementation than a firewall is. And in some ways this is a firewall for applications, rather than packets. If a program is getting pissey, fix it. Its not hard (well, except for wine, but thats another ball of wax ...). But for some reason I see alot of people say to disable it. Don't. Just fix the problems that the troubleshooter warns you of. Have fun! And the links: http://www.nsa.gov/research/selinux/ http://selinuxproject.org/page/Main_Page http://docs.fedoraproject.org/en-US/Fedora/14/html/Security_Guide/index.html http://wiki.centos.org/HowTos/SELinux https://access.redhat.com/knowledge/docs/Red_Hat_Enterprise_Linux/ which points to http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/96/html-single/Security-Enhanced_Linux/index.html http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/96/html-single/Security_Guide/index.html |
|
| U308 |
Posted: May 3 2011, 02:27 PM
|
|
|
SLF Advocate ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 486 Member No.: 32 Joined: 11-April 11 |
Good links, lot's of reading hours
Am I right in saying that we already have some protection out of the box ? Those files in / are all not unconfined meaning of course that they are confined. $ ls -Z firefox -rwxr-xr-x. root root system_u:object_r:bin_t:s0 firefox $ |
|
| wearetheborg |
Posted: May 3 2011, 04:00 PM
|
|
![]() SLF Advocate ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 352 Member No.: 18 Joined: 11-April 11 |
Thanks schotty!
-------------------- |
|
| joka |
Posted: May 3 2011, 07:47 PM
|
|||||
|
SLF Member ![]() ![]() ![]() Group: Members Posts: 121 Member No.: 107 Joined: 28-April 11 |
Regarding Firefox: no. The command above just says that firefox has the default label (security context) of a binary file. The standard SELinux policy of SL or Fedora has no specific rules for Firefox or other desktop applications. Protected out of the box are mainly services (to prevent that a successful exploit gets root access). However, SL 6 has SELinux based sandbox. The command
would start Firefox in an isolated sandbox and in its own nested X server. Try out URL file:///home/MyUserId in sandbox'd Firefox Package that provides sandbox is: policycoreutils-sandbox |
|||||
| AndrewSerk |
Posted: May 3 2011, 09:40 PM
|
|||||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
That is a great tip! ![]() Thanks joka |
|||||
| wearetheborg |
Posted: May 3 2011, 09:45 PM
|
|||||||
![]() SLF Advocate ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 352 Member No.: 18 Joined: 11-April 11 |
That is sweet! -------------------- |
|||||||
| U308 |
Posted: May 4 2011, 09:04 AM
|
|||||||
|
SLF Advocate ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 486 Member No.: 32 Joined: 11-April 11 |
Thank you for that info joka ! |
|||||||
| irlandes |
Posted: May 4 2011, 02:46 PM
|
|
|
SLF Member ![]() ![]() ![]() Group: Members Posts: 57 Member No.: 22 Joined: 11-April 11 |
So, that is what the sandbox packages I saw when I was "shopping" were all about.
|
|
| wearetheborg |
Posted: Sep 18 2012, 02:12 AM
|
|||||||||
![]() SLF Advocate ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 352 Member No.: 18 Joined: 11-April 11 |
Is there a way to pass a directory (say Downloads) where the sandboxed program can download and upload programs to? And to use
do I need to set up SElinux first, or can I just run as is (after package installation of selinux and policycoreutils-sandbox? -------------------- |
|||||||||
![]() |
![]() ![]() ![]() |