mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-01-22 02:44:24 +00:00
6ef13eeda7
- Add man page sections '(N)' to external references, and '()' on functions described in the same man page. - Escape minus signs when those are expected to be used on the command line or files. - Mark files and variables in italic; Note headings, function names, constants, program options and man page references in bold. - Do not justify and hyphenate SEE ALSO section, and avoid hyphenation on symbol names by prepending them with \%. - Remove trailing dot from NAME section description. - Split sections with a no-op command '.', to visually distinguish them but to avoid introducing spurious vertical space in the formatted output. - Add explicit .sp commands in the SYNOPSIS section between function prototypes, and fix space placement in function protoypes. - Split header includes with .br (instead of the explicit or implicit .sp) so that they are vertically contiguous. - Add missing {} around SELINUXTYPE and POLICYTYPE variable text in paths. - Remove unneeded formatting commands. - Remove spurious blank lines. Signed-off-by: Guillem Jover <guillem@debian.org> Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
58 lines
1.4 KiB
Groff
58 lines
1.4 KiB
Groff
.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
|
|
.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
|
|
queries the system policy and outputs the default security context associated with the filepath.
|
|
|
|
.B 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
|
|
.TP
|
|
.BI \-m " type"
|
|
Force file type for the lookup.
|
|
Valid types are
|
|
.BR file ", " dir ", "pipe ", " chr_file ", " blk_file ", "
|
|
.BR lnk_file ", " sock_file .
|
|
.TP
|
|
.B \-n
|
|
Do not display path.
|
|
.TP
|
|
.B \-N
|
|
Do not use translations.
|
|
.TP
|
|
.BI \-f " file_context_file"
|
|
Use alternate file_context file
|
|
.TP
|
|
.BI \-p " prefix"
|
|
Use prefix to speed translations
|
|
.TP
|
|
.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)
|