This commit is contained in:
2026-09-22 23:37:05 +03:00
parent cf1c31eb2a
commit 0fc35589e6
25 changed files with 2616 additions and 245 deletions

View File

@@ -0,0 +1,15 @@
[Unit]
Description=VPS Control privileged helper socket
[Socket]
ListenStream=/run/vps-agent-helper/control.sock
Accept=yes
MaxConnections=1
SocketUser=vps-agent
SocketGroup=vps-agent
SocketMode=0600
DirectoryMode=0750
RemoveOnStop=yes
[Install]
WantedBy=sockets.target

View File

@@ -0,0 +1,26 @@
[Unit]
Description=VPS Control privileged helper request
Documentation=https://github.com/example/vps-control
[Service]
Type=oneshot
ExecStart=/usr/local/bin/vps-agent --privileged-helper --config /etc/vps-agent/config.toml
StandardInput=socket
StandardOutput=socket
StandardError=journal
User=root
Group=root
TimeoutStartSec=330
UMask=0077
PrivateTmp=true
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
ProtectClock=true
ProtectHostname=true
RestrictSUIDSGID=true
LockPersonality=true
RestrictRealtime=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK