Pages

Thursday, 3 October 2019

EX300 - Configure SELinux to support the service

0. online help

man semanage [ SEE ALSO section ]
man semanage-boolean [ EXAMPLE section ]
man semanage-fcontext [ EXAMPLE section ]
man semanage-port [ EXAMPLE section ]

1. Cheat-Sheet

# let apache(httpd) can listen on 8888
semanage port -a -t http_port_t -p tcp 8888

# let samba can share out /common
semanage fcontext -a -t samba_share_t "/common(/.*)?"
restorecon -Rv /common



No comments:

Post a Comment