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

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