]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev-watch: remove symlink for saving inotify watch handle only when it is owned...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Apr 2022 21:31:21 +0000 (06:31 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 11 Sep 2022 16:32:32 +0000 (01:32 +0900)
commit691a596da15cb4171a86c5f95b30ad5ba91b6745
treeb2e1274a8dac850aa3c9e78f4aecbcbba391a352
parentcd66f972d105c443f4ab89cc9d3406a2fc88f974
udev-watch: remove symlink for saving inotify watch handle only when it is owned by the processing device

Before removing symlinks that stores watch handles, this makes udev
worker check if the symlink is owned by the processing device.
Then, we can avoid TOCTOU and drop the try-and-wait loop.

This partially reverts 2d3af41f0e837390b734253f5c4a99a9f33c53e3.
src/udev/udev-watch.c