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   pol‐
12       icy_root_path] [-p prefix ] 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 policy_root_path Use alternate policy root path
34
35       -p prefix Use prefix to speed translations
36
37       -V Verify file context on disk matches defaults
38
39

AUTHOR

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

SEE ALSO

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