mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 02:57:16 +03:00
core: check parsed bus msg in full before applying it
This commit is contained in:
parent
16fb773ee3
commit
b0830e21f4
@ -1173,7 +1173,6 @@ int bus_exec_context_set_transient_property(
|
|||||||
|
|
||||||
unit_write_drop_in_private_format(u, mode, name, "Environment=%s\n", joined);
|
unit_write_drop_in_private_format(u, mode, name, "Environment=%s\n", joined);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
@ -1262,6 +1261,10 @@ int bus_exec_context_set_transient_property(
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
r = sd_bus_message_exit_container(message);
|
||||||
|
if (r < 0)
|
||||||
|
return r;
|
||||||
|
|
||||||
r = fflush_and_check(f);
|
r = fflush_and_check(f);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
@ -1279,10 +1282,6 @@ int bus_exec_context_set_transient_property(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
r = sd_bus_message_exit_container(message);
|
|
||||||
if (r < 0)
|
|
||||||
return r;
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
} else if (STR_IN_SET(name, "ReadWriteDirectories", "ReadOnlyDirectories", "InaccessibleDirectories")) {
|
} else if (STR_IN_SET(name, "ReadWriteDirectories", "ReadOnlyDirectories", "InaccessibleDirectories")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user