mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
5aeba4cc5d2e73ebba98f140f0df675879415b5b
Long list, all but one of which has been backported: https://lists.clamav.net/pipermail/clamav-users/2026-July/014539.html The TOCTOU quarantine hardening refers to the fact that e.g. $ clamscan --remove foo/ can detect malware in foo/bar/baz, and then later (when the scan is finished) attempt to remove foo/bar/baz by name. If a bad guy can write to foo/, he can e.g. replace foo/bar with a symlink between the virus scan and the removal. The thing is... if you are scanning inside a directory that a bad guy can write to, you already have problems. Obviously it's better to make these actions as bullet-proof as possible, but naming a few of those problems does not constitute a fatal flaw. Scanning your own files is easy to do safely, so the primary affected use case that I am aware of is the antipattern of scanning everyone else's files as root. Don't do that :) Nevertheless, users deserve to be made aware. The man pages have been updated to say that --copy, --move, and --remove are unsafe if the target is writable by anyone else, and the executables now emit a similar warning. Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
…
…
…
…
…
…
…
Description
No description provided
9.8 GiB
Languages
Shell
98%
Roff
1.4%
Emacs Lisp
0.2%
C
0.1%