Skip to content

Commit

Permalink
profiles: keepassxc: add new socket location (#6391)
Browse files Browse the repository at this point in the history
The KeePassXC browser extension looks for the KeePassXC socket at
`${RUNUSER}/app/org.keepassxc.KeePassXC`[1].

But `${RUNUSER}/app` seems to be blacklisted in disable-common.inc under the
flatpak section[2], so the KeePassXC extension cannot connect to it.

Fixes #5447.

Relates to #3984.

[1] https://github.com/keepassxreboot/keepassxc/blob/6b1ab1a5edd66ac10706a2fb5af34ec9458a901d/src/browser/BrowserShared.cpp#L41
[2] https://github.com/netblue30/firejail/blob/b89ec818926b4bcd3a58bb4e2a67b68a8090ba1c/etc/inc/disable-common.inc#L667
  • Loading branch information
qdii authored Sep 28, 2024
1 parent 92f4820 commit c2cd8b7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/profile-a-l/chromium-common.profile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ include chromium-common.local
# chromium-common.local.
# Note: Start KeePassXC before the web browser and keep it open to allow
# communication between them.
#noblacklist ${RUNUSER}/app
#whitelist ${RUNUSER}/app/org.keepassxc.KeePassXC
#whitelist ${RUNUSER}/kpxc_server
#whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/firefox-common-addons.profile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include firefox-common-addons.local

# Prevent whitelisting in ${RUNUSER}
ignore whitelist ${RUNUSER}/*firefox*
ignore whitelist ${RUNUSER}/app/org.keepassxc.KeePassXC
ignore whitelist ${RUNUSER}/psd/*firefox*
ignore whitelist ${RUNUSER}/kpxc_server
ignore whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer
Expand Down
2 changes: 2 additions & 0 deletions etc/profile-a-l/firefox-common.profile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ include firefox-common.local
# firefox-common.local.
# Note: Start KeePassXC before the web browser and keep it open to allow
# communication between them.
#noblacklist ${RUNUSER}/app
#whitelist ${RUNUSER}/app/org.keepassxc.KeePassXC
#whitelist ${RUNUSER}/kpxc_server
#whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer

Expand Down
4 changes: 4 additions & 0 deletions etc/profile-a-l/keepassxc.profile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ noblacklist ${HOME}/.config/keepassxc
noblacklist ${HOME}/.config/KeePassXCrc
noblacklist ${HOME}/.keepassxc
noblacklist ${DOCUMENTS}
noblacklist ${RUNUSER}/app

# Allow browser profiles, required for browser integration.
noblacklist ${HOME}/.config/BraveSoftware
Expand Down Expand Up @@ -62,8 +63,11 @@ include disable-xdg.inc
#whitelist ${HOME}/.config/KeePassXCrc
#include whitelist-common.inc

mkdir ${RUNUSER}/app/org.keepassxc.KeePassXC
whitelist ${RUNUSER}/app/org.keepassxc.KeePassXC
whitelist /usr/share/keepassxc
include whitelist-run-common.inc
include whitelist-runuser-common.inc
include whitelist-usr-share-common.inc
include whitelist-var-common.inc

Expand Down

0 comments on commit c2cd8b7

Please sign in to comment.