From owner-freebsd-stable Tue Aug 28 10:12:30 2001 Delivered-To: freebsd-stable@freebsd.org Received: from home.paped.com (home.paped.com [194.209.224.2]) by hub.freebsd.org (Postfix) with ESMTP id BCA0137B406 for ; Tue, 28 Aug 2001 10:12:21 -0700 (PDT) (envelope-from freebsd@paped.com) Received: from paped.com (home.local [192.168.1.1]) by home.paped.com (8.11.5/8.11.4) with ESMTP id f7PMnx898835; Sun, 26 Aug 2001 00:50:00 +0200 (CEST) (envelope-from freebsd@paped.com) Received: (from freebsd@localhost) by paped.com (8.11.5/8.9.3) id f7PMnxT81955; Sun, 26 Aug 2001 00:49:59 +0200 (CEST) (envelope-from freebsd) Date: Sun, 26 Aug 2001 00:49:58 +0200 From: Pascal Pederiva To: Kazutaka YOKOTA Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Disabling harmful keys (was: Re: PATCH: syscons.c sysctl for PC-Reboot Keys) Message-ID: <20010826004958.A81897@paped.com> Mail-Followup-To: Pascal Pederiva , Kazutaka YOKOTA , freebsd-stable@FreeBSD.ORG References: <200108101231.VAA17040@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: <200108101231.VAA17040@zodiac.mech.utsunomiya-u.ac.jp>; from yokota@zodiac.mech.utsunomiya-u.ac.jp on Fri, Aug 10, 2001 at 09:31:11PM +0900 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kazu, your proposition sounds very resonable - I like the idea of a bitmap in machdep.disable_harmful_keys for the various harmful keys. SC_DISABLE_HARMFUL_KEYS : should probably just set the default for machdep.disable_harmful_keys to 0xff instead of actually disabling code. Thanks a lot, Pascal > 2. Proposition > > In order to not have too many kernel options and sysctl variables > to control individual keys, I shall propose the following compromise. > > - One kernel option to permanently disable all harmful keys. > SC_DISABLE_HARMFUL_KEYS > > - One sysctl variable to enable/disable individual harmful keys. > machdep.disable_harmful_keys > > This is a bitmap in which you set a bit to disable corresponding > harmful key. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message