Subject: Re: PR 7170 -- init and /dev/console
To: Michael Lyle <mlyle@recourse.net>
From: John Fremlin <chief@bandits.org>
List: tech-kern
Date: 04/22/2001 05:40:15
Michael Lyle <mlyle@recourse.net> writes:
[...]
> If people decide that is odious, IMO the next best thing is to:
> 1) hand-craft a descriptor onto the console device that the kernel thinks
> is appropriate
> 2) have init try and open /dev/console, and pass it to setctty()
> 3) fall back to the existing 0, 1, and 2 descriptors if all else fails.
FWIW this is in practice what linux does. (Among other things, it lets
you run programs not designed to be init as init, like interactive
shells.)
Of course linux doesn't have the issues with "Security levels".
[...]
--
http://www.penguinpowered.com/~vii