grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] efi term: open input console exlusively
@ 2016-04-28 18:14 Josef Bacik
  2016-04-30  6:39 ` Andrei Borzenkov
  0 siblings, 1 reply; 2+ messages in thread
From: Josef Bacik @ 2016-04-28 18:14 UTC (permalink / raw)
  To: kernel-team, grub-devel

We've had issues with a bunch of our EFI machines getting random console input
from God knows where.  This stops our provisioning because the timeout countdown
stops as it thinks we pressed a button, which we most certaintly did not.  So
open the input console in exclusive mode to make sure only the guy behind the
wheel gets to type.  With this patch we can no provision these weird machines.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
---
 grub-core/term/efi/console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-core/term/efi/console.c b/grub-core/term/efi/console.c
index 7d31095..5be8530 100644
--- a/grub-core/term/efi/console.c
+++ b/grub-core/term/efi/console.c
@@ -201,7 +201,7 @@ grub_efi_console_input_init (struct grub_term_input *term)
 
   text_input = grub_efi_open_protocol(grub_efi_system_table->console_in_handler,
 				      &text_input_ex_guid,
-				      GRUB_EFI_OPEN_PROTOCOL_GET_PROTOCOL);
+				      GRUB_EFI_OPEN_PROTOCOL_BY_EXCLUSIVE);
   term->data = (void *)text_input;
 
   return 0;
-- 
2.5.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-30  6:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-28 18:14 [PATCH] efi term: open input console exlusively Josef Bacik
2016-04-30  6:39 ` Andrei Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).