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(a)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.