diff options
author | Daniel Mack <daniel@zonque.org> | 2014-11-28 23:11:31 +0100 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2014-11-28 23:17:20 +0100 |
commit | 8f6365d12aff7850efeef32c5c06844b7a6b400c (patch) | |
tree | 494df069b410d1e8d22b0f317900351ff513bb0a /handle.c | |
parent | bbac6e47e60c5f0631b71e41cee46aec1983bb11 (diff) | |
download | kdbus-bus-8f6365d12aff7850efeef32c5c06844b7a6b400c.tar.gz kdbus-bus-8f6365d12aff7850efeef32c5c06844b7a6b400c.tar.bz2 kdbus-bus-8f6365d12aff7850efeef32c5c06844b7a6b400c.zip |
metadata: duplicate owned names and connection description
In order to support moving messages between different pools, we also
need to remember the connection's description and all the names it
owned, because oth details might have changed between the initial
storing and the later move.
Already prepare struct kdbus_items of type KDBUS_ITEM_OWNED_NAME in
kdbus_meta_collect() for fewer memory fragmentation and faster
play-out in kdbus_meta_export().
This way, kdbus_meta_collect() needs to know about the source
connection to take the names and description from, while
kdbus_meta_export only needs to care for the destination to translate
for.
Signed-off-by: Daniel Mack <daniel@zonque.org>
Diffstat (limited to 'handle.c')
-rw-r--r-- | handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -120,7 +120,7 @@ static int handle_ep_open(struct inode *inode, struct file *file) goto exit_free; } - ret = kdbus_meta_collect(handle->meta, 0, + ret = kdbus_meta_collect(handle->meta, NULL, 0, KDBUS_ATTACH_CREDS | KDBUS_ATTACH_PIDS | KDBUS_ATTACH_AUXGROUPS | |