Re: in defense of SELinux

David Mercer <[email protected]>
Newsgroups gmane.comp.capabilities.general
Message-ID <CADpjbE2Mreka=Cn7KK1J7M8E5_qwhBewr87fnzqGe9QqMRq2dQ@mail.gmail.com>
On Tue, Oct 22, 2013 at 4:56 PM, Jed Donnelley <capability-iCFHVraI1K1Wk0Htik3J/[email protected]>wrote:

>  On 10/16/2013 11:18 AM, David Nicol wrote:
>
>
>  SELinux is appropriate for locking down production systems, and for that
> purpose it works as designed.
>
>
> I guess that depends on what you mean by "locking down" and "production".
>
> In my admittedly limited experience SELinux policies are 1.  Complex, and
> 2.  Brittle.
>
> #1 makes it unusual for sysadmins to modify SELinux policies for any
> services, production or not.
>
> #2 makes it likely that any changes to how a service is configured will
> run afoul of an SELinux policies despite being an entirely reasonable - not
> sacrificing security except in the sense of conflicting with SELinux
> policies.
>
> If:
>
> A.  by "locking down" you mean improving security by making it more likely
> to trap a hacking attempt, and
>
> B.  by "production systems" you are referring to systems used essentially
> unchanged in their service mechanisms from how the SELinux policy was
> developed,
>
> then I agree with you.  This limited applicability of the SELinux approach
> to improving security and the limited value that it provides even in it's
> sweet spot applications to me has always seemed that it's costs were too
> high for what it provides.
>
> Still, if you think of it independent of it's implementation costs and
> happen to want to deliver a service that it's tuned for, then I agree that
> it can add some protection.
>
> My gage reflex is the result of spending untold hours trying to keep some
> SELinux policies working through some needed service configuration changes,
> which I considered minor, and ultimately being forced (to conserve always
> limited sysadmin time) to give up and turn off SELinux.  Not a positive
> experience.  That was many years ago.  It looks like I may be asked to try
> again soon.  Hopefully the experience this time will be more positive and
> we'll at least be able to run with SELinux enabled on some servers (likely
> web servers) to get some of the limited additional protection that it
> offers.
>

I can testify firsthand that "turn off selinux" is the default choice in
quite a number of LARGE sysadmin shops...some of them very large and busy
web sites or hosting companies.

This actual example shows why:

1) Install any recent Red Hat/CentOS linux version; SELinux is on by
default in most releases
2) run the command "yum install postfix"
3) reboot
4) notice you can't connect to your shiny new mailserver; selinux has
blocked you
5) google around a bit
6) find out the easy fix is to disable selinux
7) add a command to make sure and turn the infernal thing off when you
provision servers via Kickstart

I've seen this garden path walked so many times I should write a guidebook.

-David Mercer

_______________________________________________
cap-talk mailing list
[email protected]
http://www.eros-os.org/mailman/listinfo/cap-talk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.