Bwrap thumbnailer call doesn't bind /etc/ld.so.cache
Submitted by Mike Auty
Assigned to Desktop Maintainers
Created attachment 371456 Patch for the bwrap call gnome-desktop makes when thumbnailing to take ld.so.cache into account
This issue is present in both gnome-desktop 3.26.2 and 3.28.1 (no other versions tested).
The thumbnailing procedure breaks on linux systems (since bwrap/seccomp support is always enabled) where libraries required by the thumbnailers live under directories specified in /etc/ld.so.conf and /etc/ld.so.conf.d (therefore cached in /etc/ld.so.cache).
Gentoo is an OS where libstdc++ lives under /usr/lib/gcc/x86_64-pc-linux-gnu/
<version>. As such, totem-video-thumbnailer fails to run within bwrap using the standard parameter list. This can be resolved by adding an ro-bind to /etc/ld.so.cache (adding the .conf files won't resolve the problem because the .cache doesn't seem to automatically get regenerated).
The attached patch resolves the problem for 3.26.2. Please let me know if you need any additional information...
Patch 371456, "Patch for the bwrap call gnome-desktop makes when thumbnailing to take ld.so.cache into account":