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.
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.
Related questions