The moonlight
snap recently moved from Qt 5.9 to Qt 5.12 on the edge
channel, and this apparently broke mDNS discovery. The app prints these logs every 10s, which is interval that QMdnsEngine
sends mDNS queries:
Qt Critical: Could not create AF_NETLINK socket (Permission denied)
And dmesg is filled with these:
audit: type=1400 audit(1589678896.333:58283): apparmor="DENIED" operation="create" profile="snap.moonlight.moonlight" pid=2984522 comm="moonlight" family="netlink" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create"
audit: type=1400 audit(1589678896.345:58284): apparmor="DENIED" operation="create" profile="snap.moonlight.moonlight" pid=2984522 comm=517420626561726572207468726561 family="netlink" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create"
Either rebuilding with Qt 5.9, installing with --devmode
, or manually connecting any of network-observe
or netlink-connector
fix both the mDNS discovery and the apparmor denials (while avahi-observe
makes no difference).
Any ideas? Thanks!
A very similar issue:
The snap bug report, for reference: