matchpathcon Command Examples

Lookup the persistent SELinux security context setting of a path. See also: semanage-fcontext, secon, chcon, restorecon. More information: https://manned.org/matchpathcon.8.

matchpathcon {{/path/to/file}}

matchpathcon -m {{file|dir|pipe|chr_file|blk_file|lnk_file|sock_file}} {{/path/to/file}}

matchpathcon -V {{/path/to/file}}