For example, there's a httpd example changing a label right there in the HOWTO, and it doesn't explain where I'm supposed to discover the correct label. And the recommended audit-script-to-config doesn't show the correct labels, it prompts you to relax the rule instead of changing labels.
My procmail rules don't correspond to what you said procmail does. And how was I supposed to discover procmail_home_t ?
I'm not saying I'm Mr. Super Smart, I'm just saying that it's quite a bit of investment.
Did you read this part? It explains a solution to your first gripe: https://wiki.centos.org/HowTos/SELinux#head-0f6390ddacfab39e...
I find audit2why helpful, as well as semanage boolean -l, semanage user -l, semanage fcontext -l. Often times more than not, these tools either help me fix an 'audit' issue or point me in the right direction. Check them out sometime, if you don't want to go digging through docs or serverfault - the labels tend to be generally straight forward IMO :-)
You may have seen it already, but the CentOS SELinux HOWTO was very useful for me in learning how to interact with it: https://wiki.centos.org/HowTos/SELinux
>Turns out that doing crazy shit like letting users have their html files in ~/public_html/ requires a lot of SELinux configuration
You should just be able to `setsebool httpd_enable_homedirs on`. What trouble did you run in to?
>procmail touching user directories?
This works by default for me in in C6 and C7: I'm using it on a number of production systems. The ~/.procmailrc should have type procmail_home_t but procmail itself can create/modify/delete files in the user's home dir.
>spamassassin?
Again, should just work. You may need to `setsebool spamassassin_can_network on` depending on configuration.
>a tool which tells you what new rules are needed
That would be nice. My usual process if I'm in a situation that needs custom rules is to: