Skip to content
Snippets Groups Projects

pressure-vessel: Remap preloadable modules better

Merged Simon McVittie requested to merge wip/t29490 into master
Compare changes
  • Side-by-side
  • Inline
Files
1
  • An entry in LD_PRELOAD may be a bare SONAME like "libMangoHud.so", or a
    path containing special tokens like "/usr/$LIB/libMangoHud.so", or a
    literal path. Only literal paths are going to physically exist on disk.
    
    For a path containing special tokens, we can still try to remap it,
    for example /usr/$LIB/libMangoHud.so to /run/host/usr/$LIB/libMangoHud.so.
    This is imperfect (if the host and container glibc disagree on the
    meaning of $LIB, then we won't load it correctly), but it's better than
    nothing.
    
    For a bare SONAME, we just pass it through as-is for now, as though it
    was a relative path. This is also imperfect, but better than nothing.
    
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
Loading