From patchwork Wed Jun 29 12:05:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Lautrbach X-Patchwork-Id: 9205007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 72C0B6075F for ; Wed, 29 Jun 2016 12:07:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 614BD28622 for ; Wed, 29 Jun 2016 12:07:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 55FA528659; Wed, 29 Jun 2016 12:07:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received: from emsm-gh1-uea10.nsa.gov (emsm-gh1-uea10.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.wl.linuxfoundation.org (Postfix) with ESMTPS id 1061F28653 for ; Wed, 29 Jun 2016 12:07:33 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.26,546,1459814400"; d="scan'208";a="15115749" IronPort-PHdr: =?us-ascii?q?9a23=3Ax+C2RRyQiFP9n6zXCy+O+j09IxM/srCxBDY+r6Qd?= =?us-ascii?q?0e8WIJqq85mqBkHD//Il1AaPBtSDrasZwLaK+4nbGkU4qa6bt34DdJEeHzQksu?= =?us-ascii?q?4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2WVTerzWI4CIIHV2nbEwu?= =?us-ascii?q?d7yzQ9OZ05j//tvx0qWbWx9Piju5bOE6BzSNhiKViPMrh5B/IL060BrDrygAUe?= =?us-ascii?q?1XwWR1OQDbxE6ktY+N5porzwB887JkrpYBAu3GePEjQLhZCik2G3wk783s8x/Y?= =?us-ascii?q?RE2A4WVPfH8Rl09wDhTfpDXzQ4vruCLxtqIpwC2TINHsR7kcQzmu7653DhTvjX?= =?us-ascii?q?FUZHYC7GjLh5ko3+pgqxW7qkk6mtbZ?= X-IPAS-Result: =?us-ascii?q?A2FqBQB7uXNX/wHyM5BaHoMggVO7PhyHNEwBAQEBAQECAmI?= =?us-ascii?q?ngjKCIgI3FCAOAwkCFyEBBwgIAwEtFR8LBRgEiA/DZyWGKIYXgkgRAWQBhRIFj?= =?us-ascii?q?XyLCYtjglsCiV2FRAKQA1SDcmyHfA0XgR4BAQE?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea10.nsa.gov with ESMTP; 29 Jun 2016 12:06:49 +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 u5TC604Q006503; Wed, 29 Jun 2016 08:06:09 -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 u5TC5vNE054973 for ; Wed, 29 Jun 2016 08:05:57 -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 u5TC5vNv006501 for ; Wed, 29 Jun 2016 08:05:57 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1C9AAADuXNXhxy3hNFaHoRzpkOCAgGOc4QKEoYGgTNMAQEBAQEBEwEBAQoLCQkhhXtJAYEHiDDEC4YohheDPgGFEgWNfIsJi2OCWwKPIQKQA4ILYoFZOjKHfA0XgR4BAQE X-IPAS-Result: A1C9AAADuXNXhxy3hNFaHoRzpkOCAgGOc4QKEoYGgTNMAQEBAQEBEwEBAQoLCQkhhXtJAYEHiDDEC4YohheDPgGFEgWNfIsJi2OCWwKPIQKQA4ILYoFZOjKHfA0XgR4BAQE X-IronPort-AV: E=Sophos;i="5.26,546,1459828800"; d="scan'208";a="5549473" Received: from emsm-gh1-uea11.corp.nsa.gov (HELO emsm-gh1-uea11.nsa.gov) ([10.208.41.37]) by goalie.tycho.ncsc.mil with ESMTP; 29 Jun 2016 08:05:57 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3AL7pBJxxaZayWqCHXCy+O+j09IxM/srCxBDY+r6Qd?= =?us-ascii?q?0ekTIJqq85mqBkHD//Il1AaPBtSDrasZwLaK+4nbGkU4qa6bt34DdJEeHzQksu?= =?us-ascii?q?4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2WVTerzWI4CIIHV2nbEwu?= =?us-ascii?q?d7yzQ9OZ05j//tvx0qWbWx9Piju5bOE6BzSNhiKViPMrh5B/IL060BrDrygAUe?= =?us-ascii?q?1XwWR1OQDbxE6ktY/jtKJkpj9dv/Mn6t5oTbTxf6N+S6dRSjshLTMb/sru4CHO?= =?us-ascii?q?URHHwnIBTn8cmxFIS1zd6BjnQo37uwPgu+Z90TXcNsrzG+NnEQ++5rtmHUe7wB?= =?us-ascii?q?wMMCQ0pTna?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0GtAAADuXNXhxy3hNFaHoRzpkOCAgGOc?= =?us-ascii?q?4QKEoYGgTNMAQEBAQEBAgIPAQEBCgsJCSEvgjKDGkkBgQeIMMQLhiiGF4M+AYU?= =?us-ascii?q?SBY18iwmLY4JbAo8hApADgm2BWToyh3wNF4EeAQEB?= X-IPAS-Result: =?us-ascii?q?A0GtAAADuXNXhxy3hNFaHoRzpkOCAgGOc4QKEoYGgTNMAQE?= =?us-ascii?q?BAQEBAgIPAQEBCgsJCSEvgjKDGkkBgQeIMMQLhiiGF4M+AYUSBY18iwmLY4JbA?= =?us-ascii?q?o8hApADgm2BWToyh3wNF4EeAQEB?= X-IronPort-AV: E=Sophos;i="5.26,546,1459814400"; d="scan'208";a="17276883" Received: from mx1.redhat.com ([209.132.183.28]) by emsm-gh1-uea11.nsa.gov with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jun 2016 12:05:55 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (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 1BCEE80500 for ; Wed, 29 Jun 2016 12:05:54 +0000 (UTC) Received: from rhel-at-redhat.localdomain.com ([10.40.2.167]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u5TC5qRF027191; Wed, 29 Jun 2016 08:05:53 -0400 From: Petr Lautrbach To: selinux@tycho.nsa.gov Subject: [PATCH] policycoreutils: fix [-s STORE] typos in semanage Date: Wed, 29 Jun 2016 14:05:42 +0200 Message-Id: <1467201942-2693-1-git-send-email-plautrba@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 29 Jun 2016 12:05:54 +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-Virus-Scanned: ClamAV using ClamSMTP semanage and semanage man pages used wrong usage of [-S STORE] in synopsis Signed-off-by: Petr Lautrbach --- policycoreutils/semanage/semanage | 14 +++++++------- policycoreutils/semanage/semanage-boolean.8 | 2 +- policycoreutils/semanage/semanage-fcontext.8 | 2 +- policycoreutils/semanage/semanage-interface.8 | 2 +- policycoreutils/semanage/semanage-login.8 | 2 +- policycoreutils/semanage/semanage-node.8 | 2 +- policycoreutils/semanage/semanage-port.8 | 2 +- policycoreutils/semanage/semanage-user.8 | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/policycoreutils/semanage/semanage b/policycoreutils/semanage/semanage index 7489955..954411d 100644 --- a/policycoreutils/semanage/semanage +++ b/policycoreutils/semanage/semanage @@ -45,25 +45,25 @@ except IOError: __builtin__.__dict__['_'] = unicode # define custom usages for selected main actions -usage_login = "semanage login [-h] [-n] [-N] [-s STORE] [" +usage_login = "semanage login [-h] [-n] [-N] [-S STORE] [" usage_login_dict = {' --add': ('-s SEUSER', '-r RANGE', 'LOGIN',), ' --modify': ('-s SEUSER', '-r RANGE', 'LOGIN',), ' --delete': ('LOGIN',), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} -usage_fcontext = "semanage fcontext [-h] [-n] [-N] [-s STORE] [" +usage_fcontext = "semanage fcontext [-h] [-n] [-N] [-S STORE] [" usage_fcontext_dict = {' --add': ('(', '-t TYPE', '-f FTYPE', '-r RANGE', '-s SEUSER', '|', '-e EQUAL', ')', 'FILE_SPEC', ')',), ' --delete': ('(', '-t TYPE', '-f FTYPE', '|', '-e EQUAL', ')', 'FILE_SPEC', ')',), ' --modify': ('(', '-t TYPE', '-f FTYPE', '-r RANGE', '-s SEUSER', '|', '-e EQUAL', ')', 'FILE_SPEC )',), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} -usage_user = "semanage user [-h] [-n] [-N] [-s STORE] [" +usage_user = "semanage user [-h] [-n] [-N] [-S STORE] [" usage_user_dict = {' --add': ('(', '-L LEVEL', '-R ROLES', '-r RANGE', '-s SEUSER', 'selinux_name'')'), ' --delete': ('selinux_name',), ' --modify': ('(', '-L LEVEL', '-R ROLES', '-r RANGE', '-s SEUSER', 'selinux_name', ')'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} -usage_port = "semanage port [-h] [-n] [-N] [-s STORE] [" +usage_port = "semanage port [-h] [-n] [-N] [-S STORE] [" usage_port_dict = {' --add': ('-t TYPE', '-p PROTOCOL', '-r RANGE', '(', 'port_name', '|', 'port_range', ')'), ' --modify': ('-t TYPE', '-p PROTOCOL', '-r RANGE', '(', 'port_name', '|', 'port_range', ')'), ' --delete': ('-p PROTOCOL', '(', 'port_name', '|', 'port_range', ')'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} -usage_node = "semanage node [-h] [-n] [-N] [-s STORE] [" +usage_node = "semanage node [-h] [-n] [-N] [-S STORE] [" usage_node_dict = {' --add': ('-M NETMASK', '-p PROTOCOL', '-t TYPE', '-r RANGE', 'node'), ' --modify': ('-M NETMASK', '-p PROTOCOL', '-t TYPE', '-r RANGE', 'node'), ' --delete': ('-M NETMASK', '-p PROTOCOL', 'node'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} -usage_interface = "semanage interface [-h] [-n] [-N] [-s STORE] [" +usage_interface = "semanage interface [-h] [-n] [-N] [-S STORE] [" usage_interface_dict = {' --add': ('-t TYPE', '-r RANGE', 'interface'), ' --modify': ('-t TYPE', '-r RANGE', 'interface'), ' --delete': ('interface',), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} -usage_boolean = "semanage boolean [-h] [-n] [-N] [-s STORE] [" +usage_boolean = "semanage boolean [-h] [-n] [-N] [-S STORE] [" usage_boolean_dict = {' --modify': ('(', '--on', '|', '--off', ')', 'boolean'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} import sepolicy diff --git a/policycoreutils/semanage/semanage-boolean.8 b/policycoreutils/semanage/semanage-boolean.8 index 6eb6b69..0c48587 100644 --- a/policycoreutils/semanage/semanage-boolean.8 +++ b/policycoreutils/semanage/semanage-boolean.8 @@ -2,7 +2,7 @@ .SH "NAME" semanage\-boolean \- SELinux Policy Management boolean tool .SH "SYNOPSIS" -.B semanage boolean [\-h] [\-n] [\-N] [\-s STORE] [ \-\-extract | \-\-deleteall | \-\-list [\-C] | \-\-modify ( \-\-on | \-\-off ) boolean ] +.B semanage boolean [\-h] [\-n] [\-N] [\-S STORE] [ \-\-extract | \-\-deleteall | \-\-list [\-C] | \-\-modify ( \-\-on | \-\-off ) boolean ] .SH "DESCRIPTION" semanage is used to configure certain elements of diff --git a/policycoreutils/semanage/semanage-fcontext.8 b/policycoreutils/semanage/semanage-fcontext.8 index 7bbb0af..07c2831 100644 --- a/policycoreutils/semanage/semanage-fcontext.8 +++ b/policycoreutils/semanage/semanage-fcontext.8 @@ -3,7 +3,7 @@ semanage\-fcontext \- SELinux Policy Management file context tool .SH "SYNOPSIS" -.B semanage fcontext [\-h] [\-n] [\-N] [\-s STORE] [ \-\-add ( \-t TYPE \-f FTYPE \-r RANGE \-s SEUSER | \-e EQUAL ) FILE_SPEC ) | \-\-delete ( \-t TYPE \-f FTYPE | \-e EQUAL ) FILE_SPEC ) | \-\-deleteall | \-\-extract | \-\-list [\-C] | \-\-modify ( \-t TYPE \-f FTYPE \-r RANGE \-s SEUSER | \-e EQUAL ) FILE_SPEC ) ] +.B semanage fcontext [\-h] [\-n] [\-N] [\-S STORE] [ \-\-add ( \-t TYPE \-f FTYPE \-r RANGE \-s SEUSER | \-e EQUAL ) FILE_SPEC ) | \-\-delete ( \-t TYPE \-f FTYPE | \-e EQUAL ) FILE_SPEC ) | \-\-deleteall | \-\-extract | \-\-list [\-C] | \-\-modify ( \-t TYPE \-f FTYPE \-r RANGE \-s SEUSER | \-e EQUAL ) FILE_SPEC ) ] .SH "DESCRIPTION" semanage is used to configure certain elements of diff --git a/policycoreutils/semanage/semanage-interface.8 b/policycoreutils/semanage/semanage-interface.8 index fe8b250..fbab4b9 100644 --- a/policycoreutils/semanage/semanage-interface.8 +++ b/policycoreutils/semanage/semanage-interface.8 @@ -2,7 +2,7 @@ .SH "NAME" .B semanage\-interface \- SELinux Policy Management network interface tool .SH "SYNOPSIS" -.B semanage interface [\-h] [\-n] [\-N] [\-s STORE] [ \-\-add \-t TYPE \-r RANGE interface | \-\-delete interface | \-\-deleteall | \-\-extract | \-\-list [\-C] | \-\-modify \-t TYPE \-r RANGE interface ] +.B semanage interface [\-h] [\-n] [\-N] [\-S STORE] [ \-\-add \-t TYPE \-r RANGE interface | \-\-delete interface | \-\-deleteall | \-\-extract | \-\-list [\-C] | \-\-modify \-t TYPE \-r RANGE interface ] .SH "DESCRIPTION" semanage is used to configure certain elements of diff --git a/policycoreutils/semanage/semanage-login.8 b/policycoreutils/semanage/semanage-login.8 index 7cc5fde..a2397a0 100644 --- a/policycoreutils/semanage/semanage-login.8 +++ b/policycoreutils/semanage/semanage-login.8 @@ -2,7 +2,7 @@ .SH "NAME" .B semanage\-login \- SELinux Policy Management linux user to SELinux User mapping tool .SH "SYNOPSIS" -.B semanage login [\-h] [\-n] [\-N] [\-s STORE] [ \-\-add \-s SEUSER \-r RANGE LOGIN | \-\-delete LOGIN | \-\-deleteall | \-\-extract | \-\-list [\-C] | \-\-modify \-s SEUSER \-r RANGE LOGIN ] +.B semanage login [\-h] [\-n] [\-N] [\-S STORE] [ \-\-add \-s SEUSER \-r RANGE LOGIN | \-\-delete LOGIN | \-\-deleteall | \-\-extract | \-\-list [\-C] | \-\-modify \-s SEUSER \-r RANGE LOGIN ] .SH "DESCRIPTION" semanage is used to configure certain elements of diff --git a/policycoreutils/semanage/semanage-node.8 b/policycoreutils/semanage/semanage-node.8 index 0a2160d..e0b0e56 100644 --- a/policycoreutils/semanage/semanage-node.8 +++ b/policycoreutils/semanage/semanage-node.8 @@ -2,7 +2,7 @@ .SH "NAME" .B semanage\-node \- SELinux Policy Management node mapping tool .SH "SYNOPSIS" -.B semanage node [\-h] [\-n] [\-N] [\-s STORE] [ \-\-add \-M NETMASK \-p PROTOCOL \-t TYPE \-r RANGE node | \-\-delete \-M NETMASK \-p PROTOCOL node | \-\-deleteall | \-\-extract | \-\-list [\-C] | \-\-modify \-M NETMASK \-p PROTOCOL \-t TYPE \-r RANGE node ] +.B semanage node [\-h] [\-n] [\-N] [\-S STORE] [ \-\-add \-M NETMASK \-p PROTOCOL \-t TYPE \-r RANGE node | \-\-delete \-M NETMASK \-p PROTOCOL node | \-\-deleteall | \-\-extract | \-\-list [\-C] | \-\-modify \-M NETMASK \-p PROTOCOL \-t TYPE \-r RANGE node ] .SH "DESCRIPTION" semanage is used to configure certain elements of diff --git a/policycoreutils/semanage/semanage-port.8 b/policycoreutils/semanage/semanage-port.8 index 5a6a57f..666120e 100644 --- a/policycoreutils/semanage/semanage-port.8 +++ b/policycoreutils/semanage/semanage-port.8 @@ -2,7 +2,7 @@ .SH "NAME" .B semanage\-port \- SELinux Policy Management port mapping tool .SH "SYNOPSIS" -.B semanage port [\-h] [\-n] [\-N] [\-s STORE] [ \-\-add \-t TYPE \-p PROTOCOL \-r RANGE port_name | port_range | \-\-delete \-p PROTOCOL port_name | port_range | \-\-deleteall | \-\-extract | \-\-list [\-C] | \-\-modify \-t TYPE \-p PROTOCOL \-r RANGE port_name | port_range ] +.B semanage port [\-h] [\-n] [\-N] [\-S STORE] [ \-\-add \-t TYPE \-p PROTOCOL \-r RANGE port_name | port_range | \-\-delete \-p PROTOCOL port_name | port_range | \-\-deleteall | \-\-extract | \-\-list [\-C] | \-\-modify \-t TYPE \-p PROTOCOL \-r RANGE port_name | port_range ] .SH "DESCRIPTION" semanage is used to configure certain elements of SELinux policy without requiring modification to or recompilation from policy sources. semanage port controls the port number to port type definitions. diff --git a/policycoreutils/semanage/semanage-user.8 b/policycoreutils/semanage/semanage-user.8 index 0e29334..2df03dd 100644 --- a/policycoreutils/semanage/semanage-user.8 +++ b/policycoreutils/semanage/semanage-user.8 @@ -2,7 +2,7 @@ .SH "NAME" .B semanage\-user \- SELinux Policy Management SELinux User mapping tool .SH "SYNOPSIS" -.B semanage user [\-h] [\-n] [\-N] [\-s STORE] [ \-\-add ( \-L LEVEL \-R ROLES \-r RANGE \-s SEUSER selinux_name) | \-\-delete selinux_name | \-\-deleteall | \-\-extract | \-\-list [\-C] | \-\-modify ( \-L LEVEL \-R ROLES \-r RANGE \-s SEUSER selinux_name ) ] +.B semanage user [\-h] [\-n] [\-N] [\-S STORE] [ \-\-add ( \-L LEVEL \-R ROLES \-r RANGE \-s SEUSER selinux_name) | \-\-delete selinux_name | \-\-deleteall | \-\-extract | \-\-list [\-C] | \-\-modify ( \-L LEVEL \-R ROLES \-r RANGE \-s SEUSER selinux_name ) ] .SH "DESCRIPTION" semanage is used to configure certain elements of