我有一些系统,出于各种原因,我们想要完全禁用 selinux。迄今为止,这已经很成功了,总是在 kickstarts 中使用 selinux=0 并确保 /etc/sysconfig/selinux 包含:
SELINUX=disabled
Run Code Online (Sandbox Code Playgroud)
但截至今天,我有一个正确设置的 Fedora 17 工作站,但在多次重新启动后,它总是以强制模式出现:
# cat /etc/sysconfig/selinux
# 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=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# minimum …Run Code Online (Sandbox Code Playgroud)