mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 09:14:33 +00:00
- secuboxd.service: Change Type from notify to simple, run as root - c3box.service: Remove config file requirement, use command-line flags - Add secuboxd-prod.yaml with production paths - Add daemon/build/ to gitignore Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
46 lines
1.0 KiB
Desktop File
46 lines
1.0 KiB
Desktop File
# SecuBox Mesh Daemon
|
|
# CyberMind — SecuBox-Deb — 2026
|
|
[Unit]
|
|
Description=SecuBox Mesh Daemon
|
|
Documentation=https://secubox.in/docs/secuboxd
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
Before=crowdsec.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/bin/secuboxd --config /etc/secubox/secuboxd.yaml
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
# Security hardening (CSPN compliant)
|
|
User=root
|
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW
|
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW
|
|
NoNewPrivileges=yes
|
|
ProtectSystem=strict
|
|
ProtectHome=yes
|
|
PrivateTmp=yes
|
|
PrivateDevices=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectKernelModules=yes
|
|
ProtectControlGroups=yes
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
|
RestrictNamespaces=yes
|
|
LockPersonality=yes
|
|
MemoryDenyWriteExecute=yes
|
|
RestrictRealtime=yes
|
|
RestrictSUIDSGID=yes
|
|
|
|
# Runtime directories
|
|
RuntimeDirectory=secuboxd
|
|
StateDirectory=secuboxd
|
|
LogsDirectory=secuboxd
|
|
|
|
# Socket permissions
|
|
RuntimeDirectoryMode=0750
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|