1matchpathcon(8)       SELinux Command Line documentation       matchpathcon(8)
2
3
4

NAME

6       matchpathcon  - get the default SELinux security context for the speci‐
7       fied path from the file contexts configuration.
8
9

SYNOPSIS

11       matchpathcon [-V] [-N] [-n]  [-f  file_contexts_file  ]  [-p  prefix  ]
12       filepath...
13

DESCRIPTION

15       matchpathcon queries the system policy and outputs the default security
16       context associated with the filepath.
17
18       Note: Identical paths can have different security  contexts,  depending
19       on the file type. (regular file, directory, link file, char file ...)
20
21       matchpathcon  will also take the file type into consideration in deter‐
22       mining the default security context if the file exists.   If  the  file
23       does not exist, no file type matching will occur.
24
25

OPTIONS

27       -n Do not display path.
28
29       -N Do not use translations.
30
31       -f file_context_file Use alternate file_context file
32
33       -p prefix Use prefix to speed translations
34
35       -V Verify file context on disk matches defaults
36
37

AUTHOR

39       This manual page was written by Dan Walsh <dwalsh@redhat.com>.
40
41

SEE ALSO

43       selinux(8), matchpathcon(3),
44
45
46
47dwalsh@redhat.com                21 April 2005                 matchpathcon(8)
Impressum