linux启动维修工具,几个常用的SeLinux维护工具和命令 | 旺旺知识库

SELinux is preventing /usr/sbin/httpd from name_connect access on the tcp_socket .

***** 插件 catchall_boolean (47.5 置信度) 建议 ************************************

If 您要 allow HTTPD scripts and modules to connect to the network using TCP.

Then 您必须告知 SELinux 这个情况,方法是启用 'httpd_can_network_connect' 布尔。'mysqld_selinux' man page >中有详细资料。

Do

setsebool -P httpd_can_network_connect 1

***** 插件 catchall_boolean (47.5 置信度) 建议 ************************************

If 您要 allow HTTPD scripts and modules to connect to databases over the network.

Then 您必须告知 SELinux 这个情况,方法是启用 'httpd_can_network_connect_db' 布尔。'mysqld_selinux' man page 中有详细资料。

Do

setsebool -P httpd_can_network_connect_db 1

***** 插件 catchall (6.38 置信度) 建议 ********************************************

If 您确定应默认允许 httpd name_connect 访问 tcp_socket。

Then 您应该将这个情况作为 bug 报告。

您可以生成本地策略模块允许这个访问。

Do

请执行以下命令此时允许这个访问:

# grep httpd /var/log/audit/audit.log | audit2allow -M mypol

# semodule -i mypol.pp

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值