From owner-freebsd-hackers Mon May 21 18:36: 9 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.viasoft.com.cn (unknown [61.153.1.177]) by hub.freebsd.org (Postfix) with ESMTP id D4F9137B422 for ; Mon, 21 May 2001 18:36:04 -0700 (PDT) (envelope-from bsddiy@163.net) Received: from William ([192.168.1.98]) by mail.viasoft.com.cn (8.9.3/8.9.3) with ESMTP id JAA02512; Tue, 22 May 2001 09:35:47 +0800 Date: Tue, 22 May 2001 09:43:01 +0800 From: David Xu X-Mailer: The Bat! (v1.48f) Personal Reply-To: bsddiy@163.net Organization: Viasoft X-Priority: 3 (Normal) Message-ID: <1361646066.20010522094301@163.net> To: Jon Parise Cc: freebsd-hackers@freebsd.org Subject: Re: sysctl to disable reboot In-reply-To: <20010521123044.H29180@csh.rit.edu> References: <20010521123044.H29180@csh.rit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Hello Jon, Tuesday, May 22, 2001, 12:30:44 AM, you wrote: JP> I thought it would be useful to have a sysctl for disabling the JP> keyboard reboot sequence. This functionality is currently JP> available through the SC_DISABLE_REBOOT config option, but it's JP> convenient to have this capability available at runtime, too. JP> I can't say I'm much of a kernel hacker, but the attached patch JP> works fine for me. It applies against 4.3-STABLE, but the same JP> logic applied to 5.0-CURRENT (which I don't have available for JP> testing). JP> Note that investigation revealed that OpenBSD has a similar JP> sysctl named machdep.kdbreset. I prefer machdep.disable_reboot_key, JP> but I'm against changing it for feel-good compatibility reasons. JP> If someone with clue feels there is merit in this, feel free to JP> commit it. I have already failed many times to persuade them to add a sysctl about keyboard reboot, they prefer to change a keymap file and allow everyone to load it into kernel. -- Gook luck, David Xu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message