Hi,
I need to get the ip address of the machine in my app. I was successfully building snaps upto ubuntu 20.04 (maybe my snaps were only working till 20.04). I am trying to build in ubuntu 22.04 and there are snap interface permission errors. Snappy-debug asks me to add network-manager or network-manager-observe to get rid of the errors but it doesn’t work at all.
Info:
- it’s a flutter app.
- building using lxd.
- network_info_plus, nm, networkd packages don’t seem to work.
- adding all of the network interfaces in plugs section doesn’t work.
- just having network, home, network-manager doesn’t work.
- just having network, home, network-manager-observe doesn’t work.
snappy-debug only asks to add those. errors:
= AppArmor =
Time: Apr 4 18:48:54
Log: apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/network1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name="org.freedesktop.network1" pid=142068 label="snap.quickit.quickit"
DBus access
= AppArmor =
Time: Apr 4 18:48:54
Log: apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop" interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" mask="send" name="org.freedesktop.NetworkManager" pid=142068 label="snap.quickit.quickit" peer_pid=712 peer_label="unconfined"
DBus access
Any help is much appreciated.