From owner-freebsd-bugs Fri Apr 6 1:54:13 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 3E73837B446; Fri, 6 Apr 2001 01:54:10 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 6 Apr 2001 09:54:09 +0100 (BST) Date: Fri, 6 Apr 2001 09:54:07 +0100 From: David Malone To: David Xu Cc: phk@FreeBSD.org, davidx@viasoft.com.cn, freebsd-bugs@FreeBSD.org Subject: Re: kern/25605: sysctl for enable/disable ctrl+alt+del key Message-ID: <20010406095407.A17495@walton.maths.tcd.ie> References: <200103281753.f2SHrLo34907@freefall.freebsd.org> <932925376.20010406091754@21cn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <932925376.20010406091754@21cn.com>; from bsddiy@21cn.com on Fri, Apr 06, 2001 at 09:17:54AM +0800 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Apr 06, 2001 at 09:17:54AM +0800, David Xu wrote: > Linux has sysctl in procfs to dynamic enable and disable > ctrl+alt+delete, > it looks like: > echo "0" > /proc/sys/kernel/ctrl_alt_delete > disable hot key reboot. it's simple. > our method is not as easy as Linux, and I think tweak a > keyboard map is dangerous, it can kick you out of console > if you made some mistakes. There is also the issue that if you can log in at the console then you can always change the keymap. You can have fun by mapping the space key to reboot. I can think of three reasonable options: 1) Add a sysctl which disables boot-like actions. 2) Add a sysctl which prevents ordinary users changing the keymap. 3) Change the keymap code so that ordinary users can't change the mapping of boot-like actions. Any opinions on which might be best? David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message