Blame SOURCES/bz1716418-dhcpd-keep-selinux-context.patch

716f78
From c8c073ed81884128b0b3955fb0b0bd23661044a2 Mon Sep 17 00:00:00 2001
716f78
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
716f78
Date: Wed, 12 Jun 2019 12:45:08 +0200
716f78
Subject: [PATCH] dhcpd: keep SELinux context
716f78
716f78
---
716f78
 heartbeat/dhcpd | 4 ++--
716f78
 1 file changed, 2 insertions(+), 2 deletions(-)
716f78
716f78
diff --git a/heartbeat/dhcpd b/heartbeat/dhcpd
716f78
index 8b2d8b695..46027b39b 100755
716f78
--- a/heartbeat/dhcpd
716f78
+++ b/heartbeat/dhcpd
716f78
@@ -337,12 +337,12 @@ dhcpd_initialize_chroot() {
716f78
     done | sort -u`
716f78
     for i in $cplibs ; do
716f78
 	if [ -s "$i" ]; then
716f78
-	    cp -pL "$i" "${OCF_RESKEY_chrooted_path}/$libdir/" ||
716f78
+	    cp -aL "$i" "${OCF_RESKEY_chrooted_path}/$libdir/" ||
716f78
 		{ ocf_exit_reason "could not copy $i to chroot jail"; return $OCF_ERR_GENERIC; }
716f78
 	fi
716f78
     done
716f78
 
716f78
-   return $OCF_SUCCESS
716f78
+    return $OCF_SUCCESS
716f78
 }
716f78
 
716f78
 # Initialize a non-chroot environment