Hacker News new | past | comments | ask | show | jobs | submit login

Does anyone know why does `ldd` use the loader? Only to resolve the names? It seems that you can get the basic names from objdump too (dynamic section / `NEEDED` symbols)

It seems that it's easy to "secure" this bug... if you have more caps than the owner of the loader, warn that you need a special flag and exit. Selinux and similar might make that decision harder though...




My guess is just not wanting to duplicate functionality. The loader needs to figure out what libraries to load at runtime, and it's easier and more reliable to just ask the loader than to write code that does the same thing.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: