diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-07-23 17:01:01 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-07-23 19:38:57 +0200 |
commit | 16d8249ae4c704450f3fe944cb00ae246f133e8c (patch) | |
tree | 44c932953cece458f89fc77ca4d0a4fc7ea4928d | |
parent | core: reliably check if varlink socket has been deserialized (diff) | |
download | systemd-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.c | 3 |
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; |