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

Message ID 20220228161231.2096596-1-akuster808@gmail.com
State New
Headers show
Series [meta-security,1/2] layer.conf: enable apparmor for qemu machine | expand

Commit Message

akuster808 Feb. 28, 2022, 4:12 p.m. UTC
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 conf/layer.conf | 3 +++
 1 file changed, 3 insertions(+)

Patch

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)}"
+