connection, metadata: do namespace translation as late as possible
authorDaniel Mack <zonque@gmail.com>
Fri, 15 Aug 2014 17:22:43 +0000 (19:22 +0200)
committerDaniel Mack <zonque@gmail.com>
Fri, 15 Aug 2014 20:10:42 +0000 (22:10 +0200)
commitbbbe6f8d8920ab3f2560de3a21190fa0f2fc1182
treeac07df9c80d44c489e547f502d5ad7d75def7274
parentedad96ffe90db633c073f962c4e309f2894f9c92
connection, metadata: do namespace translation as late as possible

We have to do the namespace translation just before a message is
installed into the receiver's task, so we actually know about the
currently used pid and user namespaces.

To achive this, store the byte offset pointer in the message in
kdbus_conn_queue_alloc(), and patch the values over from
kdbus_conn_msg_install().

Thanks to Djalal Harouni for pointing this out.
connection.c
metadata.c