Received: from list by lists.gnu.org with archive (Exim 4.71) id 1avqSd-0003AV-Sc for mharc-grub-devel@gnu.org; Thu, 28 Apr 2016 14:14:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avqSc-00038X-54 for grub-devel@gnu.org; Thu, 28 Apr 2016 14:14:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avqSX-0001oe-76 for grub-devel@gnu.org; Thu, 28 Apr 2016 14:14:46 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:42169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avqSW-0001oR-V4 for grub-devel@gnu.org; Thu, 28 Apr 2016 14:14:41 -0400 Received: from pps.filterd (m0044008.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u3SIBHAH020216 for ; Thu, 28 Apr 2016 11:14:38 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=from : to : subject : date : message-id : mime-version : content-type; s=facebook; bh=NguWAZECqR5i77FLq/l/ANJWf0hcBCnDk8WQJ0Ysssc=; b=hXdOJHqmg2dYS40IZ0C5Tca2HxeHPEpCLd8j0Zs6rA0TlcODramCgI8v6D6k6c2ci4iu GzHOseoOx78a+3eNKvemMRrGtipeJ6TJfA2sztqHaLJS1Trg/wRD3wk2DcLtM76hCw0x lRygcwXIA29si2rjCwekoeLgGIWjkJ9W9m0= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 22kprv0cha-1 (version=TLSv1 cipher=AES128-SHA bits=128 verify=NOT) for ; Thu, 28 Apr 2016 11:14:38 -0700 Received: from localhost (192.168.52.123) by mail.thefacebook.com (192.168.16.23) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 28 Apr 2016 11:14:34 -0700 From: Josef Bacik To: , Subject: [PATCH] efi term: open input console exlusively Date: Thu, 28 Apr 2016 14:14:33 -0400 Message-ID: <1461867273-6292-1-git-send-email-jbacik@fb.com> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.52.123] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-04-28_08:, , signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 67.231.145.42 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2016 18:14:47 -0000 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 --- 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