summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-device/device-private.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-01-22 03:45:40 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-01-22 06:51:02 +0100
commita3ce813697bcc1c4644e097a2f1cd0459326d6ee (patch)
tree45a9f98044b5edb87fe4602369ae5569cb88c5c9 /src/libsystemd/sd-device/device-private.h
parentwait-online: do not fail if we receive invalid messages (diff)
downloadsystemd-a3ce813697bcc1c4644e097a2f1cd0459326d6ee.tar.xz
systemd-a3ce813697bcc1c4644e097a2f1cd0459326d6ee.zip
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.
Diffstat (limited to 'src/libsystemd/sd-device/device-private.h')
-rw-r--r--src/libsystemd/sd-device/device-private.h1
1 files changed, 1 insertions, 0 deletions
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);