Snap finding the correct interface for lsusb

Hello

What methods are used to find the correct interfaces ?

When using lsusb, Seccomp reports quite a few interfaces that can be tried.
In the Seccomp report I noticed kernel macros as Id’s, but the “Ubuntu Core 18 RPi” does not nave /proc/config.gz

= Seccomp =
Time: May 03 18:22:04
Log: auid=4294967295 uid=0 gid=0 ses=4294967295 pid=20124 comm=“lsusb” exe="/snap/dkentry-python3/x1/usr/bin/lsusb" sig=0 arch=40000028 281(socket) compat=0 ip=0x76e81898 code=0x50000
Syscall: socket
Suggestions:

  • add account-control (if using NETLINK_AUDIT)
  • add audio-playback (if using NETLINK_KOBJECT_UEVENT)
  • add bluetooth-control (if using AF_{ALG,BLUETOOTH})
  • add firewall-control (if using NETLINK_{FIREWALL,IP6_FW,NETFILTER,NF_LOG,ROUTE})
  • add hardware-observe (if using NETLINK_{GENERIC,KOBJECT_UEVENT})
  • add netlink-audit (if using NETLINK_AUDIT)
  • add netlink-connector (if using NETLINK_CONNECTOR)
  • add network (if using AF_INET{,6}, AF_CONN, NETLINK_ROUTE)
  • add network-bind (if using AF_INET{,6}, NETLINK_ROUTE)
  • add network-control (if using AF_{APPLETALK,BRIDGE,INET,INET6,IPX,PACKET,PPPOX,SNA}, NETLINK_{DNRTMSG,FIB_LOOKUP,GENERIC,INET_DIAG,ISCSI,KOBJECT_UEVENT,RDMA,ROUTE,XFRM})
  • add network-observe (if using SOCK_RAW, AF_INET{,6}), NETLINK_{GENERIC,INET_DIAG,KOBJECT_UEVENT,ROUTE})
  • add raw-usb (if using NETLINK_KOBJECT_UEVENT)
  • add time-control (if using NETLINK_AUDIT)
  • add upower-observe (if using NETLINK_KOBJECT_UEVENT)
  • add x11 (if using NETLINK_KOBJECT_UEVENT)

Thanks

Try the network and network-bind interfaces as the syscall being denied here is socket.

network and network-bind I already use.

Bellow is my current list:
plugs:
home:
#java-jre-ondra
#$SNAP/jre/bin/java
jre:
interface: content
target: $SNAP/java-jre-ondra
network:
network-bind:
browser-support:
mount-observe:
alsa:
network-control:
network-observe:
camera:

Have you tried hardware-observe?

hardware-observe, did not work

no ubuntu has ever used /proc/config.gz … … but all ubuntu kernels have always shipped their config, even the snapped ones :wink:

$ ls /snap/pi-kernel/current/config-*
/snap/pi-kernel/current/config-5.3.0-1022-raspi2

Thanks
One of these did get it to work: hardware-observe raw-lsb

But for some reason I had to reboot.

Before the reboot I manually connected the 2 and it did not work.

Also thanks for the config info.