[GH-ISSUE #3314] keepassxc: ssh-agent feature does not work #2081

Closed
opened 2026-05-05 08:44:58 -06:00 by gitea-mirror · 9 comments
Owner

Originally created by @agraven on GitHub (Apr 4, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3314

Using the standard profile for keepassxc in version 0.9.62 causes the ssh-agent functionality to stop working. I'm running Ubuntu 19.10.

Originally created by @agraven on GitHub (Apr 4, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3314 Using the standard profile for keepassxc in version 0.9.62 causes the ssh-agent functionality to stop working. I'm running Ubuntu 19.10.
gitea-mirror 2026-05-05 08:44:58 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rusty-snake commented on GitHub (Apr 4, 2020):

Works it if you allow access to .ssh?

nobalcklist ${HOME}/.ssh
# Other things to go.
# ignore machine-id
# ignore private-tmp
# noblacklist blacklist /tmp/ssh-*
# read-write ${HOME}/.ssh/authorized_keys
<!-- gh-comment-id:609021574 --> @rusty-snake commented on GitHub (Apr 4, 2020): Works it if you allow access to .ssh? ``` nobalcklist ${HOME}/.ssh # Other things to go. # ignore machine-id # ignore private-tmp # noblacklist blacklist /tmp/ssh-* # read-write ${HOME}/.ssh/authorized_keys ```
Author
Owner

@agraven commented on GitHub (Apr 4, 2020):

Thanks for the quick response! I presume you meant noblacklist ${HOME}/.ssh?

<!-- gh-comment-id:609021768 --> @agraven commented on GitHub (Apr 4, 2020): Thanks for the quick response! I presume you meant `noblacklist ${HOME}/.ssh`?
Author
Owner

@agraven commented on GitHub (Apr 4, 2020):

I tried adding all the suggested directives but nothing seemed to change.

As a side note, fetching favicons from websites also doesn't work because network access is disabled, I don't quite understand the networking settings well enough to figure out how to enable it

<!-- gh-comment-id:609024197 --> @agraven commented on GitHub (Apr 4, 2020): I tried adding all the suggested directives but nothing seemed to change. As a side note, fetching favicons from websites also doesn't work because network access is disabled, I don't quite understand the networking settings well enough to figure out how to enable it
Author
Owner

@rusty-snake commented on GitHub (Apr 4, 2020):

Network: use host network namespace; allow AF_INET and AF_INET6 sockets; TLS + DNS files in /etc

ignore net none
protocol unix,inet,inet6,netlink
private-etc ca-certificates,ssl,pki,crypto-policies,nsswitch.conf,resolv.conf
<!-- gh-comment-id:609024734 --> @rusty-snake commented on GitHub (Apr 4, 2020): Network: use host network namespace; allow AF_INET and AF_INET6 sockets; TLS + DNS files in /etc ``` ignore net none protocol unix,inet,inet6,netlink private-etc ca-certificates,ssl,pki,crypto-policies,nsswitch.conf,resolv.conf ```
Author
Owner

@agraven commented on GitHub (Apr 4, 2020):

Thanks! Would this be worth adding commented out to keepassxc.profile with a comment explaining what enabling them does? I'll gladly make a PR for that if so

<!-- gh-comment-id:609025111 --> @agraven commented on GitHub (Apr 4, 2020): Thanks! Would this be worth adding commented out to keepassxc.profile with a comment explaining what enabling them does? I'll gladly make a PR for that if so
Author
Owner

@rusty-snake commented on GitHub (Apr 4, 2020):

Some users probably want to fetch favicons inside keepassxc. Even if internet access relaxes the sandbox and keepassxc is only an blacklisting profile due to #2874.

I make it whitelisting like this, then you have to save the database in ~/Documents/KeePassXC

disable-programs.local:

blacklist ${HOME}/Documents/KeePassXC

keepassxc.local:

noblacklist ${HOME}/Documents/KeePassXC

mkdir ${HOME}/.config/keepassxc
mkdir ${HOME}/.keepassxc
mkdir ${HOME}/Documents/KeePassXC
whitelist ${HOME}/.config/keepassxc
whitelist ${HOME}/.keepassxc
whitelist ${HOME}/.mozilla
whitelist ${HOME}/Documents/KeePassXC
include whitelist-common.inc
<!-- gh-comment-id:609027762 --> @rusty-snake commented on GitHub (Apr 4, 2020): Some users probably want to fetch favicons inside keepassxc. Even if internet access relaxes the sandbox and keepassxc is only an blacklisting profile due to #2874. I make it whitelisting like this, then you have to save the database in ~/Documents/KeePassXC `disable-programs.local`: ``` blacklist ${HOME}/Documents/KeePassXC ``` `keepassxc.local`: ``` noblacklist ${HOME}/Documents/KeePassXC mkdir ${HOME}/.config/keepassxc mkdir ${HOME}/.keepassxc mkdir ${HOME}/Documents/KeePassXC whitelist ${HOME}/.config/keepassxc whitelist ${HOME}/.keepassxc whitelist ${HOME}/.mozilla whitelist ${HOME}/Documents/KeePassXC include whitelist-common.inc ```
Author
Owner

@rusty-snake commented on GitHub (Apr 5, 2020):

Back to the ssh-agent. Is anything in the journal?

<!-- gh-comment-id:609440169 --> @rusty-snake commented on GitHub (Apr 5, 2020): Back to the ssh-agent. Is anything in the journal?
Author
Owner

@rusty-snake commented on GitHub (Jun 4, 2020):

I'm closing here due to inactivity, please fell free to reopen if you still have this issue.

#3329 is still open.

<!-- gh-comment-id:638796608 --> @rusty-snake commented on GitHub (Jun 4, 2020): I'm closing here due to inactivity, please fell free to reopen if you still have this issue. #3329 is still open.
Author
Owner

@ShellCode33 commented on GitHub (Nov 30, 2023):

noblacklist ${HOME}/.ssh
ignore private-tmp
noblacklist /tmp/ssh-*

Seems to be enough, thanks 👍

<!-- gh-comment-id:1832986442 --> @ShellCode33 commented on GitHub (Nov 30, 2023): ``` noblacklist ${HOME}/.ssh ignore private-tmp noblacklist /tmp/ssh-* ``` Seems to be enough, thanks :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2081
No description provided.