Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KSqKh-0001w2-DQ for mharc-grub-devel@gnu.org; Tue, 12 Aug 2008 05:38:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSqKe-0001sS-HW for grub-devel@gnu.org; Tue, 12 Aug 2008 05:38:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSqKc-0001pM-6u for grub-devel@gnu.org; Tue, 12 Aug 2008 05:38:23 -0400 Received: from [199.232.76.173] (port=41016 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSqKc-0001p2-1V for grub-devel@gnu.org; Tue, 12 Aug 2008 05:38:22 -0400 Received: from ti-out-0910.google.com ([209.85.142.186]:18753) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KSqKb-00079g-8a for grub-devel@gnu.org; Tue, 12 Aug 2008 05:38:21 -0400 Received: by ti-out-0910.google.com with SMTP id u5so1201378tia.10 for ; Tue, 12 Aug 2008 02:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=e/hbbFN2a8nM7Tem4Ib6NThvPH9KHOtM0qVdMGD27eM=; b=vAtFnmgFPjhy52ogeaGgKHguYzeusYeKUDs1YK6oDcG4OGcIMRpgThU9kkaO7wsLoA /hYWIeGV8t2uHfADPbn4M3/HzVJxccjj53t3KoWgYvWE3QyLASSn22/934Ggcioo8K8j R/2txFxIh0/Cc41UJp7J+ITuvX0JwQWi4bjd4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=lPdaJ6FmUcVvpkOrwBPCSCtoSM0xH9zG/Ti5DzcdRPIcVCRnUpxMaKdI1kpyrDIeH4 OhD83WO6ZFJt+7CZbDcsVjlqbp8cDXysdtlh8+kn5Dn/w5o9uIVvR4IZtB289tVs7Vtc Alr4A2Ib+tWMSONOHELyFMZQcK5/Sm6/goJgI= Received: by 10.110.46.3 with SMTP id t3mr10869792tit.33.1218533896586; Tue, 12 Aug 2008 02:38:16 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Tue, 12 Aug 2008 02:38:16 -0700 (PDT) Message-ID: Date: Tue, 12 Aug 2008 17:38:16 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <20080812085213.GA381@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080811213240.GF6883@thorin> <20080812085213.GA381@thorin> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Idea: use menu hook to implement the savedefault command X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 09:38:24 -0000 On Tue, Aug 12, 2008 at 4:52 PM, Robert Millan wrote: > Notice there's already an implementation of a lock command: > > http://www.mail-archive.com/grub-devel@gnu.org/msg05350.html > > which, I think, even without password it would satisfy most of the users who > want lock/password. I recommend you read that thread before venturing into > implement it (Okuji didn't like my initial proposal, and I run out of time > to find/implement another approach). Hi, I notice an issue with that implementation. For example, if menu_lock=1, how do you unlock it ? Remember that "Unlock the menu" is an menu item as well, so you can't get to it in the first place, unless you also specify text of menu somewhere, or use another variable, for example: set menu_lock=1 set menu_unlock_menu=Unlock the menu Besides, we might need to fine tune auth with scripting, like protecting only some of the commands. -- Bean