]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device: do not save e.g., DEVPATH or INTERFACE properties to udev database
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 22 Jan 2019 02:45:40 +0000 (11:45 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 22 Jan 2019 05:51:02 +0000 (14:51 +0900)
commita3ce813697bcc1c4644e097a2f1cd0459326d6ee
tree45a9f98044b5edb87fe4602369ae5569cb88c5c9
parent61a38e02650b8e7f097cadaa40aab0847605a383
sd-device: do not save e.g., DEVPATH or INTERFACE properties to udev database

Previously, device_copy_properties() copies all properties to both
sd_device::properties and ::properties_db. Thus, on move uevent,
also tentative properties, e.g. DEVPATH or INTERFACE, are stored to
::properties_db, and saved to udev database.

This makes such tentative properties be copied to only ::properties,
and thus not saved to udev database.

Fixes #9426.
src/libsystemd/sd-device/device-private.c
src/libsystemd/sd-device/device-private.h
src/libsystemd/sd-device/sd-device.c