Re: Some questions about linux kernel.

From: Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Date: Sun Mar 19 2000 - 22:17:27 EST


"Rask Ingemann Lambertsen" <rask-linux@kampsax.k-net.dk> said.
> Den 16-Mar-00 15:28:28 skrev Horst von Brand følgende om
> "Re: Some questions about linux kernel. ":

[...]

> > How do you know it is a root login, and not Jane Random Luser?

> Jane Random Luser's login shell doesn't run as root (I hope).

getty(8) forks and exec(2)s login(1), all this runs as root. Then login(1)
ends up exec(2)ing the user's shell. It is at this point where you know if
it will be root or jane, and it's too late: You just used up the reserved
space.

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:29 EST