Skip to contentSkip to conversation

forbid to strace a program

DISCUSSION Andreas Hartmann 2 participants 2 messages Sep 3, 2005

lore
Share & tools
lore
#0 lore raw

Hello!

Is it possible to prevent a program to be straced on x86? What do I have to do, eg., to prevent a perl-program to be straced?

Thanks for any hint,
kind regards,
Andreas Hartmann

#1 lore raw
Quoted 5 lines · Andreas Hartmann

Hello!

Is it possible to prevent a program to be straced on x86? What do I have to do, eg., to prevent a perl-program to be straced?

So that none can see what are you doing? Or because your program is breaking because of this? Probably nothing, but someone would like to know what it is you are doing and exactly how it breaks (and, if you don't mind -
why it breaks).

Actuall, you can prevent a program of being straced (or debugged, for that matter):
run it as another user. Root still can strace anything, though.