mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-16 11:21:02 +00:00
commands/setpci: Restrict setpci command when locked down
This command can set PCI devices register values, which makes it dangerous in a locked down configuration. Restrict it so can't be used on this setup. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
468a5699b2
commit
58b77d4069
@ -328,10 +328,10 @@ static grub_extcmd_t cmd;
|
||||
|
||||
GRUB_MOD_INIT(setpci)
|
||||
{
|
||||
cmd = grub_register_extcmd ("setpci", grub_cmd_setpci, 0,
|
||||
N_("[-s POSITION] [-d DEVICE] [-v VAR] "
|
||||
"REGISTER[=VALUE[:MASK]]"),
|
||||
N_("Manipulate PCI devices."), options);
|
||||
cmd = grub_register_extcmd_lockdown ("setpci", grub_cmd_setpci, 0,
|
||||
N_("[-s POSITION] [-d DEVICE] [-v VAR] "
|
||||
"REGISTER[=VALUE[:MASK]]"),
|
||||
N_("Manipulate PCI devices."), options);
|
||||
}
|
||||
|
||||
GRUB_MOD_FINI(setpci)
|
||||
|
Loading…
Reference in New Issue
Block a user