All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] broken ESC navigation if authentication is used
@ 2015-06-10 16:29 Florian Kaiser
  2015-06-10 17:02 ` Vladimir 'phcoder' Serbinenko
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Florian Kaiser @ 2015-06-10 16:29 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

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.



Thank you very much in advance

Florian Kaiser
Microkernel Systems
tel +49 89 991950 - 0
florian_kaiser@genua.de

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
genua
Gesellschaft für Netzwerk - und Unix-Administration mbH
Domagkstr. 7, D-85551 Kirchheim. http://www.genua.de
Tel: (089) 99 19 50-0, Fax: (089) 99 19 50 - 999

Geschäftsführer: Dr. Magnus Harlander, Dr. Michaela Harlander,
Bernhard Schneck. Amtsgericht München HRB 98238
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





[-- Attachment #2: 0001-grub-fix-broken-authorization-behavior-when-pressing.patch --]
[-- Type: text/x-diff, Size: 1476 bytes --]

From 1c4129d2f1751ae387fc5fd4073d70a3fa80f1e2 Mon Sep 17 00:00:00 2001
From: Florian Kaiser <fkaiser@genua.de>
Date: Tue, 9 Jun 2015 19:01:03 +0200
Subject: [PATCH] grub: fix broken authorization behavior when pressing ESC

This change removes a superfluous authorization request,
which prevented the user from navigating backwards through
the menu tree using the ESC Key.

Change-Id: Ia4cd9ce45241e70758a6eeac4a2b33a9d73c0c6e
---
 contrib/grub2/grub-core/normal/menu.c |   25 ++++---------------------
 1 file changed, 4 insertions(+), 21 deletions(-)

diff --git a/contrib/grub2/grub-core/normal/menu.c b/contrib/grub2/grub-core/normal/menu.c
index b47991a..27978a6 100644
--- a/contrib/grub2/grub-core/normal/menu.c
+++ b/contrib/grub2/grub-core/normal/menu.c
@@ -886,27 +886,10 @@ show_menu (grub_menu_t menu, int nested, int autobooted)
 grub_err_t
 grub_show_menu (grub_menu_t menu, int nested, int autoboot)
 {
-  grub_err_t err1, err2;
+  grub_err_t err;
 
-  while (1)
-    {
-      err1 = show_menu (menu, nested, autoboot);
-      autoboot = 0;
-      grub_print_error ();
-
-      if (grub_normal_exit_level)
-	break;
-
-      err2 = grub_auth_check_authentication (NULL);
-      if (err2)
-	{
-	  grub_print_error ();
-	  grub_errno = GRUB_ERR_NONE;
-	  continue;
-	}
-
-      break;
-    }
+  err = show_menu (menu, nested, autoboot);
+  grub_print_error ();
 
-  return err1;
+  return err;
 }
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-11-12 18:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.