TCP/IP connection stuck when called from UDEV rule
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
It seems that in Eoan there is a lock/any other issue preventing particular system calls to be executed by the triggered action handler. I have an action executing wget when USB-serial adapter is plugged:
SUBSYSTEM=="tty", ACTION=="add", ATTRS{idVendor}
This action works perfectly in a prior versions - but in Eoan Ermine it hangs for ~30s and fails on a timeout. Analysis with strace shows that execution is stuck on connect() syscall - until it returns with ETIMEDOUT.
Same Wget command, being run from a command line, works perfectly.
The issue doesn't seem to be related to a particular IP (localhost/remote) and/or the status of a listener process - execution hangs also when listener is not running and port is free.
affects: | udev (Ubuntu) → systemd (Ubuntu) |
udev restricts this sort of thing for security reasons, so this is working as expected.