mirror of
https://github.com/systemd/systemd.git
synced 2024-12-29 03:53:38 +08:00
manager: don't even think of enumerating sysv services in user instances
This commit is contained in:
parent
5c94603d4c
commit
b1bc08e599
@ -2977,6 +2977,9 @@ static int service_enumerate(Manager *m) {
|
||||
|
||||
assert(m);
|
||||
|
||||
if (m->running_as != MANAGER_SYSTEM)
|
||||
return 0;
|
||||
|
||||
zero(runlevel_services);
|
||||
|
||||
STRV_FOREACH(p, m->lookup_paths.sysvrcnd_path)
|
||||
|
Loading…
Reference in New Issue
Block a user