> I really think that we need to avoid trying to have a single 'known good'
I don't think we should have anything in the inode. We don't want to
bloat inode objects for this cornercase.
Agreed
What controls somewhat writing such a tag on media remotely ? Locally you
can do this (although you are way too specialized in design - an LSM hook
for controlling tag setting or a general tag reservation sysfs interface
is more flexible than thinking just about scanners.
That will generate enormous amounts of load if not carefully handled.
User space problem. Set flags 'dirty', then set bit 'scanning'
clear 'dirty' then clear 'scanning' when finished. If the dirty flag got
set while you were scanning it will still be set now you've cleared you
scanning flag. Your access policy depends upon your level of paranoia (eg
"dirty|scanning == BAD")
We've already proved libmalware doesn't make sense
Not if you want to get any work done.
Go write it and see, provide benchmarks ? I don't see from this how you
handled shared mmap ?
--