Blame SOURCES/bz1719684-dhcpd-keep-SELinux-context-chroot.patch

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