matchpathcon
Look up the persistent SELinux security context setting of a path. tldr-pages
On Linux
Linux
Look up the persistent security context setting of an absolute path
matchpathcon /path/to/fileIdentifyRestrict lookup to settings on a specific file type
matchpathcon -m file /path/to/fileIdentifyVerify that the persistent and current security context of a path agree
matchpathcon -V /path/to/fileIdentify