From b1bc08e599ae7760c7bcb29923ef5e1f92be2af7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 1 Jul 2011 23:53:44 +0200 Subject: [PATCH] manager: don't even think of enumerating sysv services in user instances --- src/service.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/service.c b/src/service.c index 4ee7900e..165655eb 100644 --- a/src/service.c +++ b/src/service.c @@ -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) -- 2.39.5