arch/i386/kernel/ptrace.c line 293:
switch (regno >> 2) {
case ORIG_EAX:
return -EIO;
case FS:
Would this work instead:
case ORIG_EAX:
if (value < 0 || value >= NR_syscalls)
return -EIO:
break;
case FS:
I'd like to monitor an untrusted process, so that if it attempts to call
unlink() it will be changed to getpid(). Can that be done by changing
ORIG_EAX?
-Topi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/