chiark / gitweb /
kdbus: set kernel attach mask before creating the first bus
[elogind.git] / src / libsystemd / sd-bus / test-bus-kernel.c
index 0e6c2ac40210b5235689b66d7abec6853b3c0c59..485c396bdb301c0ad9aca5b666e40717880065a1 100644 (file)
@@ -45,6 +45,8 @@ int main(int argc, char *argv[]) {
 
         assert_se(asprintf(&name, "deine-mutter-%u", (unsigned) getpid()) >= 0);
 
+        bus_kernel_fix_attach_mask();
+
         bus_ref = bus_kernel_create_bus(name, false, &bus_name);
         if (bus_ref == -ENOENT)
                 return EXIT_TEST_SKIP;