mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6822] koreader: Error: failed to run /run/firejail/lib/fsec-print (whitelist in /usr/lib) #3386
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#3386
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 @cameronj86 on GitHub (Jul 13, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6822
Description
Default profile won't work
Fails to load
Steps to Reproduce
whitelist /usr/lib/koreader/fontsLC_ALL=C firejail --profile=koreader --trace=/tmp/trace.txt /usr/bin/koreaderExpected behavior
App runs
Actual behavior
App doesn't run
Behavior without a profile
Launches successfully
Additional context
Going through and actually trying the profiles of interest to see if they work and loading tix for the ones that do not.
Environment
Checklist
/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)Log
Output of
`LC_ALL=C firejail --profile=koreader --debug /usr/bin/koreader`@kmk3 commented on GitHub (Jul 13, 2025):
What is the output of the following?
What happens with the profile in /etc/firejail?
How?
Do you mean with firecfg?
What error?
This shouldn't be necessary as there is no whitelisting in /usr/lib AFAIK.
Strange, I don't remember seeing this error before.
I only found the following instance, which was due to the user manually
whitelisting a path in /usr/lib:
@cameronj86 commented on GitHub (Jul 13, 2025):
Everything is working as expected but found it in my clipboard from troubleshooting last night
Followed the instructions in the manpage:
$ ln -s /usr/bin/firejail /home/macallik/.local/bin/firejailBin/koreaderI created the config version when I added
whitelist /usr/lib/koreader/fontsHere are the steps I took:
whitelist /usr/lib/koreader/fontswhitelist /home/macallik/.local/bin/firejailBinI thought I was saving time by skipping the initial error but by editing the setup, I broke things. I will just report the initial error moving forward.
I can no longer reproduce the error message but I still have the initial error from last night's clipboard below. My belief at the time was that firejail completed and koreader was failing mid-launch due to firejail:
Font-related error message
Let me know if I'm mistaken. My current operating theory is that the initial conflict might have been related to the 2024.11 release, so it might be a moot point. Will close out in 24-48 hours unless something else crops up
@kmk3 commented on GitHub (Jul 17, 2025):
This /usr/lib part indeed seems to be the issue:
@kmk3 commented on GitHub (Jul 19, 2025):
Whitelisting in /usr/lib should work with
private-lib(though it might bebrittle); see the
--enable-private-libconfigure option.Whitelisting in /etc seems to work fine without using
private-etc, so itshould be doable to support whitelisting in /usr/lib without using
private-libI'll leave this open for now.
@cameronj86 commented on GitHub (Jul 28, 2025):
Related to koreader functionality specifically, I have since been able to replicate and resolve the issue by commenting out:
include disable-programs.inc@kmk3 commented on GitHub (Jul 29, 2025):
Nice, though note that this file blocks many common paths.
You could try commenting disable-programs.inc to see which lines are causing
the issue and post them here.
If it's only a few lines, it might also be better to ignore just those specific
lines in koreader.local than all of disable-programs.inc.
@cameronj86 commented on GitHub (Aug 6, 2025):
Sorry, I guess it's centric to my setup, but since I'm using
private /path/to/sandboxin my config,disable-programs.incis not necessary for my setup.