[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#999772: limesuite-udev: replaces entire /dev/serial directory with single symlink



Package: limesuite-udev
Version: 20.10.0+dfsg-2
Severity: important
X-Debbugs-Cc: sascha-debian-bugs-2021-11-16-limesuite-udev@silbe.org

Dear Maintainer,

the udev rules contained in limesuite-udev cause *all* USB serial
adapters using the default vendor / product id of several FTDI chips
(0403:6001) to end up with a symlink /dev/serial, thereby hiding the
/dev/serial/by-{id,path} directories that are needed to consistently
access individual USB serial ports:

=== Begin ===
sascha@twin:~$ ls -l /dev/serial
lrwxrwxrwx 1 root root 7 Nov 16 14:12 /dev/serial -> ttyUSB1
sascha@twin:~$ lsusb -d 0403:6001
Bus 001 Device 015: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 001 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 005 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 005 Device 012: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
=== End ===

This is the offending line in /lib/udev/rules.d/64-limesuite.rules:

=== Begin ===
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="0666", SYMLINK+="serial"
=== End ===

According to the severity descriptions this bug would be "critical"
("makes unrelated software on the system (or the whole system) break")
but given that there's an easy workaround (uninstalling the package)
for people who don't actually need the functionality I went with
"important" instead. I only ended up with the package installed
because it was pulled in via a Recommends: chain by soapysdr-tools.

A quick grep on the source suggests limesuite itself isn't using the
symlink so the easiest fix would be to simply get rid of the line
quoted above.

Kind regards,
Sascha

-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 'stable'), (500, 'stable-debug'), (100, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, armel

Kernel: Linux 5.10.70-silbe-v1.0-26-gc0a00df-amd64-1+bpo10+1-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_GB, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en:en_US:C:de_DE:de
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information


Reply to: