[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Pgetauid/Psetauid



Hi,

> > Hum, perhaps for the same reason it calls Pseteuid()?
> 
> It calls Pseteuid to change persona.

Indeed. Perhaps we should change it though - i.e. remove the explicit auid
calls (after they have been documented a year ago, grr) and add a line to
Pseteuid() which would simultanously set auid, silently failing on error.
For reason see below.

> It would call Psetauid to set some
> information that nobody wants to know about. ;-)

I am mr Nobody :-)
 
> > It is enough that the children inherit it from their parents. I didn't
> > check if they do, but this may be something to fix. And the only program
> > that would have to call Psetauid(), would be the login.
> 
> The problem remains: What is Psetauid/Pgetauid intended to do?  Your
> understanding is something like a "castrated" session id, the answer to
> the question "which user started the current session?" (whereas a session
> id tells you which process has started the session).  My understanding of
> Tesche's comment is different: Who was the first user to log in after
> the system booted?

My understanding is that auid is for the following situation:

- someone logs as an user (euid -> 0)
- then switches to superuser

In this case auid, if inherited by new superuser shell, still holds the
original user id (unless the person found a way to overwrite auid as
well). And call me paranoic. :-) It would be (IMHO) more useful
information than the id of a person who first managed to grab the keyboard
after the system has started successfully.
 
Gtx,

--
Konrad M.Kokoszkiewicz
|mail: draco@atari.org                  |  Atari Falcon030 user   |
|http://www.obta.uw.edu.pl/~draco/      | Moderator gregis LATINE |
|http://draco.atari.org                 |       (loquentium)      |

** Ea natura multitudinis est,
** aut servit humiliter, aut superbe dominatur (Liv. XXIV,25)
*************************************************************
** U pospolstwa normalne jest, ze albo sluzy ono unizenie,
** albo bezczelnie sie panoszy.