From patchwork Mon Oct 21 14:37:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vit Mojzis X-Patchwork-Id: 11202381 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 31BF2913 for ; Mon, 21 Oct 2019 14:37:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 107BE20656 for ; Mon, 21 Oct 2019 14:37:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HSduiGnn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726847AbfJUOhu (ORCPT ); Mon, 21 Oct 2019 10:37:50 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:55277 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727309AbfJUOhu (ORCPT ); Mon, 21 Oct 2019 10:37:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571668669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MGx2UYNX59Bws5RB50GvVm5Q9ljARn3FCT+sfG5ziNQ=; b=HSduiGnnUpl5tjzNC9VFXykikT4Mx9/5b+rOR2wAf1mYLWbUOnlMZhJ7OYnmTESA76w7KP P2yDDEtqlQsk5nizZFoMSFUhXMOsrhpRLH00GBYbYTT6XoOi5VHV1gnMSo0RNN+qDx2jvq bbHYNpfFhwEZ02LrzC5QlvWpA00zolE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-274-lAxixlvaMG-tK_XKk_cGew-1; Mon, 21 Oct 2019 10:37:46 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 78DA8107AD31 for ; Mon, 21 Oct 2019 14:37:45 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.43.12.184]) by smtp.corp.redhat.com (Postfix) with ESMTP id F19995D9E5 for ; Mon, 21 Oct 2019 14:37:44 +0000 (UTC) From: Vit Mojzis To: selinux@vger.kernel.org Subject: [PATCH] python/semanage: Document DCCP and SCTP support Date: Mon, 21 Oct 2019 16:37:36 +0200 Message-Id: <20191021143736.13456-1-vmojzis@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: lAxixlvaMG-tK_XKk_cGew-1 X-Mimecast-Spam-Score: 0 Sender: selinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org Add DCCP and SCTP protocols in semanage port man page and --help message. Signed-off-by: Vit Mojzis --- python/semanage/semanage | 5 +---- python/semanage/semanage-port.8 | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/python/semanage/semanage b/python/semanage/semanage index 864f9212..b2fabea6 100644 --- a/python/semanage/semanage +++ b/python/semanage/semanage @@ -73,9 +73,6 @@ usage_interface_dict = {' --add': ('-t TYPE', '-r RANGE', 'interface'), ' --modi usage_boolean = "semanage boolean [-h] [-n] [-N] [-S STORE] [" usage_boolean_dict = {' --modify': ('(', '--on', '|', '--off', ')', 'boolean'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} - - - class CheckRole(argparse.Action): def __call__(self, parser, namespace, value, option_string=None): @@ -248,7 +245,7 @@ SELinux Range for SELinux user defaults to s0. def parser_add_proto(parser, name): parser.add_argument('-p', '--proto', help=_(''' - Protocol for the specified port (tcp|udp) or internet protocol + Protocol for the specified port (tcp|udp|dccp|sctp) or internet protocol version for the specified node (ipv4|ipv6). ''')) diff --git a/python/semanage/semanage-port.8 b/python/semanage/semanage-port.8 index a21287c0..12ec14c2 100644 --- a/python/semanage/semanage-port.8 +++ b/python/semanage/semanage-port.8 @@ -49,7 +49,7 @@ SELinux type for the object MLS/MCS Security Range (MLS/MCS Systems only) SELinux Range for SELinux login mapping defaults to the SELinux user record range. SELinux Range for SELinux user defaults to s0. .TP .I \-p PROTO, \-\-proto PROTO -Protocol for the specified port (tcp|udp) or internet protocol version for the specified node (ipv4|ipv6). +Protocol for the specified port (tcp|udp|dccp|sctp) or internet protocol version for the specified node (ipv4|ipv6). .SH EXAMPLE .nf