From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MkJFS-0004ID-Ja for mharc-grub-devel@gnu.org; Sun, 06 Sep 2009 11:01:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkJFQ-0004G3-3E for grub-devel@gnu.org; Sun, 06 Sep 2009 11:01:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkJFL-0004EG-GQ for grub-devel@gnu.org; Sun, 06 Sep 2009 11:01:43 -0400 Received: from [199.232.76.173] (port=38573 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkJFL-0004E4-Ao for grub-devel@gnu.org; Sun, 06 Sep 2009 11:01:39 -0400 Received: from xvm-190-8.ghst.net ([217.70.190.8]:36339 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MkJFK-00023B-KZ for grub-devel@gnu.org; Sun, 06 Sep 2009 11:01:38 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1MkJFJ-00010S-16 for grub-devel@gnu.org; Sun, 06 Sep 2009 17:01:37 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1MkJFI-0000xF-Bo for grub-devel@gnu.org; Sun, 06 Sep 2009 17:01:36 +0200 Date: Sun, 6 Sep 2009 17:01:36 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090906150136.GC3548@thorin> References: <1252240143.3895.18.camel@fz.local> <20090906133818.GI13423@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090906133818.GI13423@riva.ucam.org> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: chmod of generated grub.cfg 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: Sun, 06 Sep 2009 15:01:44 -0000 On Sun, Sep 06, 2009 at 02:38:18PM +0100, Colin Watson wrote: > > A GRUB_CHMOD > variable seems overkill, though. Yes. Please not a new config option just for this. Just pick a reasonable mode and set to it. Auto-detection doesn't sound bad, although I'd be fine with just using 0400. > > Else I'd need to add a /etc/grub.d/999_chmod file in grub-installer > > which changes the mode of grub.cfg.new if the user wants to have a > > password. > > I think it'd be more sensible to do this in grub-mkconfig itself - it > doesn't really fit well into the /etc/grub.d/ hook system, which is > really just for generating output. Agreed. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."