如何为整个文件系统自动标记 SELinux
Issue
- SELinux 的自动标记(autorelabel)失败:
/.autorelabel
被正确检测到,但fixfiles
会以静默方式失败。 - 如何重新标记有大量 SELinux 错误的文件系统
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- SELinux 被禁用
/etc/selinux/config
已更新,在下次引导时设置SELINUX=enforcing
- 存在
/.autorelabel
以强制在下次引导时进行重新标记
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.