ranthal
June 11th, 2009, 01:52 PM
Hey all,
I am writing a loadable kernel module that will be interacting with a daemon in user space and it will be doing so via kernel sockets and system calls.
I've read up on a few different online sources on how to accomplish this and I haven't fully moved implemented it yet, but when I tried to compile my code just to test insmod and rmmod, no actual syscall table manipulation, I got an error about sys/syscall.h not existing.
For now I've commented it out and it compiled fine but looking ahead do I need to include this file? I want to declare the index to the system call table within my module so I don't have to patch the kernel since it's part of a much bigger build system.
Currently developing on kernel 2.6.26.2 but the module will eventually be used on 2.6.19.1. This may seem somewhat backwards and I can explain if you really want but its kind of long...
I am writing a loadable kernel module that will be interacting with a daemon in user space and it will be doing so via kernel sockets and system calls.
I've read up on a few different online sources on how to accomplish this and I haven't fully moved implemented it yet, but when I tried to compile my code just to test insmod and rmmod, no actual syscall table manipulation, I got an error about sys/syscall.h not existing.
For now I've commented it out and it compiled fine but looking ahead do I need to include this file? I want to declare the index to the system call table within my module so I don't have to patch the kernel since it's part of a much bigger build system.
Currently developing on kernel 2.6.26.2 but the module will eventually be used on 2.6.19.1. This may seem somewhat backwards and I can explain if you really want but its kind of long...