• Paolo \'Blaisorblade\' Giarrusso's avatar
    [PATCH] uml: use PTRACE_SYSEMU also for TT mode · fc8a8533
    Paolo \'Blaisorblade\' Giarrusso authored
    From: Jeff Dike <jdike@addtoit.com>
          Paolo 'Blaisorblade' Giarrusso<blaisorblade_spam@yahoo.it>
    
    As Jeff Dike noted, even if SYSEMU was originally written for use in SKAS
    mode, there is nothing SKAS specific in SYSEMU, so use it for TT mode, too.
    
    SYSEMU simply allows one to ptrace(PTRACE_SYSEMU) a process, that will stop
    on the syscall entry path like with PTRACE_SYSCALL, but with the difference
    that it makes sure that the syscall execution is totally skipped and that
    the child will see the return value set by the ptracer when the child was
    stopped.
    
    We even hope that the SYSEMU patch can be merged in mainline sooner than
    SKAS.
    Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
    Cc: Roland McGrath <roland@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    fc8a8533
ptrace-skas.h 1.45 KB