chiark / gitweb /
journald: cache hostname, boot_id and machine_id fields instead of generating them...
[elogind.git] / src / libsystemd-bus / sd-bus.c
index 0a2ce3eb8dda1efc48af91a189e4315fda52f898..f991a09279eb7efef10ca18834c3dd84ef3fce96 100644 (file)
@@ -764,6 +764,9 @@ static int parse_container_address(sd_bus *b, const char **p, char **guid) {
         if (!machine)
                 return -EINVAL;
 
+        if (!filename_is_safe(machine))
+                return -EINVAL;
+
         free(b->machine);
         b->machine = machine;
         machine = NULL;