]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev-builtin-uaccess: open device node with O_PATH
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Jul 2025 23:15:51 +0000 (08:15 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 3 Jul 2025 03:46:35 +0000 (12:46 +0900)
commitaada48970ed9d606331e636dab7da0ca520a5bdf
treeeb169f8cfdb1c3c04513141f4257c203f09c9949
parent9c9bf7e3fa61f4aeb8818d5f1e67b2a479b4e2dd
udev-builtin-uaccess: open device node with O_PATH

Some device node refuses to be opened with read-write mode.
Let's not open with O_RDWR, but open with O_PATH, and use
FORMAT_PROC_FD_PATH().

Follow-up for 1abb592f2f886913492e4967cc96816c167177a9.

Fixes #38033.
src/udev/udev-builtin-uaccess.c