diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-08-27 19:00:34 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-08-27 19:49:09 +0200 |
commit | 35e528018f315798d3bffcb592b32a0d8f5162bd (patch) | |
tree | 61f643b6b5c396eb9acd71ba3651d35dbb349bd4 | |
parent | fef40ceb5dfbb76d4733e579846a380a224efd55 (diff) | |
download | systemd-35e528018f315798d3bffcb592b32a0d8f5162bd.tar.gz |
shared/but-util: drop trusted annotation from bus_open_system_watch_bind_with_description()
https://bugzilla.redhat.com/show_bug.cgi?id=1746057
This only affects systemd-resolved. bus_open_system_watch_bind_with_description()
is also used in timesyncd, but it has no methods, only read-only properties, and
in networkd, but it annotates all methods with SD_BUS_VTABLE_UNPRIVILEGED and does
polkit checks.
-rw-r--r-- | src/shared/bus-util.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index 6af115e7aa..821339d4ae 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -1705,10 +1705,6 @@ int bus_open_system_watch_bind_with_description(sd_bus **ret, const char *descri if (r < 0) return r; - r = sd_bus_set_trusted(bus, true); - if (r < 0) - return r; - r = sd_bus_negotiate_creds(bus, true, SD_BUS_CREDS_UID|SD_BUS_CREDS_EUID|SD_BUS_CREDS_EFFECTIVE_CAPS); if (r < 0) return r; |