Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MkHwp-0002g9-I4 for mharc-grub-devel@gnu.org; Sun, 06 Sep 2009 09:38:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkHwn-0002g0-Cz for grub-devel@gnu.org; Sun, 06 Sep 2009 09:38:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkHwi-0002fh-Sq for grub-devel@gnu.org; Sun, 06 Sep 2009 09:38:24 -0400 Received: from [199.232.76.173] (port=53241 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkHwi-0002fe-NB for grub-devel@gnu.org; Sun, 06 Sep 2009 09:38:20 -0400 Received: from smarthost02.mail.zen.net.uk ([212.23.3.141]:33932) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MkHwi-0003xR-C7 for grub-devel@gnu.org; Sun, 06 Sep 2009 09:38:20 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost02.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1MkHwh-0002GG-FR for grub-devel@gnu.org; Sun, 06 Sep 2009 13:38:19 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1MkHwh-0003Cz-00; Sun, 06 Sep 2009 14:38:19 +0100 Date: Sun, 6 Sep 2009 14:38:18 +0100 From: Colin Watson To: The development of GRUB 2 Message-ID: <20090906133818.GI13423@riva.ucam.org> References: <1252240143.3895.18.camel@fz.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1252240143.3895.18.camel@fz.local> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost02-IP: [82.69.40.219] 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 13:38:26 -0000 On Sun, Sep 06, 2009 at 02:29:03PM +0200, Felix Zielcke wrote: > Currently grub-mkconfig uses chmod 444 on the newly generated grub.cfg > Wouldn't it be better to use 400 now that we have plaintext password > support? > Or should we add support for a GRUB_CHMOD variable so users can override > this setting as they please? I'd prefer to see this done only if they set a password. A GRUB_CHMOD variable seems overkill, though. > 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. -- Colin Watson [cjwatson@ubuntu.com]