mirror of
https://github.com/systemd/systemd.git
synced 2025-01-14 23:24:38 +03:00
core: only override kdbus attach mask when running as PID 1
This commit is contained in:
parent
412c18f10c
commit
387eba0084
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user