News for hackers. Stuff that matters.
Re:Domesticating applications, OpenBSD style by caf on Wednesday July 22, 2015 @07:10AM (#9928854)
tame() isn't for sysadmins or users either - it has to be wired into the application by the application developer.
Re:Domesticating applications, OpenBSD style by batou on Wednesday July 22, 2015 @08:06AM (#9929050)
Exactly. If you isolate this as an programmer's concern then you can skip the administrative effort and assume that the application configures itself properly rather than relies on someone to experiment with producing a sandbox for it to run in. The latter is error prone hence why things like SELinux have permissive and enforcing modes. SELinux turns your job into a reverse engineering one which isn't fun.

I'm slightly bitter that I've become a bit of an SELinux expert over the years. I shouldn't have to be one, hell the tech shouldn't even need to exist in 2015.

Re:Domesticating applications, OpenBSD style by ghshephard on Wednesday July 22, 2015 @08:42AM (#9929230)
The whole idea is that Users and SysAdmins don't have to do anything - it just works. With SELinux, the first thing that users/sysadmins do is disable it because it's screwing up their environment and annoying them.
Re:Domesticating applications, OpenBSD style by chousuke on Wednesday July 22, 2015 @08:49AM (#9929265)
SELinux isn't that hard. Disabling it is just lazy.

Granted, creating a really secure policy takes effort, but even just having it enabled with simple policies can help mitigate the impact of a bunch of vulnerabilities, even if it won't make you invulnerable.

Re:Domesticating applications, OpenBSD style by zmyrgel on Wednesday July 22, 2015 @09:51AM (#9929619)
I spent two days trying to get selinux working with our servers and just gave up again. I have actual work to be done instead of turning the selinux knobs. Something simple as tame would be welcome, zero administrative overhead but plugs few potential security holes.
Re:Domesticating applications, OpenBSD style by chousuke on Wednesday July 22, 2015 @10:07AM (#9929702)
I can't say what you were trying to do, but I've had to set up SELinux several times, and it's always been a fairly simple iterative process:

1. enable permissive mode

2. test application

3. check audit logs for any complaints

4. if no complaints, you're done. enable enforcing mode and test again.

5. otherwise, evaluate the complaints and fix the issues, either by tuning fcontexts (often, a simple path equivalency is enough if you're installing things on nondefault paths, as is common.) or by creating a custom policy module (audit2allow helps), then go to 2.

It's work you should do anyway. Securing an environment is part of setting it up.

Re:Domesticating applications, OpenBSD style by ghshephard on Wednesday July 22, 2015 @10:28AM (#9929812)
The users/sysadmins I've known take the following process:

o Run Application

o Get weird error.

o Google the error, see someone mentioning "This is because of SElinux"

o Google how to "Disable SELinux"

I'm not saying that's what they should be doing, just saying it's what I've observed. What's nice about tame is - there is nothing to enable/disable, it's just part of software.

Re:Domesticating applications, OpenBSD style by mhurron on Wednesday July 22, 2015 @12:07PM (#9930449)
That's pretty much the definition of lazy. Yes, its one more thing that needs to be learned but that is part of the job.

> What's nice about tame is - there is nothing to enable/disable, it's just part of software.

And what's nice about SELinux (if you learn it) is it applies to the system and everything running on it whether or not it's been written for it. You can even put it in a logging only, and use those logs to generate the needed policies. SELinux will tell you what is going on.

What you point out as nice about tame() means that nothing will use it except what is in the core of OpenBSD.

Re:Domesticating applications, OpenBSD style by ghshephard on Wednesday July 22, 2015 @11:04PM (#9933749)
Completely agree with you that SELinux is a better general solution, applies to a broader community of software, and that users, and certainly sysadmins, should take the time to understand how it works, generate policies for the software they use, and take advantages of the security that it provides.
Re:Domesticating applications, OpenBSD style by throw7 on Wednesday July 22, 2015 @03:27PM (#9931746)
Years ago when I was trying to simply grok selinux, I ran into the dontaudit rules. That was very frustrating and hair pulling day. I had and have no problem disabling selinux to this day.