python/semanage: Document DCCP and SCTP support
PATCH 1/1 python/semanage: Document DCCP and SCTP support
Add DCCP and SCTP protocols in semanage port man page and --help message.
Signed-off-by Vit Mojzis <[email protected]>
--- python/semanage/semanage | 5 +---- python/semanage/semanage-port.8 | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-)
python/semanage/semanage +1 -4
@@ -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
@@ -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
Stephen Smalley
AppliedQuoted 4 lines · Vit Mojzis
Add DCCP and SCTP protocols in semanage port man page and --help message.
Signed-off-by Vit Mojzis <[email protected]>
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
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
-1class 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@@ -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