After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795602 - Bwrap thumbnailer call doesn't bind /etc/ld.so.cache
Bwrap thumbnailer call doesn't bind /etc/ld.so.cache
Status: RESOLVED OBSOLETE
Product: gnome-desktop
Classification: Core
Component: Thumbnail
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Desktop Maintainers
Desktop Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-04-27 11:01 UTC by Mike Auty
Modified: 2018-09-21 16:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for the bwrap call gnome-desktop makes when thumbnailing to take ld.so.cache into account (562 bytes, patch)
2018-04-27 11:01 UTC, Mike Auty
none Details | Review

Description Mike Auty 2018-04-27 11:01:35 UTC
Created attachment 371456 [details] [review]
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...
Comment 1 GNOME Infrastructure Team 2018-09-21 16:50:53 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-desktop/issues/81.