diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-26 03:08:15 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-26 03:08:15 +0100 |
commit | f2769777c8e8ad32b0b19cd540d2f742bda4457f (patch) | |
tree | ce52d80144163a3f8271b4d38e4a187fe06d8bd9 /src/libsystemd-bus/bus-kernel.c | |
parent | 442e2def7938435481eed34cd7331e34ebc8d9e0 (diff) |
bus: make system bus kdbus node world-accessible
Diffstat (limited to 'src/libsystemd-bus/bus-kernel.c')
-rw-r--r-- | src/libsystemd-bus/bus-kernel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c index fadb683094..d752d1fbe3 100644 --- a/src/libsystemd-bus/bus-kernel.c +++ b/src/libsystemd-bus/bus-kernel.c @@ -1131,7 +1131,7 @@ int kdbus_translate_attach_flags(uint64_t mask, uint64_t *kdbus_mask) { return 0; } -int bus_kernel_create_bus(const char *name, char **s) { +int bus_kernel_create_bus(const char *name, bool world, char **s) { struct kdbus_cmd_make *make; struct kdbus_item *n; int fd; @@ -1163,7 +1163,7 @@ int bus_kernel_create_bus(const char *name, char **s) { n->type = KDBUS_ITEM_MAKE_NAME; make->size += ALIGN8(n->size); - make->flags = KDBUS_MAKE_POLICY_OPEN; + make->flags = KDBUS_MAKE_POLICY_OPEN | (world ? KDBUS_MAKE_ACCESS_WORLD : 0); if (ioctl(fd, KDBUS_CMD_BUS_MAKE, make) < 0) { close_nointr_nofail(fd); |