]> git.ipfire.org Git - thirdparty/systemd.git/commit
udevadm: do not read udev rules files outside of the specified root directory
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 30 Jun 2025 19:46:41 +0000 (04:46 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 11 Jul 2025 01:42:08 +0000 (10:42 +0900)
commita4a6e216739506153df88cbc8ac078cba4591e5f
treedf499de9f837e52fef8d66ae865d502a25baf008
parent661b5bfd216e383ac7836261eea9671875e6709b
udevadm: do not read udev rules files outside of the specified root directory

With this change, an invalid symlink and an empty file is silently
ignored. Hence, the test code is slightly updated.
src/udev/udevadm-cat.c
src/udev/udevadm-util.c
src/udev/udevadm-util.h
src/udev/udevadm-verify.c
test/units/TEST-17-UDEV.verify.sh