From owner-freebsd-current Sat Aug 18 1:13:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 25EA537B40D for ; Sat, 18 Aug 2001 01:13:12 -0700 (PDT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id EC51281D0F; Sat, 18 Aug 2001 03:13:11 -0500 (CDT) Date: Sat, 18 Aug 2001 03:13:11 -0500 From: Alfred Perlstein To: Kazutaka YOKOTA Cc: freebsd-current@freebsd.org Subject: Re: Disabling harmful keys (was: Re: PATCH: syscons.c sysctl for PC-Reboo Keys) Message-ID: <20010818031311.W38066@elvis.mu.org> References: <200108180811.RAA16102@zodiac.mech.utsunomiya-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200108180811.RAA16102@zodiac.mech.utsunomiya-u.ac.jp>; from yokota@zodiac.mech.utsunomiya-u.ac.jp on Sat, Aug 18, 2001 at 05:11:20PM +0900 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Kazutaka YOKOTA [010818 03:02] wrote: > I posted the following message in the stable ML the other day, but got > no response. So, I will post it here again. > > Please follow the thread "PATCH: syscons.c sysctl for PC-Reboo Keys" > in the stable ML for background information on this subject. I really like this, however I think that the sysctl section is a bit too complicated, even though it's somewhat gross it would make sense to have: machdep.enable_harmful_keys where the user can choose to assign 0xff to enable all, or leave it at zero to leave them all disabled. In fact if you're up to the work, you could make several sysctl_proc nodes for each 'harmful' key such that it updates the bitmask 'machdep.enable_harmful_keys' when set. kern.console.keymap.enable_reboot kern.console.keymap.enable_ddb etc. Oh, why put it under 'machdep'? It may be machine dependant which keys are used however the result is them same, hence the 'kern.console' or maybe even just a new sysctl subtree 'console'? -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message