From 80a12f1ecccc303bb0949b39cca2e44d6dac492d Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 29 Jul 2024 10:16:04 -0700 Subject: [PATCH] Enable hardened_malloc for Flatpak Signed-off-by: Tommy --- Fedora-Workstation-40.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Fedora-Workstation-40.sh b/Fedora-Workstation-40.sh index 9bd7a4a..6778795 100644 --- a/Fedora-Workstation-40.sh +++ b/Fedora-Workstation-40.sh @@ -201,6 +201,10 @@ flatpak --user override com.github.tchx84.Flatseal --filesystem=/var/lib/flatpak flatpak --user override org.gnome.Extensions --talk-name=org.gnome.Shell.Extensions flatpak update -y +# Enable hardened_malloc for Flatpak +sudo flatpak override --system --filesystem=host-os:ro --env=LD_PRELOAD=/var/run/host/usr/lib64/libhardened_malloc.so +flatpak override --user --filesystem=host-os:ro --env=LD_PRELOAD=/var/run/host/usr/lib64/libhardened_malloc.so + # Install Microsoft Edge if x86_64 MACHINE_TYPE=$(uname -m) if [ "${MACHINE_TYPE}" = 'x86_64' ]; then