garage44.eu/jeroen/midas

logclone: git clone https://garage44.eu/jeroen/midas.git

.. /units/midas-admin.service

raw

# Root, because it writes /etc/sudoers.d/midas-admin: opens an admin window
# only for a grant signed by a passkey in /etc/midas/admin.json, which the hub
# never holds, and closes one whose time is up (src/admin.rs). Nothing set up,
# it does nothing.
[Unit]
Description=midas: open or close the agents' admin window

[Service]
Type=oneshot
ExecStart=/usr/local/bin/midas hub admin-apply
TimeoutStartSec=1min
PrivateTmp=yes
ProtectHome=read-only
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes