mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Add helper for security policies
@ 2026-03-16 11:36 Fabian Pflug
  2026-03-16 11:36 ` [PATCH v2 1/5] of: add of_property_write_string_array() Fabian Pflug
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Fabian Pflug @ 2026-03-16 11:36 UTC (permalink / raw)
  To: BAREBOX, Sascha Hauer; +Cc: Fabian Pflug

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 <f.pflug@pengutronix.de>
---
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 <f.pflug@pengutronix.de>




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

end of thread, other threads:[~2026-03-17 10:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-16 11:36 [PATCH v2 0/5] Add helper for security policies Fabian Pflug
2026-03-16 11:36 ` [PATCH v2 1/5] of: add of_property_write_string_array() Fabian Pflug
2026-03-16 11:36 ` [PATCH v2 2/5] common: bootm: add policy to commandline Fabian Pflug
2026-03-16 11:36 ` [PATCH v2 3/5] security: policy: set active policy on boot Fabian Pflug
2026-03-16 11:36 ` [PATCH v2 4/5] security: configure pinctrl based on policy name Fabian Pflug
2026-03-16 11:36 ` [PATCH v2 5/5] security: kernel_pinctrl: fixup pinctrl in kernel dts Fabian Pflug
2026-03-17 10:07   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox