On Sat, Apr 22, 2006 at 09:06:10AM +0200, Heiko Carstens wrote: > > The flags could be: > > > > MASK_DEFAULT_TRACE (set the default to 1 for remaining bits) > > MASK_DEFAULT_IGNORE (set the default to 0 for remaining bits) > > MASK_STRICT_VERIFY (return -EINVAL for bits exceeding NR_syscalls and set > > differently than the default).
I'd prefer (given that there aren't any unused ptrace arguments) using the operation for this - PTRACE_SYSCALL_MASK_TRACE, PTRACE_SYSCALL_MASK_IGNORE. We'd need better names than these horribly over-long ones, though. > You might as well introduce yet another ptrace call which returns the number > of system calls and for this ptrace call force user space to pass a complete > bitmap. Sounds easier to me. I think that's just building in fragility whenever userspace doesn't happen to match the kernel. Both UML and strace will know what system calls they are interested in. Having the kernel 1- or 0-extend the mask will automatically do the right thing. If userspace is newer than the kernel, and asks for special treatment for system calls that don't exist, then it should get a -EINVAL. Jeff ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel