checkpolicy: update documentation
Add missing command-line arguments to synopsis and highlight mentions of other tools in man pages. Add missing space between arguments in help message. Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
parent
e32809155b
commit
7a1c7e7a82
3 changed files with 13 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
|||
checkmodule \- SELinux policy module compiler
|
||||
.SH SYNOPSIS
|
||||
.B checkmodule
|
||||
.I "[\-h] [\-b] [\-C] [\-m] [\-M] [\-U handle_unknown ] [\-V] [\-o output_file] [input_file]"
|
||||
.I "[\-h] [\-b] [\-c policy_version] [\-C] [\-E] [\-m] [\-M] [\-U handle_unknown] [\-V] [\-o output_file] [input_file]"
|
||||
.SH "DESCRIPTION"
|
||||
This manual page describes the
|
||||
.BR checkmodule
|
||||
|
@ -15,9 +15,12 @@ into a binary representation. It can generate either a base policy
|
|||
module (default) or a non-base policy module (\-m option); typically,
|
||||
you would build a non-base policy module to add to an existing module
|
||||
store that already has a base module provided by the base policy. Use
|
||||
semodule_package to combine this module with its optional file
|
||||
contexts to create a policy package, and then use semodule to install
|
||||
the module package into the module store and load the resulting policy.
|
||||
.B semodule_package(8)
|
||||
to combine this module with its optional file
|
||||
contexts to create a policy package, and then use
|
||||
.B semodule(8)
|
||||
to install the module package into the module store and load the resulting
|
||||
policy.
|
||||
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
checkpolicy \- SELinux policy compiler
|
||||
.SH SYNOPSIS
|
||||
.B checkpolicy
|
||||
.I "[\-b[F]] [\-C] [\-d] [\-U handle_unknown (allow,deny,reject)] [\-M] [\-c policyvers] [\-o output_file|\-] [\-S] [\-t target_platform (selinux,xen)] [\-V] [input_file]"
|
||||
.I "[\-b[F]] [\-C] [\-d] [\-U handle_unknown (allow,deny,reject)] [\-M] [\-c policyvers] [\-o output_file|\-] [\-S] [\-t target_platform (selinux,xen)] [\-O] [\-E] [\-V] [input_file]"
|
||||
.br
|
||||
.SH "DESCRIPTION"
|
||||
This manual page describes the
|
||||
|
@ -13,8 +13,10 @@ command.
|
|||
.B checkpolicy
|
||||
is a program that checks and compiles a SELinux security policy configuration
|
||||
into a binary representation that can be loaded into the kernel. If no
|
||||
input file name is specified, checkpolicy will attempt to read from
|
||||
policy.conf or policy, depending on whether the \-b flag is specified.
|
||||
input file name is specified,
|
||||
.B checkpolicy
|
||||
will attempt to read from policy.conf or policy, depending on whether the \-b
|
||||
flag is specified.
|
||||
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
|
|
|
@ -109,7 +109,7 @@ static __attribute__((__noreturn__)) void usage(const char *progname)
|
|||
{
|
||||
printf
|
||||
("usage: %s [-b[F]] [-C] [-d] [-U handle_unknown (allow,deny,reject)] [-M] "
|
||||
"[-c policyvers (%d-%d)] [-o output_file|-] [-S] [-O]"
|
||||
"[-c policyvers (%d-%d)] [-o output_file|-] [-S] [-O] "
|
||||
"[-t target_platform (selinux,xen)] [-E] [-V] [input_file]\n",
|
||||
progname, POLICYDB_VERSION_MIN, POLICYDB_VERSION_MAX);
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in a new issue