Skip to main content

Display and Restore File and Directory Security Contexts with SELinux

Hands-On Lab


Photo of Terrence Cox

Terrence Cox

Senior Vice President of Content





This learning activity will allow the student to practice troubleshooting and resolving SELinux filesystem context issues. Being able to discover and resolve SELinux context issues is a key concept when working with SELinux. At the end of this activity, the student will understand how to view and apply new security contexts to files and directories.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

The web development team has come to you with a problem. They've deployed a new page but are getting errors when trying to display it.

The content is stored on the filesystem in /var/www/html/web-api/index.html.

Verify that the reported issue is correct and run whatever commands are required to get the page working.