From a3ce813697bcc1c4644e097a2f1cd0459326d6ee Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 22 Jan 2019 11:45:40 +0900 Subject: 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.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsystemd/sd-device/device-private.h') diff --git a/src/libsystemd/sd-device/device-private.h b/src/libsystemd/sd-device/device-private.h index 56558b38c6..062bfd651c 100644 --- a/src/libsystemd/sd-device/device-private.h +++ b/src/libsystemd/sd-device/device-private.h @@ -37,6 +37,7 @@ uint64_t device_get_properties_generation(sd_device *device); uint64_t device_get_tags_generation(sd_device *device); uint64_t device_get_devlinks_generation(sd_device *device); +int device_properties_prepare(sd_device *device); int device_get_properties_nulstr(sd_device *device, const uint8_t **nulstr, size_t *len); int device_get_properties_strv(sd_device *device, char ***strv); -- cgit v1.2.3