mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #926] private-bin fails when executing binaries in /usr/lib #630
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#630
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 @valoq on GitHub (Nov 19, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/926
On debian testing mupdf fails to start (using the git version from today)
The reason is private-bin mupdf
When investigating why the private-bin restriction prevents mupdf from starting it turned out that
on debian stetch (testing) /usr/bin/mupdf is only a helper binary executing /usr/lib/mupdf/mupdf-x11
however adding mupdf-x11 or /usr/lib/mupdf/mupdf-x11 to the private-bin list does not work likely because /usr/lib is not in the usual PATH variable
when executing "firejail --profile=mymupdf.profile /usr/lib/mupdf/mupdf-x11 testfile.pdf" the private-bin has no effect and mupdf works
I suspect there might be more applications executing binaries in /usr/lib/ which will fail if private-bin is used
Is there any other solution except to remove private-bin from all application profiles that execute binaries in /usr/lib
@chiraag-nataraj commented on GitHub (Nov 19, 2016):
That's weird. I use Libreoffice every so often, and I use it within firejail (profile is in my repo: https://github.com/chiraag-nataraj/firejail-profiles). Libreoffice's actual binary is in /usr/lib/libreoffice/program/soffice, yet it manages to run. (And yes, I use private-bin in my profile). Could this be purely an issue with mupdf? You're using the default profile, right?
[EDIT] You need to whitelist more things:
sh,tempfile, andrmto be exact (maybe more - I shall keep investigating).[EDIT2] Added a mupdf profile to my repo which works. Note: The profile only allows access to Downloads/ and Documents/ by default.
@valoq commented on GitHub (Nov 20, 2016):
Thanks for the info, this solved it. Seems like it was not a PATH issue after all.
I wonder why debain has changed mupdf to use those programs. On other distributions mupdf runs fine without them
By the way, alternatives and X11 are not needed in private-etc, at least I did not have any issues without them.
@chiraag-nataraj commented on GitHub (Nov 20, 2016):
I whitelist them because that's where cursors are stored 😉 But yes, strictly speaking, they're not necessary xD