HPE CRAY 자료 공유

[RHEL 9] 달라진 selinux disable 방법 본문

Applications/LINUX

[RHEL 9] 달라진 selinux disable 방법

CRAY KOREA Blog 2025. 2. 11. 19:00

RHEL 8까지는 SELINUX disable하는 방법으로 많이 사용되었던

"/etc/selinux/config" 파일에 "SELINUX=disabled" 와 같이 SELINUX변수의 값을 수정 했었다.

 

RHEL 9에서는 SELINUX 변수값을 수정해도 적용되지 않는다.

RHEL 9에서 "/etc/selinux/config" 파일을 열어 보면 grubby 명령을 이용하여 켜거나 끄도록 안내되어져 있다.

 

구분 적용 방법
SELinux disabled # grubby --update-kernel ALL --args selinux=0
SELinux enabled # grubby --update-kernel ALL --remove-args selinux

 

- 참고: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/using_selinux/changing-selinux-states-and-modes_using-selinux#changing-selinux-modes-at-boot-time_changing-selinux-states-and-modes