Live data from Hacker News

The SELinux coloring book [pdf]

people.redhat.com

1–10 of 57 posts

Re: The SELinux coloring book [pdf]

#4
SELinux always makes me feel like I'm a complete idiot (the worst thing about that is that I could be an idiot and not know it or refuse to acknowledge it).

So, maybe this introduction will make it a little more accessible.

Re: The SELinux coloring book [pdf]

#6
post #4

SELinux always makes me feel like I'm a complete idiot (the worst thing about that is that I could be an idiot and not know it or refuse to acknowledge it). So, maybe this introduction will make it a little more accessible.

You're not an idiot and you're not alone. In fact even those who you might expect to know it get it wrong and struggle to figure out what's gone on. For example recently I decide I didn't know systemd very well so picked a random service to setup and play with (tor) and a distro that uses systemd (Fedora 25).

I set up a hidden ssh service which was initially fine but after a reboot it failed with some weird permissions issue I couldn't figure out. Turns out this was some weird misconfiguration in SELinux for the Fedora tor package which afaik is still unresolved.

https://bugzilla.redhat.com/show_bug.cgi?id=1279222

https://bugzilla.redhat.com/show_bug.cgi?id=1250893

https://bugzilla.redhat.com/show_bug.cgi?id=1375369

There's more of these floating around if you search for the right terms. If SELinux was widely well-understood then this would be a pretty simple issue to identify and resolve (note: I'm not well versed enough in it - I've applied a workaround and have resolved to return and fix it properly "later") but it doesn't appear that this is the case

Re: The SELinux coloring book [pdf]

#7
post #4

SELinux always makes me feel like I'm a complete idiot (the worst thing about that is that I could be an idiot and not know it or refuse to acknowledge it). So, maybe this introduction will make it a little more accessible.

If you're having issues with selinux run:

  sealert -a /var/log/audit/audit.log
Most of the time, that will give you a detailed description of what's going wrong and tell you the command to fix it. Completely changed my opinion on selinux when I learned it. Also, the SELinux For Mere Mortals[1] talk is a great introduction.

[1] https://www.youtube.com/watch?v=MxjenQ31b70&t=1s

Re: The SELinux coloring book [pdf]

#8
At the point you have to make a "cute" coloring book (for adults) to make your OS seem more friendly, maybe it's time to reflect on the reality that there's something fundamentally wrong with the reasoning used to justify the logic required to use it.
Post reply on HN