Date: Tue, 22 May 2001 11:22:01 +0300 From: Valentin Nechayev <netch@iv.nn.kiev.ua> To: Warner Losh <imp@village.org> Cc: Jon Parise <jon@csh.rit.edu>, freebsd-hackers@FreeBSD.ORG Subject: Re: sysctl to disable reboot Message-ID: <20010522112201.A954@iv.nn.kiev.ua> In-Reply-To: <200105220046.f4M0kvl26687@billy-club.village.org>; from imp@village.org on Mon, May 21, 2001 at 06:46:57PM -0600 References: <20010521202354.F12366@csh.rit.edu> <20010521123044.H29180@csh.rit.edu> <200105212148.f4LLmGE34968@harmony.village.org> <20010521202354.F12366@csh.rit.edu> <200105220046.f4M0kvl26687@billy-club.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010522112201.A954>