如何在 Fedora CoreOS 中禁用 SELinux
警告:根据你的应用程序,禁用 SELinux 安全层可能是个坏主意,因为它可能引入新的安全风险,特别是如果容器系统有安全问题。
为了在 Fedora CoreOS 上禁用 SELinux,运行此命令:
sed-disable-selinux.sh
sudo sed -i -e 's/SELINUX=/SELINUX=disabled #/g' /etc/selinux/config
sudo systemctl reboot注意这将重启你的系统以使更改生效。
sed 命令将替换默认的
selinux-config.txt
SELINUX=enforcing在 /etc/selinux/config 中为
selinux-config.txt
SELINUX=disabledIf this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow