[systemd-commits] src/libsystemd
David Herrmann
dvdhrm at kemper.freedesktop.org
Wed Nov 26 02:13:56 PST 2014
src/libsystemd/sd-bus/bus-kernel.c | 4 ++--
src/libsystemd/sd-bus/kdbus.h | 16 ++++++++--------
2 files changed, 10 insertions(+), 10 deletions(-)
New commits:
commit affc7fe9e1295e209c332a26acbbc992b710fe82
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Nov 26 11:11:54 2014 +0100
bus: update kdbus.h (ABI break)
We changed creds to u32, so fix systemd sd-bus to acknowledge that.
diff --git a/src/libsystemd/sd-bus/bus-kernel.c b/src/libsystemd/sd-bus/bus-kernel.c
index 2bfce93..907c5c5 100644
--- a/src/libsystemd/sd-bus/bus-kernel.c
+++ b/src/libsystemd/sd-bus/bus-kernel.c
@@ -679,7 +679,7 @@ static int bus_kernel_make_message(sd_bus *bus, struct kdbus_msg *k) {
if (bus->creds_mask & SD_BUS_CREDS_SUPPLEMENTARY_GIDS) {
size_t i, n;
uid_t *u;
- n = (d->size - offsetof(struct kdbus_item, data64)) / sizeof(uint64_t);
+ n = (d->size - offsetof(struct kdbus_item, data32)) / sizeof(uint32_t);
u = new(uid_t, n);
if (!u) {
r = -ENOMEM;
@@ -687,7 +687,7 @@ static int bus_kernel_make_message(sd_bus *bus, struct kdbus_msg *k) {
}
for (i = 0; i < n; i++)
- u[i] = (uid_t) d->data64[i];
+ u[i] = (uid_t) d->data32[i];
m->creds.supplementary_gids = u;
m->creds.n_supplementary_gids = n;
diff --git a/src/libsystemd/sd-bus/kdbus.h b/src/libsystemd/sd-bus/kdbus.h
index 3e841f4..7a58785 100644
--- a/src/libsystemd/sd-bus/kdbus.h
+++ b/src/libsystemd/sd-bus/kdbus.h
@@ -70,14 +70,14 @@ struct kdbus_notify_name_change {
* KDBUS_ITEM_CREDS
*/
struct kdbus_creds {
- __u64 uid;
- __u64 euid;
- __u64 suid;
- __u64 fsuid;
- __u64 gid;
- __u64 egid;
- __u64 sgid;
- __u64 fsgid;
+ __u32 uid;
+ __u32 euid;
+ __u32 suid;
+ __u32 fsuid;
+ __u32 gid;
+ __u32 egid;
+ __u32 sgid;
+ __u32 fsgid;
};
/**
More information about the systemd-commits
mailing list