Snapd is auto detecting and hijacking usb device

Hi,

I am struggling with the issue of snapd using Ubunut Core automatically and pretty randomly is waking up and hijacking from working application a USB device.

As the rootfs is read only I can not block it. Any help would be fantastic !

many thx, R,

[Tue Oct 10 18:02:43 2023] usb 1-1.2: dvb_usb_v2: found a ‘Realtek RTL2832U reference design’ in warm state [Tue Oct 10 18:02:43 2023] usb 1-1.2: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer [Tue Oct 10 18:02:43 2023] dvbdev: DVB: registering new adapter (Realtek RTL2832U reference design) [Tue Oct 10 18:02:43 2023] usb 1-1.2: media controller created [Tue Oct 10 18:02:43 2023] dvbdev: dvb_create_media_entity: media entity ‘dvb-demux’ registered. [Tue Oct 10 18:02:43 2023] i2c i2c-11: Added multiplexed i2c bus 12 [Tue Oct 10 18:02:43 2023] rtl2832 11-0010: Realtek RTL2832 successfully attached [Tue Oct 10 18:02:43 2023] usb 1-1.2: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))… [Tue Oct 10 18:02:43 2023] dvbdev: dvb_create_media_entity: media entity ‘Realtek RTL2832 (DVB-T)’ registered. [Tue Oct 10 18:02:43 2023] r820t 12-001a: creating new instance [Tue Oct 10 18:02:43 2023] r820t 12-001a: Rafael Micro r820t successfully identified [Tue Oct 10 18:02:43 2023] rtl2832_sdr rtl2832_sdr.0.auto: Registered as swradio0 [Tue Oct 10 18:02:43 2023] rtl2832_sdr rtl2832_sdr.0.auto: Realtek RTL2832 SDR attached [Tue Oct 10 18:02:43 2023] rtl2832_sdr rtl2832_sdr.0.auto: SDR API is still slightly experimental and functionality changes may follow [Tue Oct 10 18:02:43 2023] Registered IR keymap rc-empty [Tue Oct 10 18:02:43 2023] rc rc0: Realtek RTL2832U reference design as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/rc/rc0 [Tue Oct 10 18:02:43 2023] rc rc0: lirc_dev: driver dvb_usb_rtl28xxu registered at minor = 0, raw IR receiver, no transmitter [Tue Oct 10 18:02:43 2023] input: Realtek RTL2832U reference design as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/rc/rc0/input13 [Tue Oct 10 18:02:43 2023] usb 1-1.2: dvb_usb_v2: schedule remote query interval to 200 msecs [Tue Oct 10 18:02:43 2023] usb 1-1.2: dvb_usb_v2: ‘Realtek RTL2832U reference design’ successfully initialized and connected [Tue Oct 10 18:02:43 2023] audit: type=1400 audit(1696953763.358:56): apparmor=“DENIED” operation=“exec” profile=“snap.wmbusmeters.wmbusmeters” name="/usr/sbin/killall5" pid=16393 comm=“wmbusmeters” requested_mask=“x” denied_mask=“x” fsuid=0 ouid=0