feat: deploy cloud-only RMM and verify audited APT diagnostics
Rust development slice / linux (push) Failing after 7s

This commit is contained in:
2026-11-13 13:49:11 +01:00
parent 6c3203d725
commit fbef0e4e2f
48 changed files with 3125 additions and 34 deletions
@@ -170,6 +170,13 @@ print('CLONE_GAPS_CLOSED')
def test_dedicated_unit_has_narrow_profile_without_weakening_general_unit(self):
unit = (ROOT / 'deploy/linux/rmm-apt-helper.service').read_text()
# Explicit User=root triggers systemd 255's seccomp/setuid path:
# CAP_SETUID disappears from E/P and setup capabilities leak into I.
# Default root preserves the exact controller profile, not extra caps.
self.assertFalse(any(line.startswith('User=') for line in unit.splitlines()))
self.assertIn('Group=rmm-agent', unit)
self.assertIn('SystemCallFilter=adjtimex clock_adjtime', unit)
self.assertNotIn('CAP_SYS_TIME', next(line for line in unit.splitlines() if line.startswith('CapabilityBoundingSet=')))
for required in ('NoNewPrivileges=true', 'PrivateNetwork=true', 'ProtectSystem=strict',
'RestrictNamespaces=mnt pid net', 'DevicePolicy=strict', 'PrivateDevices=no',
'AmbientCapabilities=', 'SystemCallArchitectures=native'):