mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5819] calibre: ImportError: /home/bandura/.local/lib/python3.9/site-packages/_dbus_bindings.cpython-39-x86_64-linux-gnu.so: failed to map segment from shared object #3104
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#3104
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 @marek22k on GitHub (May 6, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5819
Description
Failed to start calibre.
Steps to Reproduce
Install firejail
Install calibre via apt
Expected behavior
Calibre starts
Actual behavior
Behavior without a profile
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin aterminal?
Opens a the calibre without crash
Environment
Parrot OS, Debian-based
firejail --version).Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)Log
Output of
LC_ALL=C firejail /path/to/programOutput of
LC_ALL=C firejail --debug /path/to/program@ghost commented on GitHub (May 6, 2023):
Let me open with a general remark. Your output suggests using Firejail's
firecfgdesktop integration. That's fine, but it implies some extra attention needs to be given regarding paths. You can check that most likely /usr/local/bin/calibre is a symlink to /usr/bin/firejail. So when you usefirejail calibreit actually executes firejail twice, which can result in unexpected behaviour:Whenever you see that warning, be aware of this and try to avoid it by using full paths.
Now, let's move on to the problem at hand. According to your output python 3.9 packages are located under /home/bandura/.local/lib/python3.9/site-packages. Although /etc/firejail/calibre.profile does not block the use of Python (it does not include disable-interpreters.inc), it does have
include disable-exec.inc. And that means python scripts from /home/bandura/.local/lib/python3.9/site-packages are not executable:https://gist.github.com/marek22k/7d83befab5a8e4050756dced54359ff7?#file-gistfile1-txt-L1044
What happens when you add
ignore noexec ${HOME}in ~/.config/firejail/calibre.local?@marek22k commented on GitHub (May 6, 2023):
Thanks for the tip with the doubled firejail!
Now it seems I have somehow broken my Calibre installation (maybe by updating pip packages?!). Now the following message appears with and without firejail:
I would therefore close the issue as "not planned", since I unfortunately cannot reproduce it anymore.