Mon, May 21, 2001 at 18:46:57, imp (Warner Losh) wrote about "Re: sysctl to disable 
reboot": 

> : In addition, I prefer my approach here because it's a single,
> : known toggle that doesn't involve messing with other parts of the
> : system.  I might just want to disable keyboard rebooting
> : temporarily.  This seems like the most intuitive way to do so.
> Bah.  I'm trying to fight feaping creaturism.  I'm not worried about
> the most intuitive way :-).
> Seriously, this is unix.  You need to use the right tools for the
> right jobs.  Reboot, and a host of other things, are controlled via
> the keymap. 

This is current situation and is more ugly and hackly than logic.
Keymap is choice of user on consoles. Disabling reboot is choice of root.
If you allow only root to use virtual consoles you're right.
Instead, you use guillotine against headache.

> Creating a keymap w/o the reboot (or other objectionable
> options) in it is the easiest way to deal with the problem.

This will be ugly hack, not right way. And if you prefer this way
you should remove SC_DISABLE_REBOOT option to make things complete.


/netch

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to