seport.py: Minor changes in docstrings

pull/18777/head
Dan Keder 9 years ago committed by Matt Clay
parent d1f976f3df
commit cda2aeb6c0

@ -87,10 +87,10 @@ def semanage_port_exists(seport, port, proto):
:param seport: Instance of seobject.portRecords :param seport: Instance of seobject.portRecords
:type port: basestring :type port: str
:param port: Port or port range (example: "8080", "8080-9090") :param port: Port or port range (example: "8080", "8080-9090")
:type proto: basestring :type proto: str
:param proto: Protocol ('tcp' or 'udp') :param proto: Protocol ('tcp' or 'udp')
:rtype: bool :rtype: bool
@ -113,19 +113,19 @@ def semanage_port_add(module, ports, proto, setype, do_reload, serange='s0', ses
:type ports: list :type ports: list
:param ports: List of ports and port ranges to add (e.g. ["8080", "8080-9090"]) :param ports: List of ports and port ranges to add (e.g. ["8080", "8080-9090"])
:type proto: basestring :type proto: str
:param proto: Protocol ('tcp' or 'udp') :param proto: Protocol ('tcp' or 'udp')
:type setype: basestring :type setype: str
:param setype: SELinux type :param setype: SELinux type
:type do_reload: bool :type do_reload: bool
:param do_reload: Whether to reload SELinux policy after commit :param do_reload: Whether to reload SELinux policy after commit
:type serange: basestring :type serange: str
:param serange: SELinux MLS/MCS range (defaults to 's0') :param serange: SELinux MLS/MCS range (defaults to 's0')
:type sestore: basestring :type sestore: str
:param sestore: SELinux store :param sestore: SELinux store
:rtype: bool :rtype: bool
@ -162,13 +162,13 @@ def semanage_port_del(module, ports, proto, do_reload, sestore=''):
:type ports: list :type ports: list
:param ports: List of ports and port ranges to delete (e.g. ["8080", "8080-9090"]) :param ports: List of ports and port ranges to delete (e.g. ["8080", "8080-9090"])
:type proto: basestring :type proto: str
:param proto: Protocol ('tcp' or 'udp') :param proto: Protocol ('tcp' or 'udp')
:type do_reload: bool :type do_reload: bool
:param do_reload: Whether to reload SELinux policy after commit :param do_reload: Whether to reload SELinux policy after commit
:type sestore: basestring :type sestore: str
:param sestore: SELinux store :param sestore: SELinux store
:rtype: bool :rtype: bool

Loading…
Cancel
Save