Subject: Re: native issetugid(2)
To: None <>
From: Jason R Thorpe <>
List: tech-kern
Date: 04/16/2000 14:14:17
On Mon, Apr 17, 2000 at 06:06:07AM +0900, Noriyuki Soda wrote:

 > > Though, it really seems as if this can be done *without* a system
 > > call.  ld.aout_so has done this sort of check for a long time
 > > internally, as does ld.elf_so (I hope :-).
 > Do you mean the following line in rtld.c?
 > 	careful = (uid != euid) || (gid != egid);
 > This does work for case, but doesn't work for library.

Right, well, this could be done in crt0, I guess... except, hm, but
library contructors would then be able to futz with it.

Ok, I'll buy your argument that it should be in the kernel :-)

        -- Jason R. Thorpe <>