Curious what is soundd daemon. The wiki at http://wiki.centos.org/TipsAndTricks/SelinuxBooleans says it is "soundd daemon" but I'm not finding much additional info on internet.
To get nginx (configured to bind on a unix socket) to start with systemctl I need to add a type enforcement rule on httpd_t to soundd_port_t:tcp_socket. More specifically:
sudo systemctl status nginx.service
fails with message:
nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled)
Active: failed (Result: exit-code) since Mon 2015-07-13 19:53:57 EDT; 7s ago
Process: 2699 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Jul 13 19:53:57 localhost.localdomain nginx[2699]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Jul 13 19:53:57 localhost.localdomain nginx[2699]: nginx: [emerg] bind() to 0.0.0.0:8000 failed (13: Permissi...ied)
Jul 13 19:53:57 localhost.localdomain nginx[2699]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jul 13 19:53:57 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
Jul 13 19:53:57 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Jul 13 19:53:57 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.
Next I do:
sudo cat /var/log/audit/audit.log | audit2allow
and see:
#============= httpd_t ==============
allow httpd_t soundd_port_t:tcp_socket name_bind;
After importing this module, nginx is able to start.
nginx: [emerg] bind() to 0.0.0.0:8000 failed (13: Permissi...ied)
tells that binding to port 8000 is not allowed.