clamscan modifies atime during scheduled scans
Bug #1915095 reported by
Brandon Mintern
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ClamAV |
Unknown
|
Unknown
|
|||
clamav (Ubuntu) |
Triaged
|
Low
|
Unassigned | ||
Bionic |
Triaged
|
Low
|
Unassigned | ||
Focal |
Triaged
|
Low
|
Unassigned | ||
Impish |
Won't Fix
|
Low
|
Unassigned | ||
Jammy |
Triaged
|
Low
|
Unassigned | ||
Kinetic |
Triaged
|
Low
|
Unassigned |
Bug Description
During operation, clamscan updates the atime on every file that it touches. Since Linux 2.6.8, it's possible to pass the O_NOATIME flag when opening a file. Unfortunately, clamscan does not do this. For example, see https:/
My expectation is that system software like backups and antivirus would not update atimes.
Would Ubuntu be willing to patch this, or should I submit this bug upstream?
Changed in clamav (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in clamav (Ubuntu Impish): | |
status: | Triaged → Won't Fix |
To post a comment you must log in.
Thanks for the report, Brandon.
I can confirm this behaviour, and here are simple reproducible steps to verify it:
# apt install clamav
# echo hi > test
# stat test
...
Access: 2021-02-10 19:53:04.982514441 +0000
...
# clamscan test
# stat test
Access: 2021-02-10 19:53:32.482243351 +0000
I'm not an expert in antivirus (it's been decades since I don't touch one), but I tend to agree to your conclusion here. Since this seems to be a minor severity problem, the best course of action would be to file an upstream bug here. Once you do so, please also update this bug report with a link to the upstream bug, so that we can monitor it. Then, when the next clamav version is released the fix will eventually land in Ubuntu as well.
Thank you very much, and please don't hesitate to comment here if there are any questions.