Linux services: more systemd hardening; journald follower: operator's known hosts
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
The four systemd units (Debian, Ubuntu, RPM and Arch packages) now also drop every capability, get private devices, protect kernel modules, kernel logs and the clock, may not create namespaces, open only AF_UNIX, AF_INET, AF_INET6 and AF_NETLINK sockets (Node lists network interfaces over netlink), make only @system-service system calls on the native architecture (others fail with EPERM), lock their personality, and create files private to them (umask 0077). The mail worker, syslog receiver and journald follower also gain the server's ProtectKernelTunables, ProtectControlGroups and RestrictSUIDSGID. Node, ssh and journalctl were run under these settings with systemd-run, and systemd-analyze verify accepts the units. Over SSH the journald follower accepted a host's key on first use, so its first connection could reach an impostor. JOURNALD_KNOWN_HOSTS now names a known_hosts file the operator writes; given, ssh runs with StrictHostKeyChecking=yes against it. The configuration template and README.Debian tell operators to empty ADMIN_INITIAL_PASSWORD once they have signed in and changed it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/977b2a8a067e812e550ba712103d2e7c066357b3