How do I re-apply the SELinux security labels to specific files or directories?

Solution Verified - Updated -

Issue

Files were restored from backup or copied from a medium when SELinux was disabled or not supported, for example in "rescue mode".

Environment

Red Hat Enterprise Linux v4 and v5

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