From owner-freebsd-hackers Mon May 21 15:32:10 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id CB29237B422 for ; Mon, 21 May 2001 15:32:05 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 21 May 2001 23:32:05 +0100 (BST) Date: Mon, 21 May 2001 23:32:04 +0100 From: David Malone To: Warner Losh Cc: Jon Parise , freebsd-hackers@FreeBSD.ORG Subject: Re: sysctl to disable reboot Message-ID: <20010521233204.B64450@walton.maths.tcd.ie> References: <20010521123044.H29180@csh.rit.edu> <200105212148.f4LLmGE34968@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105212148.f4LLmGE34968@harmony.village.org>; from imp@harmony.village.org on Mon, May 21, 2001 at 03:48:16PM -0600 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 On Mon, May 21, 2001 at 03:48:16PM -0600, Warner Losh wrote: > In message <20010521123044.H29180@csh.rit.edu> Jon Parise writes: > : I thought it would be useful to have a sysctl for disabling the > : keyboard reboot sequence. This functionality is currently > : available through the SC_DISABLE_REBOOT config option, but it's > : convenient to have this capability available at runtime, too. > > How is this different than loading a keyboard map that doesn't have > reboot/halt in them? Any user who can log on at a vty can remap any key to reboot the machine (try remapping "t" to reboot to annoy your firends ;-). The sysctl can only be enabeled by root, so I think it would be useful. A more useful sysctl might be one that prevented the remapping of the keyboard unless you were root. Last time this came up, someone shot down my argument on the grounds that if you have access to the console you can reboot the machine anyway. I'm not sure this holds water, 'cos having access to the keyboard and monitor isn't the same as having access to the case/power button/plug. However a second considered opinion here might be useful. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message