mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6310] keepassxc: failure to launch on Gentoo (private-etc) #3238
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#3238
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 @elde-n on GitHub (Apr 12, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6310
Description
Keepassxc fails to launch with firejail
Steps to Reproduce
LC_ALL=C firejail keepassxcExpected behavior
Keepassxc to launch with a graphical window
Actual behavior
It didn't launch a graphical window
Behavior without a profile
The application started as expected.
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 /usr/bin/keepassxchttps://github.com/netblue30/firejail/files/14961690/log.txt
Output of
LC_ALL=C firejail --debug /usr/bin/keepassxc@ghost commented on GitHub (Apr 12, 2024):
@kmk3 commented on GitHub (Apr 12, 2024):
That's strange, do you use
private-lib?Where are those libraries (
libgcc_s.so.1, etc) located?Is there anything modified in firejail.config?
What is the keepassxc version?
Does it work with firejail-git?
@elde-n commented on GitHub (Apr 12, 2024):
Not sure what private-lib is I assume no
No
firejail.config
KeePassXC 2.7.7
No
@kmk3 commented on GitHub (Apr 14, 2024):
Does it work with
firejail --noprofile /usr/bin/keepassxcor withfirejail --profile=noprofile /usr/bin/keepassxc?Can you access these paths with a shell using keepassxc.profile?
Example:
I'd try to comment lines in keepassxc.profile until it works to find which ones
are causing issues.
@elde-n commented on GitHub (Apr 14, 2024):
Yes
Yes
Commenting out the line
private-etc alternatives,fonts,ld.so.cache,ld.so.preload,machine-idfixes the issue, thank you@kmk3 commented on GitHub (Apr 14, 2024):
No problem.
It would be good to try to find which paths are needed in private-etc.
Do you know how those libraries are configured in /etc?
What is the output of the following commands?
@ghost commented on GitHub (Apr 14, 2024):
Probably missing
ld.so.conf,ld.so.conf.din private-etc. The new group refactoring in git 0.9.73 added those to the @default group:27cd032bed/src/include/etc_groups.h (L27-L49)@elde-n commented on GitHub (Apr 15, 2024):
No
The trace.txt file is empty
Noticing that pdftotext also fails and also a lot of 'gcc' related stuff I thought I should maybe mention that I use clang as my system compiler
@ghost commented on GitHub (Apr 15, 2024):
Noticing that pdftotext also fails ...
Same as https://github.com/netblue30/firejail/issues/6310#issuecomment-2054211270.
@elde-n commented on GitHub (May 11, 2024):
I have fixed my issue by ripping gcc out of my system and recompiling everything with the llvm toolchain although I do seem to have a fonts issue for example librewolf:

@ghost commented on GitHub (May 11, 2024):
@elde-n
Here are all font-related files that I could track in our *.inc files. Perhaps we are missing something for gentoo or gentoo uses different paths. You could check and compare with:
disable-programs.incwhitelist-common.incwhitelist-usr-share-common.incwhitelist-var-common.incHTH