= bug description =
selinux was set to permissive on the stg nodes and enforcing on the production nodes. Although that worked all week, on Friday evening (Saturday morning UTC) it stopped (or something flipped selinux to enforcing on Friday evening).
= bug analysis =
After struggling with it for a while, I found the following:
The following sebooleans are needed to be turned on: * allow_ypbind -- we aren't using NIS. is there something in nuancier that's using the NIS port? * httpd_can_network_connect_db -- this is valid to connect to postgres * httpd_enable_homedirs -- I couldn't find any files that should be read that was labeled to need this. Not sure what's going on here. Is there a way to tell which file or directory lookup is causing this?
In addition the following custom bit of policy was needed: * allow httpd_t anon_inodefs_t:file write;
I've no idea what causes that and google had no information more me.
= fix recommendation =
For now, I've worked around these issues by setting selinux to permissive on the production nuancier servers but that leaves me feeling a bit unsettled. Someone should look into these.
Replying to [ticket:4048 toshio]:
In addition the following custom bit of policy was needed: * allow httpd_t anon_inodefs_t:file write; I've no idea what causes that and google had no information more me.
I'm pretty sure that is fedmsg trying to write to its zeromq socket.
I'll see if I can get that last bit set in the fedmsg_base ansible role.
Ok, fedmsg_base now installs a module that allows that anon_inodefs write: http://infrastructure.fedoraproject.org/cgit/ansible.git/tree/roles/fedmsg_base/tasks/main.yml#n74
I moved them to enforcing and things still appear to work fine.
So, I think we can close this now. ;)