summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/test-bus-kernel.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-27 21:28:13 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-27 22:05:24 +0100
commit1a29929959fd8f59e19ce60c25d1a1f7d910fac0 (patch)
tree6026f2f6d2a3cabc39f348844825ea3c244ad790 /src/libsystemd/sd-bus/test-bus-kernel.c
parent12f1caf40c8bbc8302c8458a364515628e621fa5 (diff)
kdbus: set kernel attach mask before creating the first bus
Diffstat (limited to 'src/libsystemd/sd-bus/test-bus-kernel.c')
-rw-r--r--src/libsystemd/sd-bus/test-bus-kernel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/test-bus-kernel.c b/src/libsystemd/sd-bus/test-bus-kernel.c
index 0e6c2ac402..485c396bdb 100644
--- a/src/libsystemd/sd-bus/test-bus-kernel.c
+++ b/src/libsystemd/sd-bus/test-bus-kernel.c
@@ -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;