Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MkLRr-0004Dd-CY for mharc-grub-devel@gnu.org; Sun, 06 Sep 2009 13:22:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkLRp-0004CI-M1 for grub-devel@gnu.org; Sun, 06 Sep 2009 13:22:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkLRl-00049Z-Ih for grub-devel@gnu.org; Sun, 06 Sep 2009 13:22:41 -0400 Received: from [199.232.76.173] (port=46247 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkLRl-00049S-8I for grub-devel@gnu.org; Sun, 06 Sep 2009 13:22:37 -0400 Received: from mail-fx0-f226.google.com ([209.85.220.226]:55440) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MkLRk-00025h-QR for grub-devel@gnu.org; Sun, 06 Sep 2009 13:22:37 -0400 Received: by fxm26 with SMTP id 26so1678152fxm.42 for ; Sun, 06 Sep 2009 10:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=fhUDF4AHu/+oThGFyKGCPfs2SPJlIGrVjunr4hB5hpw=; b=qW/+aabyjGCAvd70B6CUYxALs9lTArYqZFsxfFaK5zvCdC5ExhuyBl3DRNBrUtTlEl ZX0bVKeDcDEzjOzb83FAPT89tc8BXawHvi89rymLW+G14tQ7yC9QRVEK7pSy2pq5DgA+ fypqczGj9gulEryKoQYHba9jSezOgKSUU5+7c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=kMfZwrMHvwSpKty7hsSTP0CM9sayy8i2gQh66Wc1sk+LYW3VDVzgkqEoFF04k3Cux/ 9l734E7uxiZc9Ichqa5CgsZUfhl5S8O4KHAiLXJPqXqArpNQUQMLlW+Gy/QcBsnqtKys 01HBzW6HtFu+qCJ5Hajj5wyF8/4m972lqLKY4= MIME-Version: 1.0 Received: by 10.204.153.24 with SMTP id i24mr11173449bkw.114.1252257756059; Sun, 06 Sep 2009 10:22:36 -0700 (PDT) In-Reply-To: <20090906133818.GI13423@riva.ucam.org> References: <1252240143.3895.18.camel@fz.local> <20090906133818.GI13423@riva.ucam.org> Date: Sun, 6 Sep 2009 19:22:36 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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 17:22:42 -0000 On Sun, Sep 6, 2009 at 3:38 PM, Colin Watson wrote: > 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. Is there a reason a non-root would like to look at grub.cfg on production system? Developers can always override chmod. If there is no real reason for non-root to look into grub.cfg I would follow the best friend in security considerations called "paranoia" and just use mode 400 > >> 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 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 [cjwatson@ubuntu.com] > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git