On Tue, Jul 31, 2007 at 10:30:52AM +0300, Shachar Shemesh wrote: > > Currently my plan is to add a special file under /proc or /dev which > > any program will be able to open and then pass the arguments through > > ioctl(2).
> why not do it the way it's meant to be done, using a custom device? > That's the straight forward way. Because if it's logically a "file operation" that can be applied to any file, it makes sense for the interface to apply to a file, i.e., a system call that take an fd. > If you really really must put in a new syscall, this is the ugly > hack you can do. Note that you may never ever ever unload this hack, > no matter what you do. Here goes: Install your own interrupt handler > on the syscall interrupt number (memory serve me right, this is 80 > on i386 for Linux). Filter out your own syscall number, pick a > syscall number that will never be used by anyone in the foreseeable > future, and if it's not it, call the original handler. phrack is ----------------> that way. You can do anything in CPL 0. That doesn't mean you should actually do it! Cheers, Muli ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
