Dies ist eine alte Version des Dokuments!
Einstellungen für Apache mit SELinux
Nach Upgrade auf 16.0 und zur Ersteinrichtung von Apache mit SELinux ist Folgendes zu tun (als root):
Erst einmal alles aufgeführt, was getan wurde, um Spiff wieder ans Netz zu bringen
semanage port -a -t http_port_t -p tcp 3131
setsebool -P httpd_unified 1
semanage fcontext -a -t httpd_sys_content_t „/home/tigerhome/public_html(/.*)?“
restorecon -R /home/tigerhome/public_html
semanage fcontext -a -t public_content_t '/home/tigerhome/public_html/nextcloud/index.php'
restorecon -v '/home/tigerhome/public_html/nextcloud/index.php'
ausearch -c 'httpd-prefork' –raw | audit2allow -M my-httpdprefork
semodule -i my-httpdprefork.pp
semanage fcontext -a -t httpd_sys_content_t „/home/tigerhome/private_html(/.*)?“
restorecon -R /home/tigerhome/private_html
semanage fcontext -a -t public_content_t '/home/tigerhome/.susipasswd'
restorecon -v '/home/tigerhome/.susipasswd'
systemctl restart apache.service