summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2014-11-11 18:31:11 +0100
committerDaniel Mack <daniel@zonque.org>2014-11-11 18:31:11 +0100
commite9730b76902af3fa831ccf0c50b05fba5b228e73 (patch)
treeab0112680399b470bbfc5342090faf65232dbb8a
parent4ecd22142543aac55ddac1da3b7d6882c009d637 (diff)
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 <daniel@zonque.org>
-rw-r--r--src/libsystemd/sd-bus/bus-control.c1
1 files changed, 1 insertions, 0 deletions
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;