From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 16 Mar 2026 12:37:12 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w26G0-001Pzg-1R for lore@lore.pengutronix.de; Mon, 16 Mar 2026 12:37:12 +0100 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1w26Fz-0006lc-OC for lore@pengutronix.de; Mon, 16 Mar 2026 12:37:12 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=UZLQlYk20WvjEMJsasL88y8n+WwzDUZTe2PVmIEdRMw=; b=MTzvHx21/U1Yow NAEGHPescUKCw8mY8kTzq7soDX7rqxwqagfEUkPs0NaS3+/9RkyDX9XRNExhJBfihD++R2OYUX+dN 5+wIB6iMxOXUXePYygoE9Gjsfh/74i1QObiAVrixur0UaGTtVr8/rhu1PtkSCydKsNHBBfxAQKboV 5GsVU0Yz/uZIA1glwaTmH5PoNypGexfDiEFD9pEA4KredoCSp0rJZirJtd8aKjD3Kun3vDp/l3YB2 Y2LWZgHtSqSE6IDP4F/HO8xpCkfUHc9Ty5rrsN6xnmNI2nrVNnC746NvpoQONLpFFT/e/pVJwtq5q ePCRgTY3rli030DJDDrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w26FV-00000003qAE-0dPJ; Mon, 16 Mar 2026 11:36:41 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w26FQ-00000003q7s-47cq for barebox@lists.infradead.org; Mon, 16 Mar 2026 11:36:38 +0000 Received: from dude06.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::5c]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1w26FO-0006QV-Rn; Mon, 16 Mar 2026 12:36:34 +0100 From: Fabian Pflug Date: Mon, 16 Mar 2026 12:36:27 +0100 Message-Id: <20260316-v2026-02-0-topic-sconfig_console-v2-0-1eee8c762beb@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIADvrt2kC/4WNQQrCMBBFr1KydiSTBlFX3kOKxHTSDkhSkhoqJ Xc3Lbh29f+bgfdXkSgyJXFtVhEpc+LgK6hDI+xo/EDAfWWhpDrJFhHy1kAqkDCHiS0kG7zj4VE jhRcBXvRZK4OasBdVM0VyvOwT967yyGkO8bMvZtyuP7n6L89YX9q2zlrjzBPpNpEf3nMMnpdjT 6IrpXwBkT9A6tUAAAA= X-Change-ID: 20260311-v2026-02-0-topic-sconfig_console-194842a14e1d To: BAREBOX , Sascha Hauer Cc: Fabian Pflug X-Mailer: b4 0.14.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260316_043637_037095_2100A34E X-CRM114-Status: UNSURE ( 8.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH v2 0/5] Add helper for security policies X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) This series adds helper functions to the security policy framework to do additional work based on the selected policy. Like adding the policy name to the commandline and configuring pinmux based on the selected policy. Signed-off-by: Fabian Pflug --- Changes in v2: - Add of_property_write_string_array function - Add selftest for of_property_write_string_array - Add exra-check for active-policy - Use "linux.bootargs.dyn.policy" instead of version without dyn - Iterate over device-nodes instead of recurse through tree - Link to v1: https://lore.barebox.org/barebox/20260312-v2026-02-0-topic-sconfig_console-v1-0-4c3fccafab1e@pengutronix.de --- Fabian Pflug (5): of: add of_property_write_string_array() common: bootm: add policy to commandline security: policy: set active policy on boot security: configure pinctrl based on policy name security: kernel_pinctrl: fixup pinctrl in kernel dts common/bootm.c | 23 +++++++++++++++++ drivers/base/driver.c | 12 ++++++++- drivers/of/base.c | 44 ++++++++++++++++++++++++++++++++ include/bootm.h | 5 ++++ include/of.h | 3 +++ security/Kconfig.policy | 8 ++++++ security/Makefile | 1 + security/kernel_pinctrl.c | 58 +++++++++++++++++++++++++++++++++++++++++++ security/policy.c | 15 +++++++++++ test/self/of_manipulation.c | 14 ++++++++++- test/self/of_manipulation.dts | 5 ++++ 11 files changed, 186 insertions(+), 2 deletions(-) --- base-commit: ab82fbd7dcc6c862c7cf281ad515097ffb654499 change-id: 20260311-v2026-02-0-topic-sconfig_console-194842a14e1d Best regards, -- Fabian Pflug