SELinux permission denied to Phusion Passenger for redmine

依然范特西╮ 提交于 2019-12-06 16:44:38
sensadrome

So, you can fix this by using audit2allow (yum install audit-libs-python audit-libs).

SELinux logs to /var/log/audit/audit.log. If you tail and capture the output from restarting the web service (service httpd restart) you can then run the new output through audit2allow and make a module to install under selinux...

So, assuming you have captured it into a file called "audit_tmp":

cat audit_tmp | audit2allow -D -M passenger

This will create a file called passenger.pp which you can apply using:

semodule -i passenger.pp

Doing this will unblock the first thing that was stopping passenger from loading - but be aware that there will probably be more so you will need to repeats the process again until it works. I hope that makes sense!

Take a look at /var/log/syslog. That file contains SELinux error messages, which tell you how to fix up any permission problems.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!