2008-08-19 19:30:36 +00:00
.TH "matchpathcon" "8" "21 April 2005" "dwalsh@redhat.com" "SELinux Command Line documentation"
.SH "NAME"
2012-11-13 20:15:34 +00:00
matchpathcon \- get the default SELinux security context for the specified path from the file contexts configuration
.
2008-08-19 19:30:36 +00:00
.SH "SYNOPSIS"
.B matchpathcon
2012-11-13 20:15:34 +00:00
.RB [ \- V ]
.RB [ \- N ]
.RB [ \- n ]
.RB [ \- m
.IR type ]
.RB [ \- f
.IR file_contexts_file ]
.RB [ \- p
.IR prefix ]
.I filepath...
.
.SH "DESCRIPTION"
.BR matchpathcon
2008-08-19 19:30:36 +00:00
queries the system policy and outputs the default security context associated with the filepath.
2012-11-13 20:15:34 +00:00
.B Note:
Identical paths can have different security contexts, depending on the file
type (regular file, directory, link file, char file ...).
2008-08-19 19:30:36 +00:00
.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.
2012-11-13 20:15:34 +00:00
.
2008-08-19 19:30:36 +00:00
.SH OPTIONS
2012-11-13 20:15:34 +00:00
.TP
.BI \- m " type"
2012-09-12 18:18:50 +00:00
Force file type for the lookup.
2012-11-13 20:15:34 +00:00
Valid types are
.BR file ", " dir ", " pipe ", " chr_file ", " blk_file ", "
.BR lnk_file ", " sock_file .
.TP
2008-08-19 19:30:36 +00:00
.B \- n
Do not display path.
2012-11-13 20:15:34 +00:00
.TP
2008-08-19 19:30:36 +00:00
.B \- N
Do not use translations.
2012-11-13 20:15:34 +00:00
.TP
.BI \- f " file_context_file"
2008-08-19 19:30:36 +00:00
Use alternate file_context file
2012-11-13 20:15:34 +00:00
.TP
.BI \- p " prefix"
2008-08-19 19:30:36 +00:00
Use prefix to speed translations
2012-11-13 20:15:34 +00:00
.TP
2008-08-19 19:30:36 +00:00
.B \- V
Verify file context on disk matches defaults
2012-11-13 20:15:34 +00:00
.
2008-08-19 19:30:36 +00:00
.SH AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com>.
2012-11-13 20:15:34 +00:00
.
2008-08-19 19:30:36 +00:00
.SH "SEE ALSO"
.BR selinux "(8), "
2012-11-13 20:15:34 +00:00
.BR matchpathcon (3)