mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #7133] fontforge: sandboxed libreoffice compilation on Gentoo uses LD_PRELOAD, triggers assertion failures #3498
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3498
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hlein on GitHub (Apr 10, 2026).
Original GitHub issue: https://github.com/netblue30/firejail/issues/7133
Description
Compiling
libreofficeon Gentoo fails whenfontforgeisfirejailed, because the build process invokesfontforgewithLD_PRELOADset.Steps to Reproduce
Try to emerge
libreoffice. Other build-from-source distros that use anLD_PRELOADlibrary for build sandboxing would have similar issues.Expected behavior
Libreoffice should compile.
Actual behavior
Dies with:
libsandbox.sois a library used to instrument/isolate build processes (thinkfakerootorInstallWatch. It's not a security boundary, more for QA to make sure a build doesn't reference things outside its build env / stated dependencies, etc.Behavior without a profile
Would also fail because the
LD_PRELOADcheck is not profile-dependent.Additional context
I already commented about this on an existing issue discussing the
assert, #6532However, creating a dedicated issue until bigger changes to the asserts on
LD_PRELOADcan be considered. I'll probably only disablefontforgein the Gentoo package'sfirecfg.config, rather than request it being disabled by default, but would like this bug to be discoverable by others who encounter something similar on Arch or whatnot.Environment
uname -srm):Linux 6.6.119-gentoo x86_64mesa 1:24.3.3-2"):
media-gfx/fontforge-20230101-r2, while trying toemerge app-office/libreoffice-25.2.7.2-r1firejail --version):firejail version 0.9.80was compiled (
git rev-parse HEAD):Checklist
firejail /usr/bin/vlcinstead offirejail vlc; seehttps://github.com/netblue30/firejail/issues/2877)/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)