¿Por qué hay errores de SELinux en modo permisivo?

¿Por qué hay errores de SELinux en modo permisivo?

Configuré CentOS 8 Stream con SELinux configurado en permissivepero todavía tengo un montón de líneas rojas en el registro, por ejemplo:

SELinux is preventing /usr/lib/systemd/systemd from name_connect access on the tcp_socket port 80

¿Son reales o simplemente son impresiones? ¿Qué pasaría si estuviera en restrictivemodo?

Respuesta1

Según la documentación:

Cuando SELinux se ejecuta en modo permisivo, la política de SELinux no se aplica. El sistema permanece operativo y SELinux no niega ninguna operación, sino que solo registra mensajes AVC, que luego pueden usarse para solucionar problemas, depurar y mejorar las políticas de SELinux.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/using_selinux/changing-selinux-states-and-modes_using-selinux

Ver también/etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - No SELinux policy is loaded.
SELINUX=permissive

información relacionada