1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-12-22 06:42:07 -05:00

Enable hardened_malloc for Flatpak

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-07-29 10:16:04 -07:00 committed by GitHub
parent 4998051aa3
commit 80a12f1ecc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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