Re: [malware-list] scanner interface proposal was: [TALPA] Intro to a linux interface for on access scanning

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: tvrtko.ursulin
Date: Tuesday, August 19, 2008 - 1:31 am

david@lang.hm wrote on 18/08/2008 18:02:57:

tag
close
is
would
fresh
be

Not the most efficient way since generation ID is global while we are 
talking about a single mount/filesystem. So incrementing the generation ID 
causes all filsystems to be rescanned. Also you need additional hooking in 
mount, plus you have a race condition unless you block in mount while you 
do your stuff. And you need to take care about deadlocks.
 
big
when
that
any
though.
done 

Without additional filesystem/VFS support you won't be able to tell if 
wherever the filesystem was previously mounted had any scanning done. It 
may have been mounted on a kernel which does not support the whole scheme 
so it didn't clear the namespace for modified files.
 
exempt
this
lot
itself
security
scheme


In a way this is a slighlty different way of moving protection from core 
to the border which means you must enumerate all possible entry/exit 
points and you must not get it wrong.
 
scanners
of
someone

You skipped this bit where I almost asked you if you are willing to get 
your hands dirty with implementing all this? :)

would
correctly
you
which
bit
but 

How is that? Context switches which worry me are the ones which happen 
when for each access to a file we need to go to userspace just to see if 
it has already been scanned. That is why I was more in favour completely 
of in-kernel caching scheme.
 
I
(and
be
and 
low-contention, 

Maybe you would need to lock when checking if file is clean to avoid 
races? Don't know, I didn't give this that much thought.

--
Tvrtko A. Ursulin
Senior Software Engineer, Sophos

"Views and opinions expressed in this email are strictly those of the 
author.
 The contents has not been reviewed or approved by Sophos."
 

Sophos Plc, The Pentagon, Abingdon Science Park, Abingdon,
OX14 3YP, United Kingdom.

Company Reg No 2096520. VAT Reg No GB 348 3873 20.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [malware-list] scanner interface proposal was: [TALPA] ..., tvrtko.ursulin, (Tue Aug 19, 1:31 am)
Re: [malware-list] scanner interface proposal was: [TALPA] ..., David Collier-Brown, (Tue Aug 19, 5:34 am)