Skip to content
Snippets Groups Projects

wrap: Set the env var to adjust libshared-library-guard configuration path

Merged Ludovico de Nittis requested to merge wip/denittis/libshared_library_guard into master

When inside a Flatpak container, we expect that libshared-library-guard.so looks for its blocklist configuration in /app/etc/freedesktop-sdk.ld.so.blockedlist.

This will not work because we bind /app in /run/parent/app. For this reason, when we detect this situation, we set the environment variable SHARED_LIBRARY_GUARD_CONFIG to point libshared-library-guard in the correct path.


This requires https://github.com/flathub/com.valvesoftware.Steam/pull/754 and more importantly https://gitlab.com/freedesktop-sdk/shared-library-guard/-/merge_requests/23

If the upstream patches don't get merged, as an alternative, we could bind in the sub-sandbox libshared-library-guard.so and freedesktop-sdk.ld.so.blockedlist in the same /app directory

/cc @smcv

Edited by Ludovico de Nittis

Merge request reports

Merge request pipeline #13410 passed

Merge request pipeline passed for fb8e8e6f

Merged by Simon McVittieSimon McVittie 3 years ago (Jun 2, 2021 3:57pm UTC)

Loading

Pipeline #13717 passed

Pipeline passed for 95612385 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading