Hello, maybe the wrong place to ask, but let's try..
I want to edit a system call that already exists in minix, let's say the chown
system call.. Do you know which files i have to edit? and which of them need compiling?
Printable View
Hello, maybe the wrong place to ask, but let's try..
I want to edit a system call that already exists in minix, let's say the chown
system call.. Do you know which files i have to edit? and which of them need compiling?
From http://en.wikipedia.org/wiki/System_call:
You'll need to find where the minix kernel implements system calls, or alternatively find a way to modify that part of the kernel dynamically (see the next post) I would suggest that changing something that fundamental is a bad idea though...Quote:
Not necessarily. In Linux, it's possible to edit the dispatch table and redirect existing syscalls to your own functions. Here's a forum post I read a few weeks ago on the subject. Interesting stuff. I wouldn't have thought it possible without at least recompiling the kernel, but that just shows how much I know.
Of course, that says nothing about Minix. I don't even know if Minix uses such a table, but if it does, that would be a good place to start. Either way, though, there's a good chance you will break something, so don't do this on a system you care about, etc.