Enforcing mode requested but no policy loaded. Halting now!kernel panic - not syncing: Attenpted to kill init问题
2008-06-03 13:25
471 查看
最近在升级内核的时候遇到了一个问题,下载了2.6.19版本内核,准备升级内核,编译还算顺利,但编译并安装后重启电脑出错了,提示Enforcing mode requested but no policy loaded. Halting now.
kernel panic - not syncing: Attenpted to kill init! 不知是什么原因?到网上搜索了下解决方法,说在grub.conf里把 kernel /vmlinuz-2.6.19 ro root=LABEL=/ rhgb quiet 变为: kernel /vmlinuz-2.6.19 ro root=LABEL=/ enforcing=0 rhgb quiet 。按此方法重新启动,选择新的内核可以进入系统,但不明白为什么要加enforcing=0。如果不加enforcing=0 上面的提示又是什么原因呢?
解释:
enforcing参数是在启动内核时传递给selinux的内核参数,它用来决定你系统的内核运行于 强制(enforcing )模式还是自由(permissive) 模式。
在 自由模式下SELinux只是记录他该做什么,而事实上并不做任何动作。在强制模式下SElinux会来真格的。如果你的策略有错误,在强制模式下系统可 能会阻止你登陆!所以正常情况下你应改在启动时传 enforcing=1 给内核,当你的SELinux策略有问题时,你可以临时传enforcing=0给内核来查错。在/etc/selinux/config这个init的 配置文件中相应的有一个选项,通过设置它,也可以使系统进入自由模式。
在你的错误提示中,没有合适的SELinux策略,因此出错。而改为0之后,处于自由模式,自然就不出错了。
kernel panic - not syncing: Attenpted to kill init! 不知是什么原因?到网上搜索了下解决方法,说在grub.conf里把 kernel /vmlinuz-2.6.19 ro root=LABEL=/ rhgb quiet 变为: kernel /vmlinuz-2.6.19 ro root=LABEL=/ enforcing=0 rhgb quiet 。按此方法重新启动,选择新的内核可以进入系统,但不明白为什么要加enforcing=0。如果不加enforcing=0 上面的提示又是什么原因呢?
解释:
enforcing参数是在启动内核时传递给selinux的内核参数,它用来决定你系统的内核运行于 强制(enforcing )模式还是自由(permissive) 模式。
在 自由模式下SELinux只是记录他该做什么,而事实上并不做任何动作。在强制模式下SElinux会来真格的。如果你的策略有错误,在强制模式下系统可 能会阻止你登陆!所以正常情况下你应改在启动时传 enforcing=1 给内核,当你的SELinux策略有问题时,你可以临时传enforcing=0给内核来查错。在/etc/selinux/config这个init的 配置文件中相应的有一个选项,通过设置它,也可以使系统进入自由模式。
在你的错误提示中,没有合适的SELinux策略,因此出错。而改为0之后,处于自由模式,自然就不出错了。
相关文章推荐
- Enforcing mode requested but no policy loaded. Halting now. kernel panic - not syncing: Attempted to kill init!
- Unable to load SELinux Policy. Machine is in enforcing mode. Halting now.
- 文件系统编译过程中遇到问题,解决过程Kernel panic - not syncing: Attempted to kill init!
- 问题 Kernel panic – not syncing: Attempted to kill init
- linux无法进入系统,报错Unable to load SELinux Policy,Kernel panic - not syncing:Attempted to kill init
- linux 无法启动: Unable to load SELinux Policy. Machine is in enforcing mode. Halting now
- Kernel panic - not syncing: Attempted to kill init!问题解决办法
- Unable to load SELinux Policy. Machine is in enforcing mode. Halting now.
- 胆战心惊-Kernel Panic -- not syncing: attempted to kill init
- Linux2.6内核编译裁剪记录(Kernel panic - not syncing: Attempted to kill init!)
- initramfs系统制作时,编译内核出现错误Kernel panic - not syncing: Attempted to kill init
- yaffs2 文件系统:Kernel panic - not syncing: Attempted to kill init!
- 对于ARM加载文件系统出现 Kernel panic - not syncing: Attempted to kill init!
- Kernel panic – not syncing: Attempted to kill init
- kernel panic - not syncing:Attempt to kill init!
- Kernel panic - not syncing: Attempted to kill init
- VirtualBox安装OpenWRT虚拟机,及Kernel panic - not syncing: Attempted to kill init故障排除
- ORA-32001:write to SPFILE requested but no SPFILE is in use问题的解决
- Kernel panic - not syncing: Attempted to kill init!
- Linux启动提示Kernel panic - not syncing: Attempted to kill init解决办法