diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-28 02:26:05 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-28 02:26:05 +0100 |
commit | 387eba008426fbd8d7400eef8e41fda09f7f3cb3 (patch) | |
tree | f59b757324c85e014dd34a6af7aa455c681701da /src/core/manager.c | |
parent | 412c18f10c9df3f0a02358d8c0e707ed2e5fa186 (diff) |
core: only override kdbus attach mask when running as PID 1
Diffstat (limited to 'src/core/manager.c')
-rw-r--r-- | src/core/manager.c | 3 |
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", |