Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3007604rwd; Fri, 19 May 2023 13:28:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4MuKvzn0De2zLhqEsEsFKK/jLofhUU0LbWrtSWtoQGkll940MgI8TRrde/NOkI3O8UdSCB X-Received: by 2002:a17:90b:3d6:b0:24f:13ec:ecac with SMTP id go22-20020a17090b03d600b0024f13ececacmr3221015pjb.26.1684528094965; Fri, 19 May 2023 13:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684528094; cv=none; d=google.com; s=arc-20160816; b=qqWIj8vbXuNzi3e8tpGIrnt0ddpij1JbaAa8pMJdsrM15jYNq159rO8ZyjPsk4V/KZ wfieFhAerwGNM3xMmRr4IsZd31tnUTv7TPPjiexn0n2O+l1ghe5ukbxBDVyaxxENklFM 2uCFz6ev3uqMDLlinQL0FLAq7OUhbq8isy6PY/KB8AgTPJDn3Fwzeu8fGS/L8bvGqkmm Cd9Ezny9PRAl0oBvUwoyOUe3/JqwCBR9+VP9JSbQEDgcT7snCzBiMSGN8Oqa88pOQIdk r/CP2E8D1nj32u4ZzFzMpZBZ6jB1y4r9y3F5Jc/YEfBr5qBniQUUMPi1ynY811OV7Obs mZ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=wENMhZEUKQoXANDT/rq1tLQ+DSTMyGsBS/qf3ADAcCs=; b=ztQ2lNDNvS59PzIPRksPpVhDP3s82U0tBusJ4T1pJHYDWl8wz+9OyXDE3j5StpNIHC WpgJB6wRBSRp62U5mHT1QXnS1Sgr9JUj3taqU6FEKQEXkrC1M9o1nHDCXru2UBey5A3U vz2mZ5OYLR7PTYEqB29ZTGcQSzXBPIyhGZugQAKOPj96x/dgN3RVxHzJG8Wn6dtkrFax Fa7KQsxkK3oSG1TXg2Qiq6SoIVR9PJVxTlTakKlwpCWXuMWkwqbaNt1OXkauzgt/w0qi 4gFmD+XSUXlZBRLnwvmyjPFwaIArS2gWFssmiQ/8YnD6iwoGN5uZTMRpBtYLrTJeRHmn 7paQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IqoRmQEn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a23-20020a17090ad81700b0024e2d70d28asi69718pjv.140.2023.05.19.13.27.59; Fri, 19 May 2023 13:28:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IqoRmQEn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231779AbjESUOM (ORCPT + 99 others); Fri, 19 May 2023 16:14:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230477AbjESUN1 (ORCPT ); Fri, 19 May 2023 16:13:27 -0400 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59A3E10FA; Fri, 19 May 2023 13:13:17 -0700 (PDT) Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6aaf9092c52so1466806a34.1; Fri, 19 May 2023 13:13:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684527196; x=1687119196; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=wENMhZEUKQoXANDT/rq1tLQ+DSTMyGsBS/qf3ADAcCs=; b=IqoRmQEnZgBmXyM/OUSdfT0LJPAK/bGL4qCj+eFyJaFGhwxJH6R4kKYotjJYx71may Of1hQaz00NfiAObOY+vUY9T4G7PfUCGJ6qUUelOL+f8OojYWkaie2RovvzhMDjaUUzBX aL7eV2O46u05ksBIXzo32W/iTLM4ALCLnxY1ixDfO36Vd+gb3hNoWIsxmj2pJ7wKhO1J 33o0nNkRi0degTSaCmzhLM8Sr9MWMTtCr44/sGhZLMiu5XynNaCgFRHINA8uQJEjckzA 6VC0CPPZeAkajTiHlyvV28jHWFatWs3/EiYP1jFhuy6PcWmVRPFaC5nr8kClyLAwH1Ox MLiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684527196; x=1687119196; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wENMhZEUKQoXANDT/rq1tLQ+DSTMyGsBS/qf3ADAcCs=; b=l2yO9mWWg7PtlBvwWnEI6E8pzRJvG2kngKOD/VXl64bN0u0IJQ6YB+fPT6CPq0gPYz nb/f4TUg1zNmN7C1pN3ALDHkWLDKTyr1QRrTxZ/eDkrplJCrILdMiH+83GrsFpYoaLtK mGddoilvKfmrstYhnRgpKN9rJrD0gZhGA7YHWV/oW6Q0i2yKizOPkVNb5cvn+IZkLV9l sIwsvR1JPeQD6Itttu8198jzKv663YA4A3PhKOUzOPOEqucvCfT/oO0alytmCblNUruv 9yUWkKeDd4pgEFwYavdGO1HcR5R4XLHf21xLy2Ny/+tNUBmAUjt0Tb1L/OlCe7joN/rX 7Psw== X-Gm-Message-State: AC+VfDwyssVFK5MtvN91YYEXuzbPn1dtW2RAjaN64kXgNgqUtp1bMjGY 2J2kI9YgdZ5pjpxxx/EwmSo= X-Received: by 2002:a05:6870:98a9:b0:19a:24cf:1597 with SMTP id eg41-20020a05687098a900b0019a24cf1597mr1767718oab.27.1684527196131; Fri, 19 May 2023 13:13:16 -0700 (PDT) Received: from grumpy-VECTOR.hsd1.tx.comcast.net ([2601:2c3:480:7390:e6dc:4936:31b7:d3d0]) by smtp.gmail.com with ESMTPSA id g4-20020a056870d20400b001964dc3dadesm2325239oac.45.2023.05.19.13.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 13:13:15 -0700 (PDT) From: Jorge Lopez X-Google-Original-From: Jorge Lopez To: hdegoede@redhat.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, thomas@t-8ch.de, ilpo.jarvinen@linux.intel.com Subject: [PATCH v15 12/13] hp-bioscfg: Makefile Date: Fri, 19 May 2023 15:12:59 -0500 Message-Id: <20230519201300.12964-13-jorge.lopez2@hp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519201300.12964-1-jorge.lopez2@hp.com> References: <20230519201300.12964-1-jorge.lopez2@hp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HP BIOS Configuration driver purpose is to provide a driver supporting the latest sysfs class firmware attributes framework allowing the user to change BIOS settings and security solutions on HP Inc.’s commercial notebooks. Many features of HP Commercial notebooks can be managed using Windows Management Instrumentation (WMI). WMI is an implementation of Web-Based Enterprise Management (WBEM) that provides a standards-based interface for changing and monitoring system settings. HP BIOSCFG driver provides a native Linux solution and the exposed features facilitates the migration to Linux environments. The Linux security features to be provided in hp-bioscfg driver enables managing the BIOS settings and security solutions via sysfs, a virtual filesystem that can be used by user-mode applications. The new documentation cover HP-specific firmware sysfs attributes such Secure Platform Management and Sure Start. Each section provides security feature description and identifies sysfs directories and files exposed by the driver. Many HP Commercial notebooks include a feature called Secure Platform Management (SPM), which replaces older password-based BIOS settings management with public key cryptography. PC secure product management begins when a target system is provisioned with cryptographic keys that are used to ensure the integrity of communications between system management utilities and the BIOS. HP Commercial notebooks have several BIOS settings that control its behaviour and capabilities, many of which are related to security. To prevent unauthorized changes to these settings, the system can be configured to use a cryptographic signature-based authorization string that the BIOS will use to verify authorization to modify the setting. Linux Security components are under development and not published yet. The only linux component is the driver (hp bioscfg) at this time. Other published security components are under Windows. Signed-off-by: Jorge Lopez --- Based on the latest platform-drivers-x86.git/for-next --- drivers/platform/x86/hp/Kconfig | 16 ++++++++++++++++ drivers/platform/x86/hp/Makefile | 1 + drivers/platform/x86/hp/hp-bioscfg/Makefile | 11 +++++++++++ 3 files changed, 28 insertions(+) create mode 100644 drivers/platform/x86/hp/hp-bioscfg/Makefile diff --git a/drivers/platform/x86/hp/Kconfig b/drivers/platform/x86/hp/Kconfig index ae165955311c..7fef4f12e498 100644 --- a/drivers/platform/x86/hp/Kconfig +++ b/drivers/platform/x86/hp/Kconfig @@ -60,4 +60,20 @@ config TC1100_WMI This is a driver for the WMI extensions (wireless and bluetooth power control) of the HP Compaq TC1100 tablet. +config HP_BIOSCFG + tristate "HP BIOS Configuration Driver" + default m + depends on ACPI_WMI + select NLS + select FW_ATTR_CLASS + help + This driver enables administrators to securely manage BIOS settings + using digital certificates and public-key cryptography that eliminate + the need for passwords for both remote and local management. It supports + changing BIOS settings on many HP machines from 2018 and newer without + the use of any additional software. + + To compile this driver as a module, choose M here: the module will + be called hp-bioscfg. + endif # X86_PLATFORM_DRIVERS_HP diff --git a/drivers/platform/x86/hp/Makefile b/drivers/platform/x86/hp/Makefile index db1eed4cd7c7..e4f908a61acf 100644 --- a/drivers/platform/x86/hp/Makefile +++ b/drivers/platform/x86/hp/Makefile @@ -8,3 +8,4 @@ obj-$(CONFIG_HP_ACCEL) += hp_accel.o obj-$(CONFIG_HP_WMI) += hp-wmi.o obj-$(CONFIG_TC1100_WMI) += tc1100-wmi.o +obj-$(CONFIG_HP_BIOSCFG) += hp-bioscfg/ diff --git a/drivers/platform/x86/hp/hp-bioscfg/Makefile b/drivers/platform/x86/hp/hp-bioscfg/Makefile new file mode 100644 index 000000000000..67be0d917753 --- /dev/null +++ b/drivers/platform/x86/hp/hp-bioscfg/Makefile @@ -0,0 +1,11 @@ +obj-$(CONFIG_HP_BIOSCFG) := hp-bioscfg.o + +hp-bioscfg-objs := bioscfg.o \ + biosattr-interface.o \ + enum-attributes.o \ + int-attributes.o \ + order-list-attributes.o \ + passwdobj-attributes.o \ + spmobj-attributes.o \ + string-attributes.o \ + surestart-attributes.o -- 2.34.1