diff options
author | Richard Phibel <rphibel@googlemail.com> | 2022-08-04 11:03:51 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-08-04 17:26:49 +0200 |
commit | d0d6ac67b5f84526ad2651bbe512034796bb529f (patch) | |
tree | 7765c601583b7cc3cb9051a089684dc10f9d2c5a /src | |
parent | scope: allow unprivileged delegation on scopes (diff) | |
download | systemd-d0d6ac67b5f84526ad2651bbe512034796bb529f.tar.xz systemd-d0d6ac67b5f84526ad2651bbe512034796bb529f.zip |
analyze: Migrate to bus-locator.h
Migrated analyze-security to use new API bus_call_method instead of sd_bus_call_method.
Diffstat (limited to 'src')
-rw-r--r-- | src/analyze/analyze-security.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/analyze/analyze-security.c b/src/analyze/analyze-security.c index 9255f4cb89..d4858f77c5 100644 --- a/src/analyze/analyze-security.c +++ b/src/analyze/analyze-security.c @@ -7,6 +7,7 @@ #include "analyze-security.h" #include "analyze-verify.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-map-properties.h" #include "bus-unit-util.h" #include "bus-util.h" @@ -2815,11 +2816,9 @@ static int analyze_security(sd_bus *bus, _cleanup_strv_free_ char **list = NULL; size_t n = 0; - r = sd_bus_call_method( + r = bus_call_method( bus, - "org.freedesktop.systemd1", - "/org/freedesktop/systemd1", - "org.freedesktop.systemd1.Manager", + bus_systemd_mgr, "ListUnits", &error, &reply, |