How to find the correct selinux context of a file

There’s a list that shows you the expected SELinux context for files on your system.

The command that shows this list is

semanage fcontext -l

So grep for the file (or directory) you need.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

11 + 11 =