SELinux策略如何定制和优化
-
SELinux策略如何定制和优化
SELinux策略定制与优化实战指南一 基础与模式管理运行模式:使用 getenforce / sestatus 查看状态;setenforce 0/1 在 Permissive/Enforcing 间切换;持久化配置在 /etc/selinux/config(如:SELINUX=enforcing)。仅在明确需要时再考虑 Disabled,因为会完全移除 MAC 保护。生产建议默认 Enfor
SELinux策略定制与优化实战指南一 基础与模式管理运行模式:使用 getenforce / sestatus 查看状态;setenforce 0/1 在 Permissive/Enforcing 间切换;持久化配置在 /etc/selinux/config(如:SELINUX=enforcing)。仅在明确需要时再考虑 Disabled,因为会完全移除 MAC 保护。生产建议默认 Enfor