FS#76933 - [libindi] unrestricted access to USB-to-serial adapters
Attached to Project:
Community Packages
Opened by Dmytro Bagrii (dimich) - Sunday, 25 December 2022, 17:06 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 25 March 2023, 10:48 GMT
Opened by Dmytro Bagrii (dimich) - Sunday, 25 December 2022, 17:06 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 25 March 2023, 10:48 GMT
|
Details
libindi 1.9.9-1 installs udev rule which set access mode
0666 to /dev/ttyUSB* for many popular USB-to-serial
adapters. This allows access plugged addapters for any
unrestrictedly regardless of uucp group membership.
prepare() function in PKGBUILD tries to patch the rule with: sed -e 's|GROUP="plugdev", MODE="0666"|TAG+="uaccess"|' -i indi-$pkgver/drivers/*/*.rules but the pattern doesn't match in drivers/auxiliary/99-indi_auxiliary.rules: SUBSYSTEMS=="usb", ATTRS{idVendor}=="134a", MODE="0666" SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", MODE="0666" SUBSYSTEMS=="usb", ATTRS{idVendor}=="067b", MODE="0666" SUBSYSTEMS=="usb", ATTRS{idVendor}=="04d8", MODE="0666" SUBSYSTEMS=="usb", ATTRS{idVendor}=="10c4", MODE="0666" |
This task depends upon
As there was attempt to patch it in PKGBUILD, i thought libindi vendors already know about the problem but won't fix it.
UPD (sorry, can't post new comment to closed task):
This `prepare()` function in PKGBUILD with attached patch partially fixes the issue at least in Arch:
```
prepare() {
cd indi-$pkgver
mv drivers/auxiliary/99-indi_auxiliary.rules drivers/auxiliary/70-indi_auxiliary.rules
patch -p1 < ../tty-usb-uaccess.patch
}
```
For upstream conversation please see https://github.com/indilib/indi/issues/1796. I can't guarantee proposed solution will work across distro.
The udev rules patch i wrote by myself and tested it in Arch. Probably it should be not a patch file but sed command as it was before, if upstream decide to add some other vendors.
"As expected, upstream won't fix."
I don't see anything leading to that conclusion on the upstream report.
> Many users are already suffering from being unable to access their USB devices due to all the restrictions and we don't want to make the users suffer unnecessarily.
as rejection to solve the issue. Sorry, maybe i'm too impatient. Let's wait for upstream resolution.
But... one package installs rules for unrestricted access to devices, another one will override presets, third one will install a backdoor. Little by little i gradually stop trusting the distro and become paranoid.