Skip to contentSkip to conversation

File change notification

DISCUSSION John Ogness 2 participants 2 messages Feb 7, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · Dave Jones
Quoted 5 lines · Michael Clark

Have you had a look at dazuko. It provides a consistent file access notification mechanism (and also intervention for denying access) across linux and freebsd. It is currently being used by various on-access virus scanners. It is under active development and supports 2.6 (and 2.4)

Candidate for "Wackiest sys_call_table patching 2004". In a word "ick". Code not to be read on a full stomach.

Hi,

I am the current maintainer of Dazuko. Could you please explain your "wackiest 2004" comment? Do you know of a better way to intercept system calls for 2.2/2.4 kernels *without* patching the kernel source?

System call hooking is all-around ugly, but unfortunately most operating systems don't provide a real mechanism for file access control. With the 2.6 kernel, Dazuko uses LSM. This is much more elegant and much safer. Yes, users have to turn LSM on, but this does not require kernel patches (and many distributions are turning this feature on by default).

I would appreciate any feedback you may have about how it could be improved. Keep in mind, I refuse to do anything that requires kernel source patching.

John Ogness

Signature · 1 line
Dazuko Maintainer
#1 lore raw
Quoted 3 lines · John Ogness

I am the current maintainer of Dazuko. Could you please explain your "wackiest 2004" comment? Do you know of a better way to intercept system calls for 2.2/2.4 kernels *without* patching the kernel source?

better implies it's good - it isn't. In fact it's plain wrong for any kernel. Do a stackable filesystem if you want to intercept filesystem calls.