Cmd Generator

semanage

SELinux policy management tool.

semanage fcontext

Examples

# List file contexts
semanage fcontext -l

# Add file context
semanage fcontext -a -t httpd_sys_content_t /var/www

# List ports
semanage port -l

# Add port
semanage port -a -t http_port_t -p tcp 8080