Linux - How to launch an application while ignoring /etc/ld.so.preload?

I want to try using hardened malloc again mainly for system processes, but some programs break with it. I know that I can have the program use something else with the LD_PRELOAD variable, but then I must guess every time which library to load (which is annoying). How can I make a program ignore the ld.so.preload file entirely?

You can easily use it for all processes with my package for Fedora & Arch Linux: GitHub - divestedcg/rpm-hardened_malloc: Unofficial micro-architecture optimized hardened_malloc package

It includes numerous workarounds and you can use the nohm alias when starting a program if necessary.

2 Likes

This is cool, thanks. Any plans on including this package in the AUR?

I only maintain those PKGBUILDs in case SHTF with Red Hat/Fedora, haven’t actually used Arch in quite a few years.