More hygienic linking
More hygienic linking
Posted Mar 30, 2024 16:48 UTC (Sat) by smurf (subscriber, #17840)In reply to: More hygienic linking by epa
Parent article: A backdoor in xz
When you load a library, its .init section gets executed. Likewise .fini when the library is unloaded / program ends regularly.
(Disclaimer: the actual details are a bit more hairy than that.)
The code in that section is typically used to set up variables and global objects and whatnot, but it can and in this case indeed does do whatever it damn well pleases. Restricting that capability is … difficult.
