docs: Allow host renames with selinux enforcing for CentOS installs

* Allow host renames with selinux enforcing

you have to change the fcontext of /opt/librenms/rrd/ to allow read/write.

* Update Installation-CentOS-7-Nginx.md

Changed to add semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/rrd(/.*)?' to complete the selinux change.

* Update Installation-CentOS-7-Apache.md
This commit is contained in:
kedearian
2017-08-11 09:34:21 +01:00
committed by Neil Lathwood
parent 4e4a9d919e
commit 38cb8ab5db
2 changed files with 5 additions and 0 deletions
@@ -99,6 +99,8 @@ Add the following config:
yum install policycoreutils-python
semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/logs(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/logs(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/rrd(/.*)?'
semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/rrd(/.*)?'
restorecon -RFvv /opt/librenms/logs/
setsebool -P httpd_can_sendmail=1
setsebool -P httpd_can_network_connect=1
@@ -125,7 +125,10 @@ server {
yum install policycoreutils-python
semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/logs(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/logs(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/rrd(/.*)?'
semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/rrd(/.*)?'
restorecon -RFvv /opt/librenms/logs/
restorecon -RFvv /opt/librenms/rrd/
setsebool -P httpd_can_sendmail=1
```