profile
viewpoint

Ask questionsSSH Agent integration does not work with snap build

Agent socket can be read from the environment but access to it is currently denied by AppArmor. Both real ssh-agent socket and GNOME Keyring socket are blocked.

= AppArmor =
Time: May 13 11:19:36
Log: apparmor="DENIED" operation="connect" profile="snap.keepassxc.keepassxc" name="/run/user/1000/keyring/ssh" pid=433 comm="keepassxc" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=1000
File: /run/user/1000/keyring/ssh (write)
Suggestions:
* adjust program to use $SNAP_DATA
* adjust program to use run/shm/snap.$SNAP_NAME.*

There may be a flag for snapcraft.yaml that loosens the sandbox enough but I can't currently get a working build going of the snap on my system.

keepassxreboot/keepassxc

Answer questions hifi

Indeed, that does not seem to work anymore even on 18.04, I get this warning during install:

Warning: flag --classic ignored for strictly confined snap keepassxc

However, the snap can be put into development mode which has the same effect:

sudo snap install --devmode keepassxc

You need to first remove the snap to be able to reinstall it. Tested the agent integration works on 18.04 again with that.

useful!

Related questions

KeePassXC-Browser, Firefox Add-On - message "Timeout or not connected to KeePassXC" hot 1
Unable to open the database. No root group. hot 1
KeepassXC as libsecret implementation doesn't return secret when searching by some attributes hot 1
Can't open password database which looks fine in KeePass hot 1
keepassxc snap browser integration in Vivaldi gives error message hot 1
how to use keeshare hot 1
Improve support for Macbook Pro TouchID hot 1
keepassxc as pinentry for gpg hot 1
Make KPXC databases accessible via libsecret/DBus hot 1
macOS 10.15: Auto-type requires screen reader permission hot 1
Database opens in read-only mode when accessed remotely using 'dav' protocol hot 1
HMAC Mismatch occurs on computer restart, and the kbdx file cannot be opened or repaired. hot 1
QObject::startTimer message when run in console hot 1
Unable to connect to KeePassXC-Browser hot 1
Github User Rank List