SELinux: differenze tra le versioni
Jump to navigation
Jump to search
(→RHEL) |
(→RHEL) |
||
Riga 9: | Riga 9: | ||
ls -laZ /etc/nginx/html/ |
ls -laZ /etc/nginx/html/ |
||
https://www.cloudinsidr.com/content/tip-of-the-day-how-to-find-the-correct-selinux-security-contexts-and-adjust-selinux-labels-on-your-linux-system/ |
|||
Porcata: |
Porcata: |
Versione delle 18:58, 10 nov 2022
RHEL
semanage fcontext --list
grep nginx /etc/selinux/targeted/contexts/files/file_contexts
ls -laZ /etc/nginx/html/
https://www.cloudinsidr.com/content/tip-of-the-day-how-to-find-the-correct-selinux-security-contexts-and-adjust-selinux-labels-on-your-linux-system/
Porcata:
Easy but bad solution, allow init_t to run in permissive mode. At least you don't have to run the whole system in permissive mode...
Enable: # semanage permissive -a init_t
Disable: # semanage permissive -d init_t
systemd
Systemd consente di modificare il contesto in cui gira un processo.