From e9730b76902af3fa831ccf0c50b05fba5b228e73 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Tue, 11 Nov 2014 18:31:11 +0100 Subject: sd-bus: pass attach flags to BUS_CREATOR_INFO 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 --- src/libsystemd/sd-bus/bus-control.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsystemd/sd-bus') diff --git a/src/libsystemd/sd-bus/bus-control.c b/src/libsystemd/sd-bus/bus-control.c index bb33b14ff8..c25a4911f5 100644 --- a/src/libsystemd/sd-bus/bus-control.c +++ b/src/libsystemd/sd-bus/bus-control.c @@ -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; -- cgit v1.2.3-54-g00ecf