chiark / gitweb /
bus: include unique and well known names in credentials object
[elogind.git] / src / libsystemd-bus / sd-bus.c
index 37b6fedf031159de374d84ab54734f0e299192cc..4bbeea92f3f326cd12de3d298fb3340e37d1b52a 100644 (file)
@@ -290,6 +290,9 @@ _public_ int sd_bus_negotiate_attach_creds(sd_bus *bus, uint64_t mask) {
         assert_return(bus->state == BUS_UNSET, -EPERM);
         assert_return(!bus_pid_changed(bus), -ECHILD);
 
+        /* The well knowns we need unconditionally, so that matches can work */
+        mask |= SD_BUS_CREDS_WELL_KNOWN_NAMES;
+
         return kdbus_translate_attach_flags(mask, &bus->creds_mask);
 }