File: matchpathcon.8

package info (click to toggle)
libselinux 2.0.96-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,348 kB
  • ctags: 4,345
  • sloc: ansic: 24,218; python: 2,086; sh: 232; makefile: 219
file content (37 lines) | stat: -rw-r--r-- 1,158 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.TH "matchpathcon" "8" "21 April 2005" "dwalsh@redhat.com" "SELinux Command Line documentation"
.SH "NAME"
matchpathcon \- get the default SELinux security context for the specified path from the file contexts configuration.

.SH "SYNOPSIS"
.B matchpathcon [-V] [-N] [-n] [-f file_contexts_file ] [-p prefix ] filepath...
.SH "DESCRIPTION"
.B matchpathcon
queries the system policy and outputs the default security context associated with the filepath.

Note: Identical paths can have different security contexts, depending on the file type. (regular file, directory, link file, char file ...)

.B matchpathcon 
will also take the file type into consideration in determining the default security context if the file exists.  If the file does not exist, no file type matching will occur.

.SH OPTIONS
.B \-n
Do not display path.

.B \-N
Do not use translations.

.B \-f file_context_file
Use alternate file_context file

.B \-p prefix
Use prefix to speed translations

.B \-V
Verify file context on disk matches defaults

.SH AUTHOR	
This manual page was written by Dan Walsh <dwalsh@redhat.com>.

.SH "SEE ALSO"
.BR selinux "(8), "
.BR matchpathcon "(3), "