Skip to contentSkip to conversation

The disappearing sys_call_table export.

DISCUSSION Chuck Ebbert 1 participant 1 message May 10, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 11 lines · Arjan van de Ven

I'm pretty sure that auditing by your module can easily be avoided.

examle: pseudocode for the unlink syscall

long your_wrapped_syscall(char *userfilename)

{
    char kernelpointer[something];
    copy_from_user(kernelpointer, usefilename, ...);
    audit_log(kernelpointer);
    return original_syscall(userfilename);
}

Great, now how do you plan to get that code loaded into memory on
my configuration? (no modules, /dev/kmem unwriteable) (or ipd driver loaded on NT/2K)

Quoted 2 lines

The only solution for this is to check/audit/log things after the ONE copy. Eg not by overriding the syscall but inside the syscall.

If I can alter kernel memory I can patch out your auditing code.
It's just more difficult if you try to hide it inside the syscall. :)