WIP: misc: scan uploads with clamd (#87739) #1415

Draft
ecazenave wants to merge 1 commits from wip/87739-clamav-cli into main
Owner
No description provided.
ecazenave added 1 commit 2024-04-16 10:58:19 +02:00
gitea/wcs/pipeline/head There was a failure building this commit Details
434cbd9ee4
misc: scan uploads with clamd (#87739)
fpeters reviewed 2024-04-16 11:03:19 +02:00
@ -1107,0 +1128,4 @@
formdata = self.formdef.data_class().get(self.formdata_id)
upload = formdata.data.get(field.id)
if not upload.clamd:
clamd = subprocess.run(['clamdscan', '--fdpass', upload.get_fs_filename()])
Owner

Il y a https://packages.debian.org/trixie/python3-pyclamd qui pourrait être utilisé, pour ne pas avoir à lancer de processus.

Il y a https://packages.debian.org/trixie/python3-pyclamd qui pourrait être utilisé, pour ne pas avoir à lancer de processus.
Author
Owner

C'est https://xael.org/pages/pyclamd-en.html, pas mis à jour depuis 2017, l'url du dépôt des sources fait 404 .. . pas très encourageant.

C'est https://xael.org/pages/pyclamd-en.html, pas mis à jour depuis 2017, l'url du dépôt des sources fait 404 .. . pas très encourageant.
Owner

Et le client clamd que j'avais écrit ne marchait pas non plus ?
Je préfèrerais de très loin que clamav tourne avec son propre utilisateur sans accès direct aux fichiers, pour des raisons de sécurité

Et le client clamd que j'avais écrit ne marchait pas non plus ? Je préfèrerais de très loin que clamav tourne avec son propre utilisateur sans accès direct aux fichiers, pour des raisons de sécurité
ecazenave force-pushed wip/87739-clamav-cli from 434cbd9ee4 to a42781c71d 2024-04-16 15:14:37 +02:00 Compare
ecazenave force-pushed wip/87739-clamav-cli from a42781c71d to 37214cb0f6 2024-04-16 17:38:58 +02:00 Compare
ecazenave force-pushed wip/87739-clamav-cli from 37214cb0f6 to 7f897b7c9b 2024-04-16 17:56:47 +02:00 Compare
ecazenave force-pushed wip/87739-clamav-cli from 7f897b7c9b to 404485d18a 2024-04-23 11:36:31 +02:00 Compare
ecazenave force-pushed wip/87739-clamav-cli from 404485d18a to 288c725035 2024-04-23 11:47:20 +02:00 Compare
ecazenave force-pushed wip/87739-clamav-cli from 288c725035 to 621512e014 2024-04-23 15:19:27 +02:00 Compare
ecazenave force-pushed wip/87739-clamav-cli from 621512e014 to 77be70cbdb 2024-04-23 17:17:10 +02:00 Compare
ecazenave force-pushed wip/87739-clamav-cli from 77be70cbdb to 767a20ffee 2024-04-23 18:12:08 +02:00 Compare
ecazenave force-pushed wip/87739-clamav-cli from 767a20ffee to 77927e64e7 2024-04-26 15:47:34 +02:00 Compare
ecazenave force-pushed wip/87739-clamav-cli from 77927e64e7 to b28cf47c7e 2024-04-26 16:10:43 +02:00 Compare
ecazenave force-pushed wip/87739-clamav-cli from b28cf47c7e to 93c1681fd9 2024-04-30 11:46:38 +02:00 Compare
ecazenave force-pushed wip/87739-clamav-cli from 93c1681fd9 to 98a60daa24 2024-04-30 17:55:49 +02:00 Compare
All checks were successful
gitea/wcs/pipeline/head This commit looks good
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: entrouvert/wcs#1415
No description provided.