diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-26 03:08:52 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-26 03:08:52 +0100 |
commit | 758bf0c755e045f7b1dd89869d3a10b9457e9bbe (patch) | |
tree | 04e9673f4113bf3b51258e02b374b5ed01e161bd /src/libsystemd-bus | |
parent | 452de75e5b8b1cff207243848f4e5de68620554c (diff) |
bus: don't process Peer interface messages in the proxy
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r-- | src/libsystemd-bus/bus-internal.h | 1 | ||||
-rw-r--r-- | src/libsystemd-bus/sd-bus.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-internal.h b/src/libsystemd-bus/bus-internal.h index 321070d0e5..7c92293771 100644 --- a/src/libsystemd-bus/bus-internal.h +++ b/src/libsystemd-bus/bus-internal.h @@ -163,6 +163,7 @@ struct sd_bus { bool nodes_modified:1; bool trusted:1; bool fake_creds_valid:1; + bool manual_peer_interface:1; int use_memfd; diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c index fe2d329d9b..43be1debdc 100644 --- a/src/libsystemd-bus/sd-bus.c +++ b/src/libsystemd-bus/sd-bus.c @@ -2072,6 +2072,9 @@ static int process_builtin(sd_bus *bus, sd_bus_message *m) { assert(bus); assert(m); + if (bus->manual_peer_interface) + return 0; + if (m->header->type != SD_BUS_MESSAGE_METHOD_CALL) return 0; |