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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.