WEDNESDAY, FEBRUARY 21, 2024
elf — Stalled
Add system-wide tunables: cache ld.so.cache
Caches ld.so.cache in memory, re-reading only on changes, enabling more intensive security checks and handling cache corruption.
This patch caches the ld.so.cache in memory, re-reading it only when it changes on disk. This allows for more intensive security checks without significantly impacting performance and provides resilience against cache corruption. The load/check logic is broken out to allow independent loading of the cache for purposes like examining extensions.
Technical Tradeoffs
- Caching improves performance but adds memory overhead.
- More intensive security checks become feasible but may add complexity.
- Breaking out load/check logic increases code modularity but may introduce new dependencies.