Files
rust-discovery/deploy/linux/rmm-helper-cloud.service
2026-11-13 22:14:44 +01:00

37 lines
1.1 KiB
Desktop File

[Unit]
Description=RMM narrowly scoped cloud dev/test root helper
After=time-sync.target
[Service]
Type=simple
# Implicit root avoids systemd 255 seccomp/setuid capability mutation.
Group=rmm-agent
StateDirectory=rmm-helper
StateDirectoryMode=0700
RuntimeDirectory=rmm-helper-cloud
RuntimeDirectoryMode=0750
UMask=0077
Environment=RMM_HELPER_CONFIG=/etc/rmm-remote/helper-general.json
ExecStart=/usr/local/libexec/rmm-privileged-helper
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
PrivateTmp=true
PrivateNetwork=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictAddressFamilies=AF_UNIX
CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER CAP_FSETID CAP_SETGID CAP_SETUID CAP_SETPCAP CAP_SETFCAP
AmbientCapabilities=
SystemCallFilter=~@mount @reboot @swap @raw-io @module @clock @debug
# Read-only trusted clock query; glibc may use clock_adjtime. No CAP_SYS_TIME.
SystemCallFilter=adjtimex clock_adjtime
ReadWritePaths=/etc/systemd/system/rmm-mvp-test.service
[Install]
WantedBy=multi-user.target