All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-rockchip][PATCH] linux-yocto-dev: fix build
@ 2024-06-11 14:06 Trevor Woerner
  2024-06-11 14:29 ` [yocto-patches] " Quentin Schulz
  0 siblings, 1 reply; 7+ messages in thread
From: Trevor Woerner @ 2024-06-11 14:06 UTC (permalink / raw)
  To: yocto-patches

The linux-yocto-dev build was failing with:
	| ERROR: modpost: vmlinux: local symbol 'security_path_rmdir' was exported

Disabling some filesystem-related security options fixes the build.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 recipes-kernel/linux/linux-yocto-dev.bbappend                | 1 +
 .../linux/linux-yocto-dev/disable-some-fs-security.cfg       | 5 +++++
 2 files changed, 6 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto-dev/disable-some-fs-security.cfg

diff --git a/recipes-kernel/linux/linux-yocto-dev.bbappend b/recipes-kernel/linux/linux-yocto-dev.bbappend
index b6a63d7b7b29..94bf737c63bd 100644
--- a/recipes-kernel/linux/linux-yocto-dev.bbappend
+++ b/recipes-kernel/linux/linux-yocto-dev.bbappend
@@ -2,4 +2,5 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
 
 COMPATIBLE_MACHINE:orangepi-5-plus = "orangepi-5-plus"
 
+SRC_URI:append = " file://disable-some-fs-security.cfg"
 SRC_URI:append:orangepi-5-plus = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
diff --git a/recipes-kernel/linux/linux-yocto-dev/disable-some-fs-security.cfg b/recipes-kernel/linux/linux-yocto-dev/disable-some-fs-security.cfg
new file mode 100644
index 000000000000..dd2e894eed76
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto-dev/disable-some-fs-security.cfg
@@ -0,0 +1,5 @@
+CONFIG_SECURITYFS=n
+CONFIG_SECURITY_NETWORK=y
+CONFIG_SECURITY_NETWORK_XFRM=n
+CONFIG_SECURITY_PATH=y
+CONFIG_SECURITY_LANDLOCK=y
-- 
2.44.0.478.g7774cfed6261



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

end of thread, other threads:[~2024-06-11 17:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-11 14:06 [meta-rockchip][PATCH] linux-yocto-dev: fix build Trevor Woerner
2024-06-11 14:29 ` [yocto-patches] " Quentin Schulz
2024-06-11 14:56   ` Trevor Woerner
2024-06-11 15:03     ` Bruce Ashfield
2024-06-11 15:01   ` Bruce Ashfield
2024-06-11 15:17     ` Bruce Ashfield
2024-06-11 17:18       ` Trevor Woerner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.