[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-directory-commits
Subject:    =?utf-8?q?=5B389-commits=5D?= [389-ds-base] branch master updated: Ticket 49814 - skip standard port
From:       git () pagure ! io (git repository hosting)
Date:       2018-10-24 17:44:52
Message-ID: 20181024174452.18765.84683 () pagure01 ! fedoraproject ! org
[Download RAW message or body]

This is an automated email from the git hooks/post-receive script.

mreynolds pushed a commit to branch master
in repository 389-ds-base.

The following commit(s) were added to refs/heads/master by this push:
     new 3cb911d  Ticket 49814 - skip standard ports for selinux labelling
3cb911d is described below

commit 3cb911d59035b06abc88e2b0ea5e069bdb9238bb
Author: Mark Reynolds <mreynolds@redhat.com>
AuthorDate: Wed Oct 24 13:42:46 2018 -0400

    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)
---
 src/lib389/lib389/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib389/lib389/utils.py b/src/lib389/lib389/utils.py
index 68a06e3..8b1609e 100644
--- a/src/lib389/lib389/utils.py
+++ b/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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
389-commits mailing list -- 389-commits@lists.fedoraproject.org
To unsubscribe send an email to 389-commits-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-commits@lists.fedoraproject.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic