I can’t work out whether I’m missing a plug in my attempt at snapping webtorrent-desktop as requested in the wishlist thread, or if there’s a gap in the available interfaces?
This denial is likely due to a missing netlink rule. Unfortunately due to a limitation in the kernel that is unlikely to be resolved, seccomp denials do not include the values of the arguments to the denied syscall which makes this difficult to debug.
Today, you could put the snap in devmode, then strace it choosing -e socket and see what it is using, then add an appropriate plug. Soon, we will use EPERM instead of kill in the seccomp policy, which would mean you wouldn’t need to put the snap in devmode.
snappy-debug should be updated (it is in backlog) to list the interfaces that have netlink rules so you can better decide what to plug.
Looking at existing plugs and the name of the snap, I’m going to suggest you try to plugs network-observe (don’t forget to snap connect it!) and see if it makes a difference.
That’s ‘good’, but still don’t know what ‘123’ is. This could be a bug in their code or something that should be added to snapd. I researched it and could find anything. I looked in the webtorrent-desktop upstream project and couldn’t find any use of socket…
webtorrent desktop allows you to use chromecast, iirc that sort of works by opening a port locally on the device that will cast which the chromecast client would connect to (it also supports DLNA).
The upstream project itself might use it, but one of the libraries it depends on might.
I believe it’s related to the torrent functionality - without the fixed seccomp policy the client cannot download anything. With the fix, both download and play work fine.
Chromecast seems unrelated as it successfully detects my CC both with and without the fix.
Sorry to dig up an old post. We’re seeing the same issue with the Snap version of Wavebox when adding Google Allo. The fix suggested by @jdstrand fixed the issue when I tried it, but I was wonder if there is any way to ship this out in the built versions of the snap?