lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191002194346.GA3792@localhost.localdomain>
Date:   Wed, 2 Oct 2019 19:44:00 +0000
From:   <Narendra.K@...l.com>
To:     <linux-efi@...r.kernel.org>
CC:     <Mario.Limonciello@...l.com>, <ard.biesheuvel@...aro.org>,
        <geert@...ux-m68k.org>, <tglx@...utronix.de>,
        <linux-kernel@...r.kernel.org>, <james.morse@....com>,
        <mingo@...nel.org>, <Narendra.K@...l.com>
Subject: [PATCH] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is
 set to y

From: Narendra K <Narendra.K@...l.com>

For the EFI_RCI2_TABLE kconfig option, 'make oldconfig' asks the user
for input as it is a new kconfig option in kernel version 5.4. This patch
modifies the kconfig option to ask the user for input only when CONFIG_X86
or CONFIG_COMPILE_TEST is set to y.

The patch also makes EFI_RCI2_TABLE kconfig option depend on CONFIG_EFI.

Signed-off-by: Narendra K <Narendra.K@...l.com>
---
The patch is created on kernel version 5.4-rc1.

Hi Ard, I have made following changes -

- changed the prompt string from "EFI Runtime Configuration
Interface Table Version 2 Support" to "EFI RCI Table Version 2 Support"
as the string crossed 80 char limit. 

- added "depends on EFI" so that code builds only when CONFIG_EFI is
set to y.

- added 'default n' for ease of understanding though default is set to n.

 drivers/firmware/efi/Kconfig | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/firmware/efi/Kconfig b/drivers/firmware/efi/Kconfig
index 178ee8106828..6e4c46e8a954 100644
--- a/drivers/firmware/efi/Kconfig
+++ b/drivers/firmware/efi/Kconfig
@@ -181,7 +181,10 @@ config RESET_ATTACK_MITIGATION
 	  reboots.
 
 config EFI_RCI2_TABLE
-	bool "EFI Runtime Configuration Interface Table Version 2 Support"
+	bool
+	prompt "EFI RCI Table Version 2 Support" if X86 || COMPILE_TEST
+	depends on EFI
+	default n
 	help
 	  Displays the content of the Runtime Configuration Interface
 	  Table version 2 on Dell EMC PowerEdge systems as a binary
-- 
2.18.1

-- 
With regards,
Narendra K

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ