Subject: Re: weird setuid behavior
To: Niels Provos <provos@citi.umich.edu>
From: Greg A. Woods <woods@weird.com>
List: tech-kern
Date: 01/21/2004 02:40:39
[ On Wednesday, January 21, 2004 at 01:05:38 (-0500), Niels Provos wrote: ]
> Subject: weird setuid behavior
>
> I am a bit puzzled by recent changes (last year) to how setuid works.
> Traditionally, it has always been possible as root to call
>
> seteuid(someid)
> setuid(someid)
>
> This now fails. The call to seteuid() succeeds but the the second call
> fails leaving the uid=0 and the euid=someid
What is your starting condition (euid, ruid, etc.)? Was the process
started from a set-ID binary file?
--
Greg A. Woods
+1 416 218-0098 VE3TCP RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com> Secrets of the Weird <woods@weird.com>