New daemon architecture

This commit is contained in:
2026-02-06 13:47:06 -03:00
commit cbe18da598
18 changed files with 2435 additions and 0 deletions

27
dist/systemd/blehd-root.service vendored Normal file
View File

@@ -0,0 +1,27 @@
[Unit]
Description=Bleh MXW01 helper daemon (root)
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/blehd --socket /run/bleh/blehd.sock --group bleh
Restart=on-failure
RestartSec=1
RuntimeDirectory=bleh
RuntimeDirectoryMode=0755
# Hardening (still useful even as root)
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
LockPersonality=true
MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.target