simplefileshare/simplefileshare.service

40 lines
814 B
SYSTEMD
Raw Permalink Normal View History

2021-08-31 19:07:19 +05:00
[Unit]
Description=simplefileshare service
[Service]
Type=simple
User=simplefileshare
ExecStart=/usr/bin/simplefileshare
Restart=on-failure
RestartSec=10s
SecureBits=keep-caps
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
DevicePolicy=closed
IPAccounting=true
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
ProtectClock=true
ProtectControlGroups=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
2021-12-25 13:53:29 +05:00
ReadWritePaths=/var/lib/simplefileshare
2021-08-31 19:07:19 +05:00
RemoveIPC=true
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
UMask=0027
[Install]
WantedBy=multi-user.target