[meta-security][PATCH 1/2] layer.conf: enable apparmor for qemu machine


Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@...>
---
conf/layer.conf | 3 +++
1 file changed, 3 insertions(+)

diff --git a/conf/layer.conf b/conf/layer.conf
index 1f83593..21f03d1 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -16,3 +16,6 @@ LAYERDEPENDS_security = "core openembedded-layer perl-layer networking-layer met
# Sanity check for meta-security layer.
# Setting SKIP_META_SECURITY_SANITY_CHECK to "1" would skip the bbappend files check.
INHERIT += "sanity-meta-security"
+
+QB_KERNEL_CMDLINE_APPEND = " ${@bb.utils.contains('DISTRO_FEATURES', 'apparmor', 'apparmor=1 security=apparmor', '', d)}"
+
--
2.25.1

Join yocto@lists.yoctoproject.org to automatically receive all group messages.