[systemd-commits] 2 commits - src/libsystemd

Lennart Poettering lennart at kemper.freedesktop.org
Tue Mar 18 17:48:06 PDT 2014


 src/libsystemd/sd-bus/bus-kernel.c |    1 +
 src/libsystemd/sd-bus/kdbus.h      |    7 ++++---
 2 files changed, 5 insertions(+), 3 deletions(-)

New commits:
commit d2e7b05f248a03dc528f4a270dac2ac3ff3e605a
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Mar 19 01:36:03 2014 +0100

    core: when creating an activating busname attach all metadata fields to the messages queued for it
    
    This way we can be sure that the service the messages are ultimately
    intended for finds all fields it might need.

diff --git a/src/libsystemd/sd-bus/bus-kernel.c b/src/libsystemd/sd-bus/bus-kernel.c
index 64a74d6..977a7cd 100644
--- a/src/libsystemd/sd-bus/bus-kernel.c
+++ b/src/libsystemd/sd-bus/bus-kernel.c
@@ -1422,6 +1422,7 @@ int bus_kernel_create_starter(const char *bus, const char *name, bool accept_fd,
         hello->size = size;
         hello->conn_flags = KDBUS_HELLO_ACTIVATOR | (accept_fd ? KDBUS_HELLO_ACCEPT_FD : 0);
         hello->pool_size = KDBUS_POOL_SIZE;
+        hello->attach_flags = _KDBUS_ATTACH_ALL;
 
         if (ioctl(fd, KDBUS_CMD_HELLO, hello) < 0) {
                 safe_close(fd);

commit f9d12d44393189e6ebad59208902b759958635f2
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Mar 19 01:35:52 2014 +0100

    update kdbus.h

diff --git a/src/libsystemd/sd-bus/kdbus.h b/src/libsystemd/sd-bus/kdbus.h
index 2d073b8..6bb6777 100644
--- a/src/libsystemd/sd-bus/kdbus.h
+++ b/src/libsystemd/sd-bus/kdbus.h
@@ -173,8 +173,8 @@ struct kdbus_memfd {
 
 /**
  * struct kdbus_name - a registered well-known name with its flags
- * @flags:		flags from KDBUS_NAME_*
- * @name:		well-known name
+ * @flags:		Flags from KDBUS_NAME_*
+ * @name:		Well-known name
  *
  * Attached to:
  *   KDBUS_ITEM_NAME
@@ -187,7 +187,7 @@ struct kdbus_name {
 /**
  * struct kdbus_policy_access - policy access item
  * @type:		One of KDBUS_POLICY_ACCESS_* types
- * @bits:		Access to grant. One of KDBUS_POLICY_*
+ * @access:		Access to grant
  * @id:			For KDBUS_POLICY_ACCESS_USER, the uid
  *			For KDBUS_POLICY_ACCESS_GROUP, the gid
  */
@@ -520,6 +520,7 @@ enum kdbus_attach_flags {
 	KDBUS_ATTACH_SECLABEL		=  1 <<  8,
 	KDBUS_ATTACH_AUDIT		=  1 <<  9,
 	KDBUS_ATTACH_CONN_NAME		=  1 << 10,
+	_KDBUS_ATTACH_ALL		=  (1 << 11) - 1,
 };
 
 /**



More information about the systemd-commits mailing list