From ca107c186859d4cc2917e364f6081138e271f533 Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 11 Nov 2024 23:11:26 -0700 Subject: [PATCH] Enable hardened_malloc for Flatpak on Fedora --- fedora-gnome/fedora-gnome.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fedora-gnome/fedora-gnome.sh b/fedora-gnome/fedora-gnome.sh index 42b751d..abd4292 100644 --- a/fedora-gnome/fedora-gnome.sh +++ b/fedora-gnome/fedora-gnome.sh @@ -145,6 +145,10 @@ sudo dnf install -y hardened_malloc echo 'libhardened_malloc.so' | sudo tee /etc/ld.so.preload sudo chmod 644 /etc/ld.so.preload +# 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 + # Setup DNF download https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dnf/dnf.conf /etc/dnf/dnf.conf sudo sed -i 's/^metalink=.*/&\&protocol=https/g' /etc/yum.repos.d/*