75 lines
3.2 KiB
Plaintext
75 lines
3.2 KiB
Plaintext
# REVIEW/PROVISIONING TEMPLATE ONLY. Not installed by this change.
|
|
# Admission currently refuses incomplete native host-operation composition.
|
|
# Apply only to archipelago.service after independently qualified migration.
|
|
[Unit]
|
|
Requires=archipelago-c01-access.service archipelago-runtime-broker.service
|
|
After=archipelago-c01-access.service archipelago-runtime-broker.service
|
|
Requires=archipelago-c01-network.service archipelago-nts.service archipelago-d09-lifecycle.service
|
|
After=archipelago-c01-network.service archipelago-nts.service archipelago-d09-lifecycle.service
|
|
|
|
[Service]
|
|
User=root
|
|
Group=root
|
|
SupplementaryGroups=
|
|
# Explicit User=root plus NoNewPrivileges on supported systemd drops SETUID
|
|
# without this appointment. Setup needs it for UID maps and permanent role
|
|
# credential drop; role launch clears effective/permitted/inheritable/ambient.
|
|
AmbientCapabilities=CAP_SETUID
|
|
Environment=
|
|
EnvironmentFile=
|
|
ExecStartPre=
|
|
ExecStart=
|
|
ExecStart=/usr/local/bin/archipelago c01-supervisor-v3
|
|
Type=notify
|
|
NotifyAccess=main
|
|
# A failed activation must not renew time grants or replace an unreaped worker.
|
|
# The keyless root collector (including chronyc and its late dropped admin)
|
|
# occupies one bounded role cgroup. MainPID never waits for its blocking I/O.
|
|
Restart=no
|
|
WatchdogSec=0
|
|
TimeoutStartSec=infinity
|
|
TimeoutStopSec=infinity
|
|
KillMode=control-group
|
|
SendSIGKILL=no
|
|
OOMPolicy=stop
|
|
Delegate=memory pids cpu
|
|
DelegateSubgroup=supervisor
|
|
NoNewPrivileges=yes
|
|
PrivateTmp=yes
|
|
# Root finite FIPS operations need the retained daemon control socket. Roles
|
|
# cover /tmp before dropping credentials; this does not expose it to the app.
|
|
BindReadOnlyPaths=-/tmp/fips-control.sock
|
|
PrivateDevices=yes
|
|
ProtectHome=yes
|
|
ProtectSystem=strict
|
|
ReadWritePaths=
|
|
ReadWritePaths=/var/lib/archipelago-c01 /sys/fs/cgroup
|
|
# Externally provision these root-owned directories before activation. The
|
|
# dedicated root workers need their finite journal/config destinations writable
|
|
# under ProtectSystem=strict; the dropped application gains no root DAC rights.
|
|
ReadWritePaths=/var/lib/archipelago-network-settings /etc/archipelago /etc/fips/fips.d
|
|
ReadWritePaths=/etc/tor
|
|
# chronyc binds its reply socket in the protected command-socket directory.
|
|
# Only trusted root roles see this path; application/authority cover /run.
|
|
ReadWritePaths=/run/archipelago-nts
|
|
# Private backings retain original inodes/UIDs. Namespace idmaps expose only
|
|
# role views. The runtime root keeps its original absolute pathname and owners.
|
|
ReadWritePaths=@PRIVATE_BACKING_PARENT@ @RUNTIME_DATA_ROOT@
|
|
# /run/archipelago-c01 is provisioned root:root 0755, shared with the access
|
|
# owner. NEVER assign this service RuntimeDirectory cleanup ownership of it:
|
|
# manager stop/restart must not unlink the live access owner's lease socket.
|
|
RuntimeDirectory=
|
|
UMask=0077
|
|
StandardInput=null
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
LimitCORE=0
|
|
TasksMax=320
|
|
MemoryMax=3G
|
|
MemorySwapMax=0
|
|
# Required: provision a separately routed network namespace. Merely hiding
|
|
# /run does not exclude host abstract Unix IPC; missing path refuses start.
|
|
NetworkNamespacePath=/run/netns/archipelago-managed
|
|
# Root runtime owner / Podman containers MUST be a separate lifetime, never a
|
|
# child in these c01 role groups. No generic root-command IPC is granted here.
|