On Tue, 2009-06-02 at 07:36 -0700, David L wrote: > Would it be possible for strace to detect that you're tracing > an X app based on the system calls you're making? I guess > that would add more overhead to something that already slows down > the traced app. If the app was dynamically linked, maybe it could > just check for libX* library dependencies? System calls... nngh. Library calls would be easier, though it would involve porting a fair chunk of ltrace into strace. > What about the other way around... can an app check > if it's being straced before doing a server grab? Do server grabs > happen so frequently that the overhead of checking for stracing > would be unacceptable? Server grabs aren't that frequent, certainly not enough to be a performance concern, but detecting that you're under a debugger is non-trivial. The biggest problem with trying to detect this scenario is that there are cases where it's perfectly legit. For example, if I ssh into another box and strace an X app running (and displaying) there, that's fine, because the strace output is interacting with a different X server. - ajax
Attachment:
signature.asc
Description: This is a digitally signed message part
-- fedora-test-list mailing list fedora-test-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-test-list