【问题标题】:selinux denying haproxy connections?selinux拒绝haproxy连接?
【发布时间】:2016-03-10 12:55:14
【问题描述】:

我在 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

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

谢谢

【问题讨论】:

    标签: haproxy selinux


    【解决方案1】:

    你可以试试跑步:

    setsebool -P haproxy_connect_any 1

    以 root 身份启用 haproxy 连接。

    【讨论】:

    • 在 centos 7 上工作对我来说就像一个魅力。
    • 确实这是解决方案。 fedora 25 在这里
    猜你喜欢
    • 2017-08-05
    • 1970-01-01
    • 2019-06-17
    • 2016-02-25
    • 2021-11-25
    • 2017-08-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多