core: be more restrictive on the dependency types we allow to be created transiently
authorLennart Poettering <lennart@poettering.net>
Thu, 9 Jan 2020 11:01:45 +0000 (12:01 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Feb 2020 16:26:56 +0000 (17:26 +0100)
commita3c1ce25a7a05a208eaeaa0cc1fbfadbc70dae80
tree74d072371c69252127c19a281dec36311ad1c868
parent2b9ec8384c0543df4ea7617ca73f3a1031b774c2
core: be more restrictive on the dependency types we allow to be created transiently

We should allow the ones that the [Unit] section of regular unit files
may accet, but no other, in particular not the internal deps we
synthesize as reverse of explicitly configured ones, such was WantedBy=.

Fixes: #14251
(cherry picked from commit 404308486aa285c67c5af4c8e7d6be393ce5a3c7)
(cherry picked from commit 26f3a534f1abba5284b1cc97eadb81ece960eb1a)
src/core/dbus-unit.c