mirror of
https://github.com/tommytran732/QubesOS-Scripts.git
synced 2025-07-22 05:18:41 -04:00
Enable hardened_malloc for Flatpak on Fedora
This commit is contained in:
parent
a405ac8617
commit
ca107c1868
1 changed files with 4 additions and 0 deletions
|
@ -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/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue