[PATCH] Samba VirusFilter (version 12)
jra at samba.org
Fri Jan 19 22:43:01 UTC 2018
On Fri, Jan 19, 2018 at 10:54:43AM -0800, Jeremy Allison via samba-technical wrote:
> As all we're doing is moving the file out of the users way
> in quarantine, how about moving it into a subdirectory
> named for the process id of the smbd ? As we know each process
> id is unique whilst running then we can safely do an lstat
> for the name before doing the rename.
> I'll try coding this up, let me know if this works for you.
Never mind, that's a bad idea. Let me run with the timestamp
suggestion. If there's an overlap with an existing name, it
will just overwrite. This is what already happens in the
VIRUSFILTER_ACTION_RENAME: case, so we're no worse off.
More information about the samba-technical