Apparmor 拒绝访问我的公钥

Apparmor 拒绝访问我的公钥

由于 apparmor 拒绝访问位于我主文件夹中的公钥,我无法获取任何存储库。我该如何启用对此文件的访问权限?

日志:

 Jul 18 08:55:01 PC-NAME kernel: [33629.897509] audit: type=1400 audit(1531896901.894:10573): apparmor="DENIED" operation="open" profile="snap.gitkraken.gitkraken" name="/etc/" pid=14984 comm="sh" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

 Jul 18 08:55:02 PC-NAME kernel: [33630.304531] audit: type=1400 audit(1531896902.298:10574): apparmor="DENIED" operation="open" profile="snap.gitkraken.gitkraken" name="/home/user/.ssh/id_rsa.pub" pid=5405 comm="gitkraken" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000

 Jul 18 08:56:01 PC-NAME kernel: [33689.859314] audit: type=1400 audit(1531896961.854:10575): apparmor="DENIED" operation="open" profile="snap.gitkraken.gitkraken" name="/etc/" pid=15027 comm="sh" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

 Jul 18 08:56:02 PC-NAME kernel: [33690.270418] audit: type=1400 audit(1531896962.270:10576): apparmor="DENIED" operation="open" profile="snap.gitkraken.gitkraken" name="/home/user/.ssh/id_rsa.pub" pid=5405 comm="gitkraken" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000

答案1

好的,我刚刚发现我需要运行这个命令:

snap connect gitkraken:ssh-keys

相关内容