summaryrefslogtreecommitdiff
path: root/0x0-vscan.service
diff options
context:
space:
mode:
authorMia Herkt <mia@0x0.st>2022-12-12 07:25:30 +0100
committerMia Herkt <mia@0x0.st>2022-12-12 07:35:05 +0100
commita904922cbd6f6478d5e7fd773adc368b7652adaa (patch)
treedb217d71cd2806a11cc7351dde4641ed2dea7313 /0x0-vscan.service
parentda30c8f8ff0e2f23a974d95923273a25bc3a2a23 (diff)
Add support for ClamAV
Diffstat (limited to '0x0-vscan.service')
-rw-r--r--0x0-vscan.service22
1 files changed, 22 insertions, 0 deletions
diff --git a/0x0-vscan.service b/0x0-vscan.service
new file mode 100644
index 0000000..6a48b1c
--- /dev/null
+++ b/0x0-vscan.service
@@ -0,0 +1,22 @@
+[Unit]
+Description=Scan 0x0 files with ClamAV
+After=remote-fs.target clamd.service
+
+[Service]
+Type=oneshot
+User=nullptr
+WorkingDirectory=/path/to/0x0
+BindPaths=/path/to/0x0
+
+Environment=FLASK_APP=fhost
+ExecStart=/usr/bin/flask vscan
+ProtectProc=noaccess
+ProtectSystem=strict
+ProtectHome=tmpfs
+PrivateTmp=true
+PrivateUsers=true
+ProtectKernelLogs=true
+LockPersonality=true
+
+[Install]
+WantedBy=multi-user.target