]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: use device_get_sysattr_safe_string()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Mar 2026 22:00:06 +0000 (07:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 May 2026 17:55:56 +0000 (02:55 +0900)
commit06d687ffacecac22cbe5a99723e99bf0401757a1
tree74cf758798a992a8407cd809683bdf95e9131619
parentfdce4d46872370585b04f96487feb70679a80f48
tree-wide: use device_get_sysattr_safe_string()

The obtained strings are passed to another function, e,g, handled as a
path and opened, printed to the terminal, written to a file, saved to
udev database as udev property, exposed through DBus, passed to logger,
and so on. Hence, these should not contain any malicious characters.
14 files changed:
src/backlight/backlight.c
src/hostname/hostnamed.c
src/login/sysfs-show.c
src/mount/mount-tool.c
src/network/networkd-sriov.c
src/rfkill/rfkill.c
src/shared/battery-util.c
src/shared/loop-util.c
src/udev/udev-builtin-hwdb.c
src/udev/udev-builtin-input_id.c
src/udev/udev-builtin-keyboard.c
src/udev/udev-builtin-path_id.c
src/udev/udev-builtin-usb_id.c
src/udev/udevadm-info.c