Skip to contentSkip to conversation

python/semanage: Document DCCP and SCTP support

PATCH Applied Vit Mojzis 2 participants 2 messages Oct 21, 2019 – Oct 23, 2019 SELinux security module

lore
Share & tools
lore

Vit Mojzis

author
#0 lore raw

PATCH 1/1 python/semanage: Document DCCP and SCTP support

Add DCCP and SCTP protocols in semanage port man page and --help message.

---
 python/semanage/semanage        | 5 +----
 python/semanage/semanage-port.8 | 2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)
python/semanage/semanage +1 -4
index 864f9212..b2fabea6 100644
@@ -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).
 '''))
 
python/semanage/semanage-port.8 +1 -1
index a21287c0..12ec14c2 100644
@@ -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
Signature · 1 line
2.21.0
#1 lore raw
Quoted 4 lines · Vit Mojzis

Add DCCP and SCTP protocols in semanage port man page and --help message.

Thanks, applied but see note below for future reference.

Quoted 10 lines
---
  python/semanage/semanage        | 5 +----
  python/semanage/semanage-port.8 | 2 +-
  2 files changed, 2 insertions(+), 5 deletions(-)
python/semanage/semanage +0 -0
index 864f9212..b2fabea6 100644

python/semanage/semanage usage_interface_dict = {' --add': ('-t TYPE', '-r RANGE', 'interface'), ' --modi · line 78

Quoted 6 lines
python/semanage/semanage +0 -3
@@ -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': ('',)}
 
-
-
-

Generally you should avoid unrelated whitespace fixes in a patch and put those in a separate patch.

Quoted 26 lines
python/semanage/semanage +1 -1
  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).
  '''))
 
python/semanage/semanage-port.8 +1 -1
index a21287c0..12ec14c2 100644
@@ -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