Thorsten Schubert
762bf9ed8e
All checks were successful
continuous-integration/drone/push Build is passing
29 lines
No EOL
752 B
Desktop File
29 lines
No EOL
752 B
Desktop File
# /etc/systemd/system/tcp-filter.service
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
# Copyright © 2022 Thorsten Schubert <tschubert@bafh.org>
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=unsha
|
|
Group=http
|
|
ExecStart=/usr/local/bin/tcp-filter-hasher --destination=/srv/p --database=/srv/p/.var/filter.db --state=/srv/p/.var/state_hasher
|
|
ReadWritePaths=/srv/p
|
|
ProtectSystem=strict
|
|
ProtectHome=tmpfs
|
|
BindReadOnlyPaths=/usr/local/bin
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectControlGroups=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelTunables=true
|
|
SystemCallArchitectures=native
|
|
NoNewPrivileges=true
|
|
RestrictRealtime=true
|
|
MemoryDenyWriteExecute=true
|
|
ProtectKernelLogs=true
|
|
LockPersonality=true
|
|
ProtectHostname=true
|
|
RemoveIPC=true
|
|
RestrictSUIDSGID=true
|
|
ProtectClock=true |