mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user