chiark / gitweb /
sd-bus: pass attach flags to BUS_CREATOR_INFO
authorDaniel Mack <daniel@zonque.org>
Tue, 11 Nov 2014 17:31:11 +0000 (18:31 +0100)
committerDaniel Mack <daniel@zonque.org>
Tue, 11 Nov 2014 17:31:11 +0000 (18:31 +0100)
kdbus learned parsing the attach flags for the KDBUS_CMD_BUS_CREATOR_INFO
ioctl. Bits not set in this mask will not be exported. Set that field to
_KDBUS_ATTACH_ALL for now.

Signed-off-by: Daniel Mack <daniel@zonque.org>
src/libsystemd/sd-bus/bus-control.c

index bb33b14..c25a491 100644 (file)
@@ -837,6 +837,7 @@ _public_ int sd_bus_get_owner_creds(sd_bus *bus, uint64_t mask, sd_bus_creds **r
                 struct kdbus_info *creator_info;
 
                 cmd.size = sizeof(cmd);
+                cmd.flags = _KDBUS_ATTACH_ALL;
                 r = ioctl(bus->input_fd, KDBUS_CMD_BUS_CREATOR_INFO, &cmd);
                 if (r < 0)
                         return -errno;