Re:Using LD_PRELOAD to cheat, inject features and investigat...
by aidenn0 on Friday September 08, 2023 @06:05PM
(#37439943)
Because disk and RAM are cheap and that's a huge "If"
[ Parent
| on HN ]
Re:Using LD_PRELOAD to cheat, inject features and investigat...
by jonhohle on Friday September 08, 2023 @08:29PM
(#37440986)
There’s also other security considerations. As an operator or builder, do you want to patch a library (say OpenSSL) to keep your system up to date or patch every binary. If changing a dependency requires rebuilding all consumers recursively, the there’s not a huge benefit.
Re:Using LD_PRELOAD to cheat, inject features and investigat...
by aidenn0 on Friday September 08, 2023 @10:55PM
(#37441789)
I think in the specific case of security issues, more bugs have been fixed by upgrading dynamic dependencies than introduced. That's just my gut feeling though, and I'd like to see data.
Re:Using LD_PRELOAD to cheat, inject features and investigat...
by rewmie on Saturday September 09, 2023 @06:56AM
(#37443988)
> I think in the specific case of security issues, more bugs have been fixed by upgrading dynamic dependencies than introduced.
That's just your personal assertion, which is entirely baseless and unsubstantiated. It's ok to have beliefs, but instead of pushing them as truths you should at least start by doing some cursory research to see if they are even plausible. And yours isn't.
Re:Using LD_PRELOAD to cheat, inject features and investigat...
by klysm on Saturday September 09, 2023 @08:33AM
(#37444584)
He qualified it saying it was a hunch… I don’t see where he pushed it as a truth
Re:Using LD_PRELOAD to cheat, inject features and investigat...
by aidenn0 on Saturday September 09, 2023 @07:17PM
(#37451258)
It's not entirely unsubstantiated, as my experience is that the former is very common. The latter is much harder to observe though, so it's just an impression.
I'm very interested in your assertion that my impression is implausible though. What evidence do you have?
Re:Using LD_PRELOAD to cheat, inject features and investigat...
by selfhoster11 on Saturday September 09, 2023 @03:51AM
(#37443174)
Only cheap if you're running on huge servers. End user machines and edge compute are more constrained, so one needs to be more polite with resource use there.
Re:Using LD_PRELOAD to cheat, inject features and investigat...
by kreetx on Saturday September 09, 2023 @08:12AM
(#37444424)
It seems to me that deploying a static binary is for situations where one doesn't have control over the underlying system, or where shipping dependencies hasn't been solved, i.e, you just want to ship one binary.