리눅스 커널 컴파일시 발생하는 SELinux Enforce mode 오류에 대한 해결 방법
오류내용 :
부팅시 Enforcing mode로 진입시 정책이 없다는 메세지와 함께 커널 패닉 상태가 된다.
** 해결방법-1:
/boot/grub/grub.conf 파일에서 아래와 같이 enforcing 모드를 꺼준다.
title CentOS (2.6.18)
root (hd0,0)
kernel /vmlinuz-2.6.18 ro root=/dev/hda3 enforcing=0
initrd /initrd-2.6.18.img
그리고 다시 grub를 인스톨 해준다.
# grub-install /dev/hda
** 해결방법-2:
/etc/sysconfig/selinux 에서
SELINUX=enforcing 을
SELINUX=disabled 로 바꿔준다.