If you ever wrote a selinux policy for a non-trivial application, you'd know that it's *very* hard to get it right the first time, even with a lot of testing. Don't forget that people sometimes use your software in a way you didn't think of; in that specific case gathering AVCs in permissive mode is the way to go.
And BTW, that won't (shouldn't) break chrome/chromium and in the worst case you'll just have to disable selinux, so that's not quite the same as shipping "half-baked" software.
FAT and removable media don't have "inconsistent labels". They are not labelled at all and SELinux policy can unlabelled filesystems via other methods.
SELinux and AppArmor
Posted Oct 15, 2009 12:57 UTC (Thu) by Cyberax (✭ supporter ✭, #52523)
[Link]
First, the insufficiency of path-based approach is a FUD. It works just fine.
Of course, label-based approach of SELinux is more powerful. But what good do these features do if I need to spend days just to write a basic policy?
AppArmor is 'good enough' for most purposes (like, confining a daemon to read only certain directories). For example, this very FireFox is confined to read and write only several directories by AppArmor on my system.
And its policy is clear enough so even a newbie administrator can understand it.
SELinux and AppArmor
Posted Oct 16, 2009 15:50 UTC (Fri) by rahulsundaram (subscriber, #21946)
[Link]
You claim that the argument from a security expert is FUD even though several other experts agree with it. Alright, prove your counter argument. Write a quick AppArmor policy that covers Chrome comprehensively. If it is really as easy as you claim, then it shouldn't any problem, right? Let's deal with reality. SELinux policies are complex because security is complex and if the alternative was so easy, why doesn't it have any developers like you admit yourself?
SELinux and AppArmor
Posted Oct 16, 2009 18:22 UTC (Fri) by dlang (✭ supporter ✭, #313)
[Link]
it all depends what experts you decide are qualified to give opinions.
there are many security people out there who consider SELinux far too complicated for normal use, and who see benefits in AppArmor.
SELinux and AppArmor
Posted Oct 16, 2009 20:08 UTC (Fri) by nix (subscriber, #2304)
[Link]
I suppose it doesn't have any developers because SuSE fired all its
developers and its main developer went to work for Microsoft.
Oh, also because the SELinux people fought tooth and nail to keep it out
of the kernel.
Some prophecies are self-fulfilling.
SELinux and AppArmor
Posted Oct 16, 2009 20:20 UTC (Fri) by dlang (✭ supporter ✭, #313)
[Link]
canonical has people working on AppArmor, so it's not quite 'no developers' any more.
but the tooth and nail fight to keep it out of the kernel would do a lot to discourage development.
SELinux and AppArmor
Posted Oct 17, 2009 0:48 UTC (Sat) by rahulsundaram (subscriber, #21946)
[Link]
That's hilariously wrong. James Morris, SELinux developer at Red Hat is the security sub-system maintainer in the upstream kernel and he has not only accepted alternatives to SELinux and merged them, he also regularly blogs about progress and even expressed hope that AppArmor would get merged
Posted Oct 17, 2009 2:18 UTC (Sat) by dlang (✭ supporter ✭, #313)
[Link]
I will admit that I do not remember James objecting, but he also hasn't been saying anything to disagree with Stephen Smalley (the other SELinux maintainer) who has been _very_ vocal in his opposition.
SELinux and AppArmor
Posted Oct 17, 2009 3:04 UTC (Sat) by rahulsundaram (subscriber, #21946)
[Link]
Stephen Smalley is one of the many SELinux developers but his objections were pretty specific. Some of them were even addressed in subsequent versions of the patch set. I don't see any reasons to object to valid technical criticism.
SELinux and AppArmor
Posted Oct 17, 2009 3:19 UTC (Sat) by dlang (✭ supporter ✭, #313)
[Link]
I don't object to valid technical criticism.
however when that becomes 'it doesn't handle this case that SELinux does, so it must be worthless', that stops being valid technical criticism, and the objections have frequently gotten to that stage (and, no, my memory is not good enough to remember exactly who made which objections)
SELinux and AppArmor
Posted Oct 17, 2009 3:44 UTC (Sat) by rahulsundaram (subscriber, #21946)
[Link]
It seems you are badly paraphrasing comments elsewhere. If you point a specific link, it would be useful to know what was actually said. Some of the discussions involved the problem that the goals described the developers while submitting the patchset didn't match the patches.
It is ok for a security solution to address a specific subset of the problems while leaving others as outside the scope but the documentation should explicitly say so. If it doesn't then it makes it harder to merge those patches. Smack did a good job of describing the scope of the problem it was trying to address.
SELinux and AppArmor
Posted Oct 16, 2009 21:17 UTC (Fri) by Cyberax (✭ supporter ✭, #52523)
[Link]
AppArmor is not ideologically pure, that's why experts don't like it.
But it's _simple_. And it works.
I don't know what's inside the Chrome policy, but you can see the FireFox policy here:
SELinux and AppArmor
Posted Oct 18, 2009 15:47 UTC (Sun) by kleptog (subscriber, #1183)
[Link]
My one run in with AppArmor was getting a weird error message from tcpdump. Turns out it was forbidden from reading files outside of /home???
Disabling AppArmor solved the problem. SELinux hasn't got a monopoly on obscure error messages.
Walsh: Google Chrome Policy
Posted Oct 15, 2009 18:52 UTC (Thu) by njs (guest, #40338)
[Link]
> You can create a usable AppArmor policy in a matter of minutes.
I don't know enough to take an informed position in the SELinux debate, but... perhaps you don't either? Empirically, Ubuntu's Firefox AppArmor policy (new for Karmic) is still not up to snuff, and I'm pretty sure they've been working on it for more than a few minutes.