Add example SELinux command into Fedora README
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 9 Mar 2017 12:30:29 +0000 (13:30 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 9 Mar 2017 12:30:29 +0000 (13:30 +0100)
README.Fedora

index 30fa5a1..510c3e0 100644 (file)
@@ -4,7 +4,9 @@ Installation
   systemctl enable httpd
   service httpd restart
 
-SELinux notes: httpd is allowed to connect to the default OpenNebula RPC port 2633. Different remote port would need to be permitted in SELinux (it works adding the port to 'http_port_t', or enabling 'httpd_can_network_connect' boolean).
+SELinux notes: httpd is allowed to connect to the default OpenNebula RPC port 2633. Different remote port would need to be permitted in SELinux (it works adding the port to 'http_port_t', or enabling 'httpd_can_network_connect' boolean). For example (replace $PORT by the RPC port number):
+
+   semanage port -a -t http_port_t -p tcp $PORT
 
 
 Quick test