public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* System call wrapping
@ 2002-10-21 17:42 Henrý Þór Baldursson
  2002-10-21 18:12 ` Alan Cox
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Henrý Þór Baldursson @ 2002-10-21 17:42 UTC (permalink / raw)
  To: Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 1462 bytes --]


Dear sirs, 
I work for FRISK Software International. We are an Antivirus company.
Our product is the F-Prot Antivirus scanner. 

We have started to port our application to the Linux platform in an
effort to provide system administrators with means to scan the content
they supply their workstations with via Linux servers. 
In our Windows product we have something called "Realtime protector"
which monitors file access on Windows running machines and scans them
before allowing access. 

We now want, due to customer demand, to supply our Linux users with
similar functionality, and we've created a 2.4.x kernel module which
wrapped the open system call by means of overwriting
sys_call_table[__NR_open]. We did realize that this is a bad idea if a
user loads another module doing the same, and then unloads in the wrong
order. And also that this is not a very pretty method. But it worked. 

Apparently, this is something you kernel hackers don't approve of, since
you've recently removed EXPORT_SYMBOL(sys_call_table) from
kernel/ksyms.c - so my question is whether there is some other preferred
method for accomplishing this without forcing the user to patch and 
compile a new kernel.  Is there some API for wrapping system calls which
I am unaware of, or are there plans to provide one? 

Best regards, 

Henrý Þór Baldursson, Linux Developer 
FRISK Software International 
http://www.f-prot.com
http://aves.f-prot.com



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-10-22 13:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-21 17:42 System call wrapping Henrý Þór Baldursson
2002-10-21 18:12 ` Alan Cox
2002-10-21 18:16 ` Miquel van Smoorenburg
2002-10-21 18:33   ` Karim Yaghmour
2002-10-22 14:02   ` Rogier Wolff
2002-10-21 20:14 ` Rik van Riel
2002-10-21 20:33   ` Lucio Maciel
2002-10-22  5:19     ` Greg KH
2002-10-22  1:01   ` jw schultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox