mirror of
https://github.com/systemd/systemd.git
synced 2025-01-14 23:24:38 +03:00
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>
This commit is contained in:
parent
4ecd221425
commit
e9730b7690
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user