허용 모드에서 SELinux 오류가 발생하는 이유는 무엇입니까?

허용 모드에서 SELinux 오류가 발생하는 이유는 무엇입니까?

SELinux가 설정된 CentOS 8 Stream을 설정했지만 permissive로그에 여전히 빨간색 줄이 많이 있습니다. 예:

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

restrictive이게 진짜인가요, 아니면 그냥 인쇄된 것인가요? 모드 에 있었다면 무슨 일이 일어났을까요 ?

답변1

문서에 따르면:

SELinux가 허용 모드에서 실행 중인 경우 SELinux 정책은 시행되지 않습니다. 시스템은 계속 작동하며 SELinux는 어떤 작업도 거부하지 않고 AVC 메시지만 기록합니다. 이 메시지는 문제 해결, 디버깅 및 SELinux 정책 개선에 사용될 수 있습니다.

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

또한 참조하십시오/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

관련 정보