"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "doc/22-selinux.md" between
icinga2-2.11.5.tar.gz and icinga2-2.12.0.tar.gz

About: Icinga 2 is an enterprise grade monitoring system which keeps watch over networks and any conceivable network resource.

22-selinux.md  (icinga2-2.11.5):22-selinux.md  (icinga2-2.12.0)
skipping to change at line 262 skipping to change at line 262
``` ```
Try to execute some commands as root using sudo. Try to execute some commands as root using sudo.
``` ```
$ sudo id -Z $ sudo id -Z
staff_u:staff_r:staff_t:s0-s0:c0.c1023 staff_u:staff_r:staff_t:s0-s0:c0.c1023
$ sudo vi /etc/icinga2/icinga2.conf $ sudo vi /etc/icinga2/icinga2.conf
"/etc/icinga2/icinga2.conf" [Permission Denied] "/etc/icinga2/icinga2.conf" [Permission Denied]
$ sudo cat /var/log/icinga2/icinga2.log $ sudo cat /var/log/icinga2/icinga2.log
cat: /var/log/icinga2/icinga2.log: Keine Berechtigung cat: /var/log/icinga2/icinga2.log: Permission denied
$ sudo systemctl reload icinga2.service $ sudo systemctl reload icinga2.service
Failed to get D-Bus connection: No connection to service manager. Failed to get D-Bus connection: No connection to service manager.
``` ```
Those commands fail because you only switch to root but do not change your SELin ux role. Try again but tell sudo also to switch the SELinux role and type. Those commands fail because you only switch to root but do not change your SELin ux role. Try again but tell sudo also to switch the SELinux role and type.
``` ```
$ sudo -r icinga2adm_r -t icinga2adm_t id -Z $ sudo -r icinga2adm_r -t icinga2adm_t id -Z
staff_u:icinga2adm_r:icinga2adm_t:s0-s0:c0.c1023 staff_u:icinga2adm_r:icinga2adm_t:s0-s0:c0.c1023
$ sudo -r icinga2adm_r -t icinga2adm_t vi /etc/icinga2/icinga2.conf $ sudo -r icinga2adm_r -t icinga2adm_t vi /etc/icinga2/icinga2.conf
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)