mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2899] keepassxc: db is not locked after resume from lockscreen / sleep (dbus) #1813
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#1813
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 @DevPre24 on GitHub (Aug 11, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2899
Expected behavior: KeepassXC should lock the password DB when the Host OS is going to sleep / the screen is locked.
Actual behavior: After the host is resumed from sleep or the screen is unlocked the keepassxc db is still open. I feel like the app doesn't get the sleep/lock event due to excessive sandboxing, without firejail works as expected.
KeepassXc: 2.4.3-1
Firejail: 0.9.60-1
OS: Arch Linux
Desktop Environment: KDE Plasma 5.16.4
@Fred-Barclay commented on GitHub (Aug 11, 2019):
@DevPre24 Can you try starting it with
firejail --ignore=nodbus keepassxc?To other maintainers... if this is in fact related to nodbus then I think it's better to just add a comment in the profile rather than remove nodbus from the profile... any thoughts (from you or @DevPre24 too!)?
@SkewedZeppelin commented on GitHub (Aug 12, 2019):
If it is indeed nodbus, it should probably be removed as it does break a security feature of the program.
ie. an attempt at removing the database or key from memory.
@DevPre24 commented on GitHub (Aug 12, 2019):
I removed the nodbus line from the profile as suggested and now the password manager behaves as expected, locking itself when a sleep/lock event is thrown.
As for the security aspect i would rather expose the dbus instead of keeping the key in memory. This way if an attacker is able to unlock the system at least he won't be able to unlock the db unless he has access to the master password. This also reduces the quantity of information that one might collect through a cold boot attack/memory dump.
@rusty-snake commented on GitHub (Aug 23, 2019):
Ways in KeePassXC to lock the db:
I would comment
nodbussince it breaks a security feature (see @DevPre24's post), but not every workflow use this (a stricter workflow would have the db always locked (timeout, manual, minimize) and only unlock if access is requiered), then it would be good for the security to havenodbus.