From owner-freebsd-hackers Tue May 22 1:22:51 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id 98C6C37B422 for ; Tue, 22 May 2001 01:22:44 -0700 (PDT) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id LIN60492; Tue, 22 May 2001 11:22:09 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.3/8.11.3) id f4M8M1P01088; Tue, 22 May 2001 11:22:01 +0300 (EEST) (envelope-from netch) Date: Tue, 22 May 2001 11:22:01 +0300 From: Valentin Nechayev To: Warner Losh Cc: Jon Parise , freebsd-hackers@FreeBSD.ORG Subject: Re: sysctl to disable reboot Message-ID: <20010522112201.A954@iv.nn.kiev.ua> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200105220046.f4M0kvl26687@billy-club.village.org>; from imp@village.org on Mon, May 21, 2001 at 06:46:57PM -0600 X-42: On Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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