mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3713] keepassxc: issues with browser extension and tray icon (dbus) #2340
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#2340
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 @albinou on GitHub (Oct 31, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3713
Hi,
Since the addition of dbus filters support (firejail version 0.9.64 I think), the keepassxc default profile does not give enough permissions for:
Bug and expected behavior
Ugly fix ... can we find better?
It works if I add the following lines in a keepassxc.local file:
I tried with the following lines without success:
Does anyone have an idea of the right DBUS session names to use?
Environment
Additional context
Other context about the problem like related errors to understand the problem.
Checklist
https://github.com/netblue30/firejail/issues/1139)--profile=PROFILENAMEis used to set the right profile.Related commits:
ba62f0e29("keepassxc dbus, closes #3713 [skip ci]", 2020-10-31)a2bed302c("Update keepassxc.profile dbus comments", 2020-12-29)@rusty-snake commented on GitHub (Oct 31, 2020):
For the tray, try
dbus-user.own org.kde.StatusNotifierItem-2-2anddbus-user.talk org.kde.StatusNotifierWatcher, if it works try to omit the own rule.@albinou commented on GitHub (Oct 31, 2020):
Thank you very much for your comment. After a few tries, it seems I need the 2 following lines:
I really don't know from where the "10-2" value comes from :D
Note that these two lines also fix the KeepassXC-Browser extension.
I think we can close this issue, except if this needs to be documented somewhere?
@rusty-snake commented on GitHub (Oct 31, 2020):
2-2 is used be the flatpak, if you need 10-2 then these numbers seem to not be stable.
LOL
I add a note to the profile.
@albinou commented on GitHub (Oct 31, 2020):
I was wrong, this does not fix the KeepassXC-Browser extension totally.
Explanation of the scenario:
KeePassXC-Browser has encountered an error:(no more information is given)Even adding
ignore dbus-user filterinto the keepassxc firejail config does not fix the issue. So I guess the issue is related to something else.@rusty-snake commented on GitHub (Oct 31, 2020):
Has you made and modifications to your firefox/keepassxc profile? (
private-bin, wruc, ...)@albinou commented on GitHub (Oct 31, 2020):
No, no local modifications on my keepassxc profile and I ran the tests without firejail enabled for firefox .
As a note, I just found this: https://github.com/keepassxreboot/keepassxc/pull/283
So maybe we should add:
But this does not really helps here.
@rusty-snake commented on GitHub (Oct 31, 2020):
Can you try to comment
include disable-*.inc,private-tmp,private-binand see if it works then.If it still fails, comment the hole profile and uncomment it line for line.
EDIT: and try with
--noprofileto make sure it's not general issues and try to run with--writable-run-user.@albinou commented on GitHub (Oct 31, 2020):
I tried with
firejail --noprofile --writable-run-user keepassxcand I can observe the same issue than with the keepassxc profile :-(Not really sure of what it means?
Thanks for your help.
@rusty-snake commented on GitHub (Oct 31, 2020):
That's bad, if something is broken with
--noprofile, then there is likely no fix for it. However there is still some hope: Because firefox isn't firejailed, keepassxc-proxy is started with it's profile. Maybe it works if you remove the keepassxc-proxy symlink (assuming you execute firecfg).@albinou commented on GitHub (Nov 2, 2020):
Well, so sorry, but it was weird ... actually my issue was also happening without enabling firejail at all. I just uninstalled the Keepassxc-browser add-on & re-install it. Everything is working now.
So, we can really close this issue. The only interesting thing to remember is that the following lines must be added to the keepassxc.local file in order to have a tray icon:
Thank you very much.