From 80bb7c00d85373d456bb25aecfb55d99aa0e58dd Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 5 Mar 2024 14:20:13 -0700 Subject: [PATCH] Add ARM support for hardened_malloc on Red Hat systems Signed-off-by: Tommy --- Fedora-Workstation-39.sh | 3 +++ RHEL-Server-9.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Fedora-Workstation-39.sh b/Fedora-Workstation-39.sh index e345163..ef6eae4 100644 --- a/Fedora-Workstation-39.sh +++ b/Fedora-Workstation-39.sh @@ -223,6 +223,9 @@ if [ "$virt_type" = '' ] || [ "${MACHINE_TYPE}" == 'x86_64' ]; then echo 'libhardened_malloc.so' | sudo tee /etc/ld.so.preload sudo dracut -f fi +elif [ "${MACHINE_TYPE}" == 'aarch64' ]; then + sudo dnf copr enable secureblue/hardened_malloc -y + sudo dnf install hardened_malloc -y fi output 'The script is done. You can also remove gnome-terminal since gnome-console will replace it.' \ No newline at end of file diff --git a/RHEL-Server-9.sh b/RHEL-Server-9.sh index bce5ba8..40d03b9 100644 --- a/RHEL-Server-9.sh +++ b/RHEL-Server-9.sh @@ -213,6 +213,9 @@ if [ "$virt_type" = '' ] || [ "${MACHINE_TYPE}" == 'x86_64' ]; then echo 'libhardened_malloc.so' | sudo tee /etc/ld.so.preload sudo dracut -f fi +elif [ "${MACHINE_TYPE}" == 'aarch64' ]; then + sudo dnf copr enable secureblue/hardened_malloc -y + sudo dnf install hardened_malloc -y fi # Setup fwupd