[Systrace] How can a process check if it is running under systrace?

Kevin kkadow at gmail.com
Tue Feb 8 22:09:34 EST 2005


I have a lot of programs that check the output of getuid() or
geteuid() to determine if they are running as root, and will not even
try to chroot() or do other privileged operations.

Is there any standard means (under OpenBSD) for a process to determine
whether it is running under systrace, short of just trying to do
operations (such as chroot) normally restricted only to root?


Thanks,

Kevin Kadow


More information about the systrace mailing list