Skip to content

Commit

Permalink
mxgrub: Restrict access to CLI and entry editing in submenu
Browse files Browse the repository at this point in the history
Currently, it’s possible, after entering the submenu, to enter the CLI
by pressing the key *c*, or to edit entries by pressing *e*.

David found out, that adding the superuser and password line in the
submenu section allows to restrict the access in the submenu too.
  • Loading branch information
pmenzel committed Dec 3, 2019
1 parent 16866bd commit 012ea91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mxgrub/mxgrub
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ else
menuentry "$MARIUX_DEFAULT" --unrestricted { set chosen="$submenu>$MARIUX_DEFAULT" ; save_env chosen ; linux /boot/bzImage.x86_64 root=LABEL=root $KERNEL_PARAMETER ; initrd /boot/grub/initramfs.igz }
submenu "$submenu" --unrestricted {
$SUPERUSERS_LINE
$kernellist
}
if [ \$chosen ]; then
Expand Down

0 comments on commit 012ea91

Please sign in to comment.