]> git.ipfire.org Git - thirdparty/grub.git/commit
commands/setpci: Restrict setpci command when locked down
authorJavier Martinez Canillas <javierm@redhat.com>
Wed, 24 Feb 2021 21:59:59 +0000 (22:59 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:15 +0000 (15:54 +0100)
commit58b77d4069823b44c5fa916fa8ddfc9c4cd51e02
treecd22caac93a2949c757f7225f844e7d21f0b85c3
parent468a5699b249fe6816b4e7e86c5dc9d325c9b09e
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>
grub-core/commands/setpci.c