6.5.5 SELinux TCP 端口上下文
后面的指令使用semanage
二进制文件来 Management 端口上下文。在 RHEL 上,它是policycoreutils-python-utils
软件包的一部分:
yum install -y policycoreutils-python-utils
安装semanage
二进制文件后,可以使用semanage
和port
选项列出在mysqld_port_t
上下文中定义的端口。
shell> semanage port -l | grep mysqld
mysqld_port_t tcp 1186, 3306, 63132-63164