]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev-rules: use sd_device_set_sysattr_value() to write sysfs attribute 36142/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 11 Jan 2025 23:22:53 +0000 (08:22 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 24 Jan 2025 15:14:34 +0000 (00:14 +0900)
commita9559ebcbcf3098b2c14e5e10e99d05aaffe4ac3
tree60ab82a98dc06c5046d0302d7711a2a3824ad3ea
parent2b3d4e3d9416399d4dd43d27dee4e9148760d536
udev-rules: use sd_device_set_sysattr_value() to write sysfs attribute

Then, we can avoid that files outside of sysfs are written by udev ATTR key.

This also makes
- logs failure in udev_resolve_subsys_kernel(),
- failure in sd_device_get_syspath() critical, as that should not happen,
- cache the value to be write when running on test mode, to make it
  shown by OPTIONS="dump" or obtained by ATTR match token.
src/udev/udev-rules.c