summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-28 02:26:05 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-28 02:26:05 +0100
commit387eba008426fbd8d7400eef8e41fda09f7f3cb3 (patch)
treef59b757324c85e014dd34a6af7aa455c681701da /src
parent412c18f10c9df3f0a02358d8c0e707ed2e5fa186 (diff)
core: only override kdbus attach mask when running as PID 1
Diffstat (limited to 'src')
-rw-r--r--src/core/manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index 63102d1785..164676126f 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -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",