systemd: port to Go, and read a system unit's journal as root

The journal verb ran journalctl as the operator account, which outside the
journal's group sees only its own entries: every system service read
'-- No entries --', and a person reached for a shell. The read now
escalates with sudo -n like the acts; ported to Go with every test. hq
issue 255.
This commit is contained in:
jochen
2026-10-05 18:09:42 +02:00
parent 6a42bafb1c
commit c42f1ce45b
11 changed files with 806 additions and 519 deletions
+6 -3
View File
@@ -29,9 +29,12 @@
{
"name": "tools",
"kind": "bundle",
"language": "typescript",
"entrypoints": [
"tools/index.js"
"language": "go",
"system": "arch",
"from": "cmd/systemd-tools",
"binary": "systemd-tools",
"loads": [
"systemd-tools"
]
}
]