selinux否认haproxy连接?

blu*_*ndr 3 selinux haproxy

我在syslog中看到这些消息弹出:

Mar 10 12:51:35 db1 kernel: [5851729.958138] type=1400 audit(1457614295.823:2925931): avc:  denied  { name_connect } for  pid=801 comm="haproxy" dest=7778 scontext=system_u:system_r:haproxy_t:s0 tcontext=system_u:object_r:interwise_port_t:s0 tclass=tcp_socket
Run Code Online (Sandbox Code Playgroud)

这是否意味着SELinux拒绝与haproxy的连接?

谢谢

use*_*675 6

你可以尝试运行:

setsebool -P haproxy_connect_any 1

以root身份启用haproxy的连接.