10.06.2015 19:29, Florian Kaiser пишет:
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.


Actually I could not even reproduce it at first. The problem is, new submenu opens new context and unless `superusers' is exported as soon as we enter submenu no authentication is required at all (including entering CLI).

I am not sure whether this is intentional, but this is definitely unexpected. And due to complete lack of description of variable scoping in GRUB it is also undocumented.

Options are

- simply document variable scoping and mention it in authentication description

- propagate superusers to submenus, rely on normal export in nested config. Still needs documentation what export actually does.

- export superusers by default and document it in description.

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to