pushpin: Initial ebuild

Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
This commit is contained in:
2024-02-24 00:43:07 +01:00
parent 19362796d6
commit 5dfe1f19c3
9 changed files with 158 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
[Unit]
Description=Pushpin reverse proxy for realtime web services
After=network.target
[Service]
User=pushpin
Group=pushpin
#ExecStartPre=/usr/bin/pushpin validate /etc/pushpin/pushpin.conf
ExecStart=/usr/bin/pushpin --config /etc/pushpin/pushpin.conf
#ExecReload=/usr/bin/pushpin validate /etc/pushpin/pushpin.conf
ExecReload=/bin/kill -HUP $MAINPID
Restart=no
# capabilities
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
# sandboxing
ProtectHostname=yes
ProtectClock=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectKernelLogs=yes
ProtectSystem=strict
ProtectHome=yes
ProtectControlGroups=yes
PrivateTmp=yes
PrivateDevices=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
LockPersonality=yes
MemoryDenyWriteExecute=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
NoNewPrivileges=yes
RemoveIPC=yes
RestrictNamespaces=yes
WorkingDirectory=/var/lib/pushpin
StateDirectory=pushpin
StateDirectoryMode=0750
# syscall filtering
SystemCallFilter=@system-service @debug
SystemCallArchitectures=native
# process properties
UMask=077
[Install]
WantedBy=multi-user.target