make strace print EUID

0

1

I'm trying to debug a permission problem, but I'm having trouble finding out with which EUID the application is being executed at the moment of the error.

Is there a way to make strace print the effective user ID?

Martin Kunev

Posted 2016-03-21T13:37:53.637

Reputation: 216

Answers

0

strace can't do that.

strace uses a kernel's feature known as ptrace.

setuid is always ignored if a process is ptraced, even if root is ptracing to avoid a root exploit known as myptrace.c.

jcbermu

Posted 2016-03-21T13:37:53.637

Reputation: 15 868