APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

SELinux - love it or leave it

© September 2004 Tony Lawrence
September 2009

SELinux is a Mandatory Access Control system. You can get an idea of how you'd configure this at my Selinux on FC5 article even though it's a few years old, but before you read that, just let me put on my flame proof suit here... ok, I'm ready: I almost always disable SELinux sooner or later.

Yeah, really. I think SELinux is a wonderful, wonderful idea. If used properly, it really can help make your system more secure. My problem is that it doesn't get used properly. So upgrades get done and the people who do the scripts forget all about SELinux and what YOU get is a broken app or a broken system. This happens all too frequently, and unless you are willing to have constant vigilance, SELinux (or lack of due digilence with regard to it), will bite you sooner or later.

So - if you are willing and able to babysit this and be sure everything has been properly reset after updates, yes, use SELinux. If you are like my more typical clients, you may not want to invest the time.

When I do an install, I usually leave SELinux enabled. The first time I get the "everything is broken" call because of SELinux, I have a long conversation about all this and the result usually is to disable it because they don't have time to watch this and aren't willing to pay my time to do it for them.

SELinux: great idea. Not so great in the real world. Not SELinux's fault, just the way things are.

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> SELinux - love it or leave it


Inexpensive and informative Apple related e-books:

El Capitan: A Take Control Crash Course

Take Control of the Mac Command Line with Terminal, Second Edition

Take Control of iCloud

Take Control of Automating Your Mac

Take Control of Upgrading to El Capitan

More Articles by © Tony Lawrence

Sat Sep 19 11:08:22 2009: 6937   Dimble

I use opensuse, so in theory i use apparmor, though i have never actually done anything with it, nor had to configure it to enable some other functionality.

In your opinion does this mean its doing its job in a way that's appropriate (read: largely invisible) for joe six-pack or small businesses?

Sat Sep 19 11:33:48 2009: 6938   TonyLawrence

I have nothing of value to offer on that, sorry.

Sun Sep 20 16:01:42 2009: 6941   BrettLegree

I think the default AppArmor profile only protects CUPS - of course, one could change this.


Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

The easy confidence with which I know another man's religion is folly teaches me to suspect that my own is also. (Mark Twain)

Linux posts

Troubleshooting posts

This post tagged:





Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode