Allow serving unix sockets

This commit is contained in:
NXShock 2025-06-03 12:17:51 +05:00
parent c41ff56ffa
commit 4847a2d05a
5 changed files with 35 additions and 14 deletions

View file

@ -4,6 +4,8 @@ Description=simplefileshare service
[Service]
Type=simple
User=simplefileshare
Group=simplefileshare
RuntimeDirectory=simplefileshare
ExecStart=/usr/bin/simplefileshare
Restart=on-failure
RestartSec=10s
@ -27,7 +29,7 @@ ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
ReadWritePaths=/var/lib/simplefileshare
ReadWritePaths=/var/lib/simplefileshare /run/simplefileshare
RemoveIPC=true
RestrictNamespaces=true
RestrictRealtime=true