Subject: Re: getpwent(3) funcs return static structure
To: None <current-users@NetBSD.ORG>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: current-users
Date: 03/06/1997 17:34:07
> The getpwuid((getuid() looks suspicious: multiple users could be
> sharing the same uid.

Yeah, but a _lot_ of things will break, not just cracklib - I once used
a machine with mouse and root both UID 0, and it was amazing how many
things insisted I was really root when I was logged in as mouse.

One of my long-term projects is to find and eradicate everywhere in the
tree where "uid==0" and "superuser" are equated, replacing them in the
kernel with suser() or something like it, in user-land with a library
call of some sort (which may end up doing a syscall), so that by
changing only a very small number of things I can completely change
around what "superuser" means.

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B