diff mbox

policycoreutils: fix the extract example in semodule.8

Message ID 1463413471-23637-1-git-send-email-plautrba@redhat.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Petr Lautrbach May 16, 2016, 3:44 p.m. UTC
The man page's example suggested to use -g instead of -E and used --cil
and --hll options on the wrong positions.

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
---
 policycoreutils/semodule/semodule.8 | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Comments

Stephen Smalley May 16, 2016, 8:47 p.m. UTC | #1
On 05/16/2016 11:44 AM, Petr Lautrbach wrote:
> The man page's example suggested to use -g instead of -E and used --cil
> and --hll options on the wrong positions.

Thanks, applied.

> 
> Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
> ---
>  policycoreutils/semodule/semodule.8 | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/policycoreutils/semodule/semodule.8 b/policycoreutils/semodule/semodule.8
> index 6db390c..68e95ab 100644
> --- a/policycoreutils/semodule/semodule.8
> +++ b/policycoreutils/semodule/semodule.8
> @@ -88,10 +88,12 @@ Use an alternate path for the policy store root
>  be verbose
>  .TP
>  .B  \-c,\-\-cil
> -Extract module as a CIL file. This only affects the \-\-extract option.
> +Extract module as a CIL file. This only affects the \-\-extract option and
> +only modules listed in \-\-extract after this option.
>  .TP
>  .B  \-H,\-\-hll
> -Extract module as an HLL file. This only affects the \-\-extract option.
> +Extract module as an HLL file. This only affects the \-\-extract option and
> +only modules listed in \-\-extract after this option.
>  
>  .SH EXAMPLE
>  .nf
> @@ -121,7 +123,7 @@ $ semodule \-B \-p "/tmp"
>  $ semodule \-B \-S "/tmp/var/lib/selinux"
>  # Write the HLL version of puppet and the CIL version of wireshark
>  # modules at priority 400 to the current working directory
> -$ semodule \-X 400 \-g wireshark \-\-cil \-g puppet \-\-hll
> +$ semodule \-X 400 \-\-hll \-E puppet \-\-cil \-E wireshark
>  .fi
>  
>  .SH SEE ALSO
>
diff mbox

Patch

diff --git a/policycoreutils/semodule/semodule.8 b/policycoreutils/semodule/semodule.8
index 6db390c..68e95ab 100644
--- a/policycoreutils/semodule/semodule.8
+++ b/policycoreutils/semodule/semodule.8
@@ -88,10 +88,12 @@  Use an alternate path for the policy store root
 be verbose
 .TP
 .B  \-c,\-\-cil
-Extract module as a CIL file. This only affects the \-\-extract option.
+Extract module as a CIL file. This only affects the \-\-extract option and
+only modules listed in \-\-extract after this option.
 .TP
 .B  \-H,\-\-hll
-Extract module as an HLL file. This only affects the \-\-extract option.
+Extract module as an HLL file. This only affects the \-\-extract option and
+only modules listed in \-\-extract after this option.
 
 .SH EXAMPLE
 .nf
@@ -121,7 +123,7 @@  $ semodule \-B \-p "/tmp"
 $ semodule \-B \-S "/tmp/var/lib/selinux"
 # Write the HLL version of puppet and the CIL version of wireshark
 # modules at priority 400 to the current working directory
-$ semodule \-X 400 \-g wireshark \-\-cil \-g puppet \-\-hll
+$ semodule \-X 400 \-\-hll \-E puppet \-\-cil \-E wireshark
 .fi
 
 .SH SEE ALSO