• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

systemd / systemd / 20647873619

01 Jan 2026 11:49PM UTC coverage: 72.697% (+0.02%) from 72.676%
20647873619

push

github

yuwata
vmspawn: Add --user/--system and support user session machined registration

The UX of registering with the user session machined
instance is much better as there won't be an authorization
prompt. To make that available for users, let's add --user
and --system switches for vmspawn. For backwards compat, we'll
still try to register with the system machined instance if the
user machined instance is not available.

0 of 35 new or added lines in 2 files covered. (0.0%)

286 existing lines in 41 files now uncovered.

310072 of 426528 relevant lines covered (72.7%)

1140521.48 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/basic/runtime-scope.h
1
/* SPDX-License-Identifier: LGPL-2.1-or-later */
2
#pragma once
3

4
#include "basic-forward.h"
5

6
typedef enum RuntimeScope {
7
        RUNTIME_SCOPE_SYSTEM,           /* for the system */
8
        RUNTIME_SCOPE_USER,             /* for a user */
9
        RUNTIME_SCOPE_GLOBAL,           /* for all users */
10
        _RUNTIME_SCOPE_MAX,
11
        _RUNTIME_SCOPE_INVALID = -EINVAL,
12
} RuntimeScope;
13

14
DECLARE_STRING_TABLE_LOOKUP(runtime_scope, RuntimeScope);
15
DECLARE_STRING_TABLE_LOOKUP_TO_STRING(runtime_scope_cmdline_option, RuntimeScope);
16

UNCOV
17
static inline mode_t runtime_scope_to_socket_mode(RuntimeScope scope) {
×
18
        /* Returns the right socket mode to use for binding AF_UNIX sockets intended for the specified
19
         * scope. If system mode is selected the whole system can connect to it, if user mode is selected
20
         * only the user can connect to it. */
21

UNCOV
22
        switch (scope) {
×
23
        case RUNTIME_SCOPE_SYSTEM:
24
                return 0666;
25

UNCOV
26
        case RUNTIME_SCOPE_USER:
×
UNCOV
27
                return 0600;
×
28

29
        default:
×
UNCOV
30
                return MODE_INVALID;
×
31
        }
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc