Cmd Generator

semanage

SELinux 策略管理工具。

semanage fcontext

示例

# 列出文件上下文
semanage fcontext -l

# 添加文件上下文
semanage fcontext -a -t httpd_sys_content_t /var/www

# 列出端口
semanage port -l

# 添加端口
semanage port -a -t http_port_t -p tcp 8080

Sponsors