SELinux: Finding and listing all contexts

Run the following command to list all current rules in your filesystem:

semanage fcontext -l

List all available file contexts (which you may choose from when assigning contexts to your files):

seinfo -t

List all user:

seinfo -u

List all user roles:

seinfo -r

Leave a Reply