mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
doc(selinux): set httpd_cache_t type to /opt/librenms/cache (#16000)
This is to avoid the following error when trying to poll: ``` file_put_contents(/opt/librenms/cache/os_defs.cache): Failed to open stream: Permission denied {"exception":"[object] (ErrorException(code: 0): file_put_contents(/opt/librenms/cache/os_defs.cache): Failed to open stream: Permission denied at /opt/librenms/LibreNMS/Util/OS.php:113)"} ```
This commit is contained in:
@@ -492,6 +492,7 @@ Feel free to tune the performance settings in librenms.conf to meet your needs.
|
||||
semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/html(/.*)?'
|
||||
semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/(rrd|storage)(/.*)?'
|
||||
semanage fcontext -a -t httpd_log_t "/opt/librenms/logs(/.*)?"
|
||||
semanage fcontext -a -t httpd_cache_t '/opt/librenms/cache(/.*)?'
|
||||
semanage fcontext -a -t bin_t '/opt/librenms/librenms-service.py'
|
||||
restorecon -RFvv /opt/librenms
|
||||
setsebool -P httpd_can_sendmail=1
|
||||
|
Reference in New Issue
Block a user