grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Cc: Florian Kaiser <florian_kaiser@genua.de>
Subject: Re: [PATCH] broken ESC navigation if authentication is used
Date: Thu, 11 Jun 2015 06:55:31 +0300	[thread overview]
Message-ID: <20150611065531.47ffab1f@opensuse.site> (raw)
In-Reply-To: <CAEaD8JOEUtinnkiSDnYDwzZ75D3egqnN+DG5yJ+WGR+YAdVhrg@mail.gmail.com>

В Wed, 10 Jun 2015 21:35:51 +0200
"Vladimir 'phcoder' Serbinenko" <phcoder@gmail.com> пишет:

> This patch may allow to escape to shell if menu was called from context
> without menu entries. This may happen inadvertently I.a. when using
> configfile. You need to add an additional parameter to indicate whether
> it's OK to break from menu

Could you explain? Grub does

grub_enter_normal
  grub_normal_execute
    grub_show_menu
  grub_cmdline_run

if after processing config file there are no menu entries we do not
even call grub_show_menu. And even if we do, after return from it there
is mandatory authentication in grub_cmdline_run.

I see how it could happen in original commit when authentication was
added, but I miss code path that cause it now. 

> Le 10 juin 2015 21:32, "Andrei Borzenkov" <arvidjaar@gmail.com> a écrit :
> 
> > В Wed, 10 Jun 2015 18:29:59 +0200
> > Florian Kaiser <florian_kaiser@genua.de> пишет:
> >
> > > Hi,
> > >
> > > we are using grub2 with authentication enabled and multiple submenus.
> > > Unfortunately it is not possible to return to a previous menu with ESC
> > without
> > > triggering a superuser password prompt. This is not the desired behavior
> > in
> > > my opinion.
> > > I attached a patch to this email, which removes the password prompt when
> > > pressing escape.
> > >
> >
> > Looks OK; I'm not sure why this was needed in the first place - it does
> > not look like it is even possible to exit primary menu.
> >
> > Vladimir, OK to commit?
> >
> > _______________________________________________
> > Grub-devel mailing list
> > Grub-devel@gnu.org
> > https://lists.gnu.org/mailman/listinfo/grub-devel
> >



  reply	other threads:[~2015-06-11  3:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-10 16:29 [PATCH] broken ESC navigation if authentication is used Florian Kaiser
2015-06-10 17:02 ` Vladimir 'phcoder' Serbinenko
2015-06-10 19:31 ` Andrei Borzenkov
2015-06-10 19:35   ` Vladimir 'phcoder' Serbinenko
2015-06-11  3:55     ` Andrei Borzenkov [this message]
2015-11-08 20:55       ` Vladimir 'φ-coder/phcoder' Serbinenko
2015-11-10  7:52         ` Andrei Borzenkov
2015-11-12 18:27         ` Andrei Borzenkov
2015-11-10 18:48 ` Escape to CLI (was: Re: [PATCH] broken ESC navigation if authentication is used) Andrei Borzenkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150611065531.47ffab1f@opensuse.site \
    --to=arvidjaar@gmail.com \
    --cc=florian_kaiser@genua.de \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).