Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • GNOME Utility Library GNOME Utility Library
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 66
    • Issues 66
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GNOME Utility LibraryGNOME Utility Library
  • Issues
  • #117

Bubblewrapped thumbnailing fails if /etc/ld.so.cache doesn't exist

This issue was introduced by !22 (merged). On systems that do not have a file named /etc/ld.so.cache (I'm running on Exherbo which uses the filename /etc/ld-${CHOST}.cache instead), all thumbnailing now fails because bwrap can't bind mount that file.

Some thoughts on how this could be fixed:

  • Use --ro-bind-try instead of --ro-bind for /etc/ld.so.cache. This means no cache will be available, but at least it won't fail to launch bwrap.
  • Allow configuring the path for /etc/ld.so.cache. This is not ideal because on Exherbo we actually have multiple cache files - on x86, we have both /etc/ld-i686-pc-linux-gnu.cache and /etc/ld-x86_64-pc-linux-gnu.cache. It's unlikely that someone will use 32bit thumbnailers on a 64bit machine tho, so this is workable.
  • Make the entire /etc directory available to thumbnailers

To be honest, I think the entire /etc directory should really be made available to thumbnailers. There's cases of custom thumbnailers using tools like imagemagick - which often has security mitigations enabled via a configuration file in /etc! And thumbnailers that render text should be able to load fontconfig settings. This would also solve the problem with alternatives in #92 (closed) - we use a similar mechanism with symlinks in /etc for this in Exherbo, too.

Assignee
Assign to
Time tracking