diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-12 19:58:46 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-12 20:00:45 +0100 |
commit | 0f437184b687af58c5c4b2e3201a83d98485b0e4 (patch) | |
tree | 308a6b393307a15dc6b73b64d84658c39c9d4c7f /src/libsystemd-bus/bus-kernel.c | |
parent | 9ff09bcb86fb125768667aca9bc0b10b1745370a (diff) |
bus: enforce endianess and marshalling for messages we send
Diffstat (limited to 'src/libsystemd-bus/bus-kernel.c')
-rw-r--r-- | src/libsystemd-bus/bus-kernel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c index c5817a78d6..68d0f48bd0 100644 --- a/src/libsystemd-bus/bus-kernel.c +++ b/src/libsystemd-bus/bus-kernel.c @@ -363,6 +363,7 @@ int bus_kernel_take_fd(sd_bus *b) { b->bus_client = true; b->can_fds = !!(hello.conn_flags & KDBUS_HELLO_ACCEPT_FD); b->message_version = 2; + b->message_endian = BUS_NATIVE_ENDIAN; /* the kernel told us the UUID of the underlying bus */ memcpy(b->server_id.bytes, hello.id128, sizeof(b->server_id.bytes)); |