简体   繁体   English

ZeroMQ和SELinux

[英]ZeroMQ and SELinux

I have a python web application that uses ZeroMQ for the communication between front-end and back-end servers (RedHat 6). 我有一个使用ZeroMQ进行前端和后端服务器(RedHat 6)之间的通信的python Web应用程序。 Everything works fine, but only with SELinux disabled (or Permissive). 一切正常,但只有禁用SELinux(或允许)。

Someone of you managed to use ZeroMQ with SELinux in Enforcing mode? 你们中有人设法在Enforcecing模式下将ZeroMQ与SELinux一起使用吗?

Here is the error in my Apache log with SELinux enabled: 这是启用SELinux的Apache日志中的错误:

Permission denied (signaler.cpp:120)
[Thu Nov 27 18:02:17 2014] [notice] child pid 5787 exit signal Aborted (6)

Thanks! 谢谢!

I guess that you have moved on from here now, however, in case it helps, SELinux with Apache requires that CGI script files have the SELinux TYPE attribute set to httpd_sys_script_exec_t . 我想您现在就从这里继续前进,但是,如果有帮助,带有Apache的SELinux要求CGI脚本文件的SELinux TYPE属性设置为httpd_sys_script_exec_t

These links have helped me: 这些链接对我有帮助:

SELinux SELinux的

semanage semanage的

Please check documentation for confirmation/clarification of the above. 请检查文档以确认/澄清以上内容。

Use of the ls -Z command will reveal the SELinux attributes of any file/dir. 使用ls -Z命令将显示任何文件/目录的SELinux属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM