summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-07-23 17:01:01 +0200
committerMike Yuan <me@yhndnzj.com>2024-07-23 19:38:57 +0200
commit16d8249ae4c704450f3fe944cb00ae246f133e8c (patch)
tree44c932953cece458f89fc77ca4d0a4fc7ea4928d
parentcore: reliably check if varlink socket has been deserialized (diff)
downloadsystemd-16d8249ae4c704450f3fe944cb00ae246f133e8c.tar.xz
systemd-16d8249ae4c704450f3fe944cb00ae246f133e8c.zip
core-varlink: add missing runtime_scope check for manager_varlink_init_user()
-rw-r--r--src/core/core-varlink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/core-varlink.c b/src/core/core-varlink.c
index b22b8fb0c2..9051ab3111 100644
--- a/src/core/core-varlink.c
+++ b/src/core/core-varlink.c
@@ -619,6 +619,9 @@ static int manager_varlink_init_user(Manager *m) {
if (m->managed_oom_varlink)
return 1;
+ if (!MANAGER_IS_USER(m))
+ return 0;
+
if (MANAGER_IS_TEST_RUN(m))
return 0;