Translated message

A translation of this page exists in English.

如何为整个文件系统自动标记 SELinux

Solution In Progress - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content