Browse Source

Ticket 49814 - skip standard ports for selinux labelling

Description:  Skip labelling ports that use the the standard
              port numbers (389, 636).

https://pagure.io/389-ds-base/issue/49814

Reviewed by: mreynolds(one line commit rule)
Mark Reynolds 7 years ago
parent
commit
3cb911d590
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib389/lib389/utils.py

+ 1 - 1
src/lib389/lib389/utils.py

@@ -184,7 +184,7 @@ def selinux_label_port(port, remove_label=False):
     :raises: ValueError: Error message
     """
 
-    if not selinux.is_selinux_enabled():
+    if not selinux.is_selinux_enabled() or port == 389 or port == 636:
         return
 
     label_set = False