From patchwork Mon May 16 15:44:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Lautrbach X-Patchwork-Id: 9104051 Return-Path: X-Original-To: patchwork-selinux@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 41D739F1C1 for ; Mon, 16 May 2016 15:46:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3CCBB20160 for ; Mon, 16 May 2016 15:46:38 +0000 (UTC) Received: from emsm-gh1-uea10.nsa.gov (smtp.nsa.gov [8.44.101.8]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 635282026C for ; Mon, 16 May 2016 15:46:37 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.24,627,1454976000"; d="scan'208";a="13725667" IronPort-PHdr: =?us-ascii?q?9a23=3AeWcG0xNLj5TtG+kb8k4l6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0KPn9rarrMEGX3/hxlliBBdydsKIVzbCI+PG5EUU7or+/81k6OKRWUBEEjc?= =?us-ascii?q?hE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZv?= =?us-ascii?q?IaytQ8iJ35Xxjb75qsSbSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf?= =?us-ascii?q?9d32JiKAHbtR/94sCt4MwrqHwI6Loc7coIbYHWN+R9FOQZX3waNDUu6cnqswTT?= =?us-ascii?q?ZRee7XsbFGMNm1xHBBaWwgv9W8LJvzfg/s50xTWAN8T9TfhgQTCr8rtxQhbAki?= =?us-ascii?q?oLNzcltmrQj5oj3+pgvBu9qkknkMbva4aPOa87J/vQ?= X-IPAS-Result: =?us-ascii?q?A2EgBQDV6jlX/wHyM5BdgzeBU7tkJIciTAEBAQEBAQICYie?= =?us-ascii?q?CLYIWAgQBAjcUIA4DCQEBFykICAMBLQwJEQ4LBRgEiA7AJQEkhiWIXhEBaIUNB?= =?us-ascii?q?Zgnjh4CiVSFQQKPQWKDbmyGUYE1AQEB?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea10.nsa.gov with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 May 2016 15:46:26 +0000 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u4GFiiY7002002; Mon, 16 May 2016 11:45:04 -0400 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id u4GFifip219748 for ; Mon, 16 May 2016 11:44:41 -0400 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u4GFifsw002000 for ; Mon, 16 May 2016 11:44:41 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1CIAQAh6jlXkBy3hNFdHYRtpyWQOYQThhECgSZMAQEBAQEBEwEBAQEJCwkJIYRyAgEDeRBRPRoZiC/AFgEwhiWJWIUNBZgnjh4CjxUCj0GCeYFXOjKIBgEBAQ X-IPAS-Result: A1CIAQAh6jlXkBy3hNFdHYRtpyWQOYQThhECgSZMAQEBAQEBEwEBAQEJCwkJIYRyAgEDeRBRPRoZiC/AFgEwhiWJWIUNBZgnjh4CjxUCj0GCeYFXOjKIBgEBAQ X-IronPort-AV: E=Sophos;i="5.24,627,1454994000"; d="scan'208";a="5450419" Received: from emsm-gh1-uea10.corp.nsa.gov (HELO emsm-gh1-uea10.nsa.gov) ([10.208.41.36]) by goalie.tycho.ncsc.mil with ESMTP; 16 May 2016 11:44:39 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3Ak8a9PBVuAhELWQb6mWmKJ7ZexkzV8LGtZVwlr6E/?= =?us-ascii?q?grcLSJyIuqrYZhCGt8tkgFKBZ4jH8fUM07OQ6PCxHzZeqsfY+Fk5M7VyFDY9wf?= =?us-ascii?q?0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5?= =?us-ascii?q?K6zPF5LIiIzvjqbpq8yVOVsD1WP1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd?= =?us-ascii?q?5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu2pN5g/GKdVCDUgLnAd+NzgtR6F?= =?us-ascii?q?SxCGoHQbTDY4iB1NVjDI8Auyep7srjHwv+F9kH2COcTrUao+UBy44qtrQQOugy?= =?us-ascii?q?ACYW1quFrLg9B92foI6CmqoAZyltbZ?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0HuAQDm6TlXkBy3hNFdhQqnJZA5hBOGE?= =?us-ascii?q?QKBJkwBAQEBAQECAg8BAQEBCQsJCSEvgi2CFgIBA3kQUT0aGYgvwBYBCyWGJYl?= =?us-ascii?q?YhQ0FmCeOHgKPFQKPQYJ5gVc6MogGAQEB?= X-IPAS-Result: =?us-ascii?q?A0HuAQDm6TlXkBy3hNFdhQqnJZA5hBOGEQKBJkwBAQEBAQE?= =?us-ascii?q?CAg8BAQEBCQsJCSEvgi2CFgIBA3kQUT0aGYgvwBYBCyWGJYlYhQ0FmCeOHgKPF?= =?us-ascii?q?QKPQYJ5gVc6MogGAQEB?= X-IronPort-AV: E=Sophos;i="5.24,627,1454976000"; d="scan'208";a="13725571" Received: from mx1.redhat.com ([209.132.183.28]) by emsm-gh1-uea10.nsa.gov with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 May 2016 15:44:38 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5C01EC03BD53 for ; Mon, 16 May 2016 15:44:37 +0000 (UTC) Received: from hulk.com (ovpn-204-52.brq.redhat.com [10.40.204.52]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u4GFiZcV011229; Mon, 16 May 2016 11:44:36 -0400 From: Petr Lautrbach To: selinux@tycho.nsa.gov Subject: [PATCH] policycoreutils: fix the extract example in semodule.8 Date: Mon, 16 May 2016 17:44:31 +0200 Message-Id: <1463413471-23637-1-git-send-email-plautrba@redhat.com> In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 16 May 2016 15:44:37 +0000 (UTC) X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: MIME-Version: 1.0 Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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