chiark / gitweb /
core: only override kdbus attach mask when running as PID 1
authorLennart Poettering <lennart@poettering.net>
Fri, 28 Nov 2014 01:26:05 +0000 (02:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 28 Nov 2014 01:26:05 +0000 (02:26 +0100)
src/core/manager.c

index 63102d1..1646761 100644 (file)
@@ -722,7 +722,8 @@ static int manager_setup_kdbus(Manager *m) {
         if (m->test_run || m->kdbus_fd >= 0)
                 return 0;
 
-        bus_kernel_fix_attach_mask();
+        if (getpid() == 1)
+                bus_kernel_fix_attach_mask();
 
         m->kdbus_fd = bus_kernel_create_bus(
                         m->running_as == SYSTEMD_SYSTEM ? "system" : "user",