[bug #67020] unrestricted submenu causes contained menuentry to be unrestricted as well
<[email protected]> Sun, 13 Apr 2025 16:22:14 -0400 (EDT)
| Newsgroups | gmane.comp.boot-loaders.grub.bugs |
|---|---|
| Message-ID | <[email protected]> |
URL:
<https://savannah.gnu.org/bugs/?67020>
Summary: unrestricted submenu causes contained menuentry to
be unrestricted as well
Group: GNU GRUB
Submitter: ysalmon
Submitted: dim. 13 avril 2025 20:22:09
Category: Configuration
Severity: Major
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: other
Release:
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: dim. 13 avril 2025 20:22:09 By: Anonymous
When a password is set, entries that are not marked as --unrestricted require
a password to be entered. This includes submenus : entering them is also
restricted.
However, setting --unrestricted to a submenu command also makes the
menuentries it contains bootable without password.
submenu "Unrestricted submenu" --unrestricted {
menuentry "Should be restricted but is not" {
normal
}
}
The [https://www.gnu.org/software/grub/manual/grub/grub.html#submenu
documentation] is very terse, and it is not possible to infer this behaviour
from it, which I believe is a bug.
In addition, how can I specify a submenu entry to be restricted, without
restricting the submenu itself ?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67020>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZ/wc9gAKCRCqLAuaBUf3 TiuzAPsH0LlAab+HSglcsvhYicvoHjenU9c3Xk8wz6cwvnpAwAEArEtA9U9WNJI1 wlCR+0U3X12ghg2RrR7rwrYN5UC24Qw= =/UcG -----END PGP SIGNATURE-----