From 4b8b470f064fb676c7794d6d557b82276754e7cb Mon Sep 17 00:00:00 2001 From: William Brown Date: Jan 11 2019 00:42:34 +0000 Subject: Ticket 50122 - Fix incorrect path spec Bug Description: Due to human error, I missed a path spec in a change I made Fix Description: Fix the path https://pagure.io/389-ds-base/issue/50122 Author: William Brown Review by: ??? --- diff --git a/src/lib389/lib389/utils.py b/src/lib389/lib389/utils.py index cb0244c..c06b3bc 100644 --- a/src/lib389/lib389/utils.py +++ b/src/lib389/lib389/utils.py @@ -191,9 +191,9 @@ def selinux_restorecon(path): return try: - selinux.restorecon(slapd[path], recursive=True) + selinux.restorecon(path, recursive=True) except: - log.debug("Failed to run restorecon on: " + slapd[path]) + log.debug("Failed to run restorecon on: " + path) def selinux_label_port(port, remove_label=False): """