summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libsystemd-bus/kdbus.h15
-rw-r--r--src/libsystemd-bus/sd-bus.c2
2 files changed, 9 insertions, 8 deletions
diff --git a/src/libsystemd-bus/kdbus.h b/src/libsystemd-bus/kdbus.h
index 9b4163802c..3d21689bb6 100644
--- a/src/libsystemd-bus/kdbus.h
+++ b/src/libsystemd-bus/kdbus.h
@@ -240,13 +240,14 @@ enum {
/* subscription for metadata to attach */
KDBUS_HELLO_ATTACH_TIMESTAMP = 1 << 8,
KDBUS_HELLO_ATTACH_CREDS = 1 << 9,
- KDBUS_HELLO_ATTACH_COMM = 1 << 10,
- KDBUS_HELLO_ATTACH_EXE = 1 << 11,
- KDBUS_HELLO_ATTACH_CMDLINE = 1 << 12,
- KDBUS_HELLO_ATTACH_CGROUP = 1 << 13,
- KDBUS_HELLO_ATTACH_CAPS = 1 << 14,
- KDBUS_HELLO_ATTACH_SECLABEL = 1 << 15,
- KDBUS_HELLO_ATTACH_AUDIT = 1 << 16,
+ KDBUS_HELLO_ATTACH_NAMES = 1 << 10,
+ KDBUS_HELLO_ATTACH_COMM = 1 << 11,
+ KDBUS_HELLO_ATTACH_EXE = 1 << 12,
+ KDBUS_HELLO_ATTACH_CMDLINE = 1 << 13,
+ KDBUS_HELLO_ATTACH_CGROUP = 1 << 14,
+ KDBUS_HELLO_ATTACH_CAPS = 1 << 15,
+ KDBUS_HELLO_ATTACH_SECLABEL = 1 << 16,
+ KDBUS_HELLO_ATTACH_AUDIT = 1 << 17,
};
struct kdbus_cmd_hello {
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c
index f13e346dcf..49a2abc73b 100644
--- a/src/libsystemd-bus/sd-bus.c
+++ b/src/libsystemd-bus/sd-bus.c
@@ -181,7 +181,7 @@ _public_ int sd_bus_new(sd_bus **ret) {
r->n_ref = REFCNT_INIT;
r->input_fd = r->output_fd = -1;
r->message_version = 1;
- r->hello_flags |= KDBUS_HELLO_ACCEPT_FD;
+ r->hello_flags |= KDBUS_HELLO_ACCEPT_FD|KDBUS_HELLO_ATTACH_NAMES;
r->original_pid = getpid();
assert_se(pthread_mutex_init(&r->memfd_cache_mutex, NULL) == 0);