2022-03-20 18:19:59 +04:00
|
|
|
[Unit]
|
|
|
|
Description=dwelling-upload-clean
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2023-08-06 02:21:02 +04:00
|
|
|
DynamicUser=yes
|
2023-08-05 19:28:05 +04:00
|
|
|
ExecStart=/usr/bin/dwelling-upload-clean -dir /srv/upload -expiry 36h
|
2022-03-30 01:32:00 +04:00
|
|
|
|
2022-03-20 18:19:59 +04:00
|
|
|
ReadOnlyPaths=/
|
|
|
|
# Set here path to directory where uploads are stored.
|
|
|
|
ReadWritePaths=/srv/upload
|
2022-03-30 01:32:00 +04:00
|
|
|
NoExecPaths=/
|
|
|
|
ExecPaths=/usr/bin/dwelling-upload-clean
|
2022-03-20 18:19:59 +04:00
|
|
|
|
|
|
|
AmbientCapabilities=
|
|
|
|
CapabilityBoundingSet=
|
|
|
|
|
|
|
|
LockPersonality=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
PrivateDevices=true
|
2023-08-22 18:24:02 +04:00
|
|
|
PrivateTmp=true
|
|
|
|
PrivateUsers=true
|
|
|
|
ProcSubset=pid
|
2022-03-20 18:19:59 +04:00
|
|
|
ProtectClock=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
ProtectHome=true
|
2023-08-22 18:24:02 +04:00
|
|
|
ProtectHostname=true
|
2022-03-20 18:19:59 +04:00
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelTunables=true
|
2023-08-22 18:24:02 +04:00
|
|
|
ProtectProc=noaccess
|
2022-03-20 18:19:59 +04:00
|
|
|
ProtectSystem=strict
|
2023-08-22 18:24:02 +04:00
|
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
2022-03-20 18:19:59 +04:00
|
|
|
RestrictNamespaces=true
|
|
|
|
RestrictRealtime=true
|
|
|
|
RestrictSUIDSGID=true
|
|
|
|
SystemCallArchitectures=native
|
2023-08-22 18:24:02 +04:00
|
|
|
SystemCallFilter=~@clock
|
|
|
|
SystemCallFilter=~@cpu-emulation
|
|
|
|
SystemCallFilter=~@debug
|
|
|
|
SystemCallFilter=~@module
|
|
|
|
SystemCallFilter=~@mount
|
|
|
|
SystemCallFilter=~@obsolete
|
|
|
|
SystemCallFilter=~@privileged
|
|
|
|
SystemCallFilter=~@raw-io
|
|
|
|
SystemCallFilter=~@reboot
|
|
|
|
SystemCallFilter=~@swap
|
2022-03-20 18:19:59 +04:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|