Repository navigation
Commit 8fa3f89
committed
fix(probe): classify a missing user session bus as absent
systemctl --user show exits 1 with 'Failed to get D-Bus connection: No
such file or directory' on hosts that ship systemctl but run no user
session bus (WSL, containers, systemd-less distros). The probe mapped
every non-zero status to unknown, so ownership inspection reported
'could not be proven' and admission refused every sync/write on such
hosts indefinitely (#1939).
The two systemd-impossible messages (missing session-bus socket, and
WSL's not-booted-with-systemd) now classify as absent — the same
conclusion as systemctl being missing, since no user unit can be
registered without a user manager. Other bus failures stay unknown:
the user manager may genuinely be running with a misconfigured
DBUS_SESSION_BUS_ADDRESS, and the existing pinned test for that case
is unchanged.1 parent e97fb26 commit 8fa3f89
2 files changed
Lines changed: 40 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
270 | 271 | | |
271 | | - | |
272 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
273 | 285 | | |
274 | 286 | | |
275 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
0 commit comments