snap interface (plugs) matching
Zygmunt Krynicki
zygmunt.krynicki at canonical.com
Thu Jul 21 17:52:48 UTC 2016
> Wiadomość napisana przez Martin Winter <mwinter at opensourcerouting.org> w dniu 21.07.2016, o godz. 19:26:
>
> I’m running into a weird issue here while trying to get the correct plugs added and they don’t seem to get detected/parsed correctly:
>
> My snapcraft.yaml looks like this (extract for a simple process only):
>
> […]
> apps:
> ospf6d:
> command: bin/ospf6d-service
> daemon: simple
> plugs:
> - firewall-control
> - network
> - network-bind
> - network-control
> - network-observe
> […]
>
> But when I run the program, I still get the following error:
> (with snappy-debug.security scanlog quagga)
>
> = AppArmor =
> Time: Jul 21 10:13:38
> Log: apparmor="DENIED" operation="create" profile="snap.quagga.ospf6d" pid=20622 comm="ospf6d" family="inet6" sock_type="raw" protocol=89 requested_mask="create" denied_mask="create"
> Suggestion:
> * add one of 'firewall-control, network-control, network-observe' to 'plugs'
>
> Looking at the interfaces with the snap command, I see the following:
>
> # snap interfaces
> Slot Plug
> :camera -
> :cups-control -
> :firewall-control -
> :gsettings -
> :home -
> :locale-control -
> :log-observe snappy-debug
> :modem-manager -
> :mount-observe -
> :network quagga
> :network-bind quagga
> :network-control -
> :network-manager -
> :network-observe -
> :opengl -
> :optical-drive -
> :ppp -
> :pulseaudio -
> :snapd-control -
> :system-observe -
> :timeserver-control -
> :timezone-control -
> :unity7 -
> :x11 -
> - quagga:firewall-control
> - quagga:network-control
> - quagga:network-observe
>
>
> Question:
>
> Why is firewall-control / network-control / network-observe not correctly detected? It looks like it gets prefixed by “quagga:” and not assigned the correct Slot.
>
Those interfaces do not auto-connect. You need to explicitly connect them with:
$ snap connect quagga:firewall-control ubuntu-core:firewall-control
Best regards
ZK
More information about the Snapcraft
mailing list