- Red Hat Enterprise Linux 6
dracut: SELinux: Could not open policy file <= /etc/selinux/disable/policy/policy.24: No such file or directory /sbin/load_policy
솔루션 확인됨 - 업데이트 날짜
새로운 번역 또는 번역 업데이트 요청
선택한 언어에 대한 번역이 제공되지 않습니다. 선택한 언어에 대한 번역을 요청하려면 아래를 클릭하세요.
환경
문제
- Kernel panic occurs with the following message after changing /etc/selinux/config to disable SELinux.
dracut: Loading SELinux policy
type=1404 audit(<snip>): enforcing=1 old_enforcing=0 audit=<snip> ses=<snip>
dracut: SELinux: Could not open policy file <= /etc/selinux/disable/policy/policy.24: No such file or directory /sbin/load_policy: Can't load policy and <snip>
No such file or directory
dracut Warning: Initial SELinux policy load failed.
dracut: FATAL: Initial SELinux policy load failed. Machine in enforcing mode. To disable selinux, add selinux=0 to the kernel command line.
dracut: Refusing to continue
dracut Warning: Signal caught!
해결 방법
Disable selinux with one of the following procedures after booting from rescue environment:
1)set the following configurations for disabling selinux in /etc/selinux/config:
SELINUX=disabled
SELINUXTYPE=targeted
2)Use the following parameter for disabling selinux in /boot/grub/grub.conf:
kernel vmlinuz-2.6.32-220.el6.x86_64 <snip> selinux=0
If SELinux is intended to be used, regenerate the policy file with the command
# semodule -B
Then reboot the system.
근본 원인
- SElinux policy file was not recreated correctly.
진단 단계
Check to see if /etc/selinux/disable/policy/policy.24 exists.
이 솔루션은 Red Hat의 빠른 게시 프로그램의 일부로 Red Hat 엔지니어가 고객을 지원하는 동시에 대규모 솔루션 라이브러리를 제공합니다. 필요한 지식을 즉시 제공하기 위해 이러한 문서는 초안 상태이거나 편집되지 않은 형태로 제공될 수 있습니다.