I'm trying to write a kernel module that blocks the listen syscall based on the paramaters passed to it. In 2.4 the syscall table was exported and this was easy however I can't find a good way to do it in 2.6. The only ideas people have been able to give me so far have been patching listen and weird things with searching /dev/kmem. Does anyone here have some other ideas? This isn't for a rootkit so a somewhat "professional" method as opposed to memory hacks would be nice but I'm open to any ideas. I'd like to write this as a kernel module as opposed to a kernel patch.
Thanks