mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-12-14 15:36:54 -05:00
Merge branch 'systemd-hardening' into 'main'
Some light hardening of veilid-server standalone node via systemd See merge request veilid/veilid!187
This commit is contained in:
commit
d74dad3ec9
1 changed files with 25 additions and 3 deletions
|
|
@ -8,14 +8,36 @@ After=network-online.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
Environment=RUST_BACKTRACE=1
|
Environment=RUST_BACKTRACE=1
|
||||||
ExecStart=/usr/bin/veilid-server
|
ExecStart=/usr/bin/veilid-server -c /etc/veilid-server/veilid-server.conf
|
||||||
ExecReload=/bin/kill -s HUP $MAINPID
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||||||
KillSignal=SIGQUIT
|
KillSignal=SIGQUIT
|
||||||
TimeoutStopSec=5
|
TimeoutStopSec=5
|
||||||
PrivateTmp=true
|
|
||||||
WorkingDirectory=/
|
WorkingDirectory=/
|
||||||
User=veilid
|
User=veilid
|
||||||
Group=veilid
|
Group=veilid
|
||||||
|
|
||||||
|
CapabilityBoundingSet=
|
||||||
|
SystemCallFilter=@system-service
|
||||||
|
MemoryDenyWriteExecute=true
|
||||||
|
NoNewPrivileges=true
|
||||||
|
PrivateDevices=true
|
||||||
|
PrivateTmp=true
|
||||||
|
PrivateUsers=true
|
||||||
|
ProtectHome=true
|
||||||
|
ProtectClock=true
|
||||||
|
ProtectControlGroups=true
|
||||||
|
ProtectKernelLogs=true
|
||||||
|
ProtectKernelModules=true
|
||||||
|
ProtectKernelTunables=true
|
||||||
|
ProtectProc=invisible
|
||||||
|
ProtectSystem=strict
|
||||||
|
ReadWritePaths=/var/db/veilid-server
|
||||||
|
ConfigurationDirectory=veilid-server
|
||||||
|
|
||||||
|
RestrictRealtime=true
|
||||||
|
SystemCallArchitectures=native
|
||||||
|
LockPersonality=true
|
||||||
|
RestrictSUIDSGID=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue