Re: Real and effective uid in setuid executable

2007-03-04 Thread Nyizsnyik Ferenc
On Sun, 2007-03-04 at 17:42 +0100, Sven Ekman wrote: > Hello, > > I have a setuid executable which is written in C. Is > there a system call with which I can get the uid of > the calling user if the executable is setuid root? > > If the executable is setuid to a non-root user, > getuid() and get

Real and effective uid in setuid executable

2007-03-04 Thread Sven Ekman
Hello, I have a setuid executable which is written in C. Is there a system call with which I can get the uid of the calling user if the executable is setuid root? If the executable is setuid to a non-root user, getuid() and geteuid() return the real and effective userid as expected. If setuid r