Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MkSv5-0002sh-Oj for mharc-grub-devel@gnu.org; Sun, 06 Sep 2009 21:21:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkSv3-0002qL-1U for grub-devel@gnu.org; Sun, 06 Sep 2009 21:21:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkSux-0002lh-3q for grub-devel@gnu.org; Sun, 06 Sep 2009 21:21:19 -0400 Received: from [199.232.76.173] (port=51126 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkSux-0002lW-0a for grub-devel@gnu.org; Sun, 06 Sep 2009 21:21:15 -0400 Received: from mail-bw0-f220.google.com ([209.85.218.220]:43468) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MkSuw-0000im-LR for grub-devel@gnu.org; Sun, 06 Sep 2009 21:21:14 -0400 Received: by bwz20 with SMTP id 20so1817765bwz.42 for ; Sun, 06 Sep 2009 18:21:12 -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; bh=hNRhklYIzR8dBEi4CccXiUJtckqaSv4/HvBAcWdkSHU=; b=mF9fWqHR13m0Oy9cDqYPKPK3lEf5IOKyWeUCwlYhMBTk3UNXsECkxA4BeUZjlSUR+h D4f4EUOr3bTNWKPlaAKcg9aUHr4Z99Nl0CU98c8QMa1Y3woWX3YduiD5dO8HuT2hDaW1 UGjMjQ1mYZCkPC4mERlAq9NNQYEsXob3syHZw= 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; b=DiToN+8CRx5P0A5GYqYc2i2iso+KFd1IWULc35HafQqIuRioYBQQSVt+iXCdFSxlyN rxRtVPo4OAKApTlyZB0F7RyqnidWXfgvT+Bv1u+7hGzkmxplS0/H9bpO6Ku4f/hRGpbA wm/SdE1nacFyyHqD6IdLRx4RFy0hKsn8xll+w= MIME-Version: 1.0 Received: by 10.239.182.168 with SMTP id q40mr1222525hbg.139.1252286472454; Sun, 06 Sep 2009 18:21:12 -0700 (PDT) In-Reply-To: References: <1252240143.3895.18.camel@fz.local> <20090906133818.GI13423@riva.ucam.org> Date: Sun, 6 Sep 2009 20:21:12 -0500 Message-ID: <2e59e6970909061821k22e529dbwd8eabe4d76f2deca@mail.gmail.com> From: "richardvoigt@gmail.com" To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 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: Mon, 07 Sep 2009 01:21:21 -0000 On Sun, Sep 6, 2009 at 12:22 PM, Vladimir 'phcoder' Serbinenko wrote: > 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 Shouldn't it be u+rw anyway, or 0600 ?