Skip to contentSkip to conversation

linux-yocto: enable selinux support for kernel v4.1

PATCH In review Shrikant Bobade 2 participants 2 messages Jul 30, 2015 – Aug 5, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 linux-yocto: enable selinux support for kernel v4.1

From: Shrikant Bobade <[email protected]>

The default kernel is now v4.1. So we need the selinux support for kernel v4.1, inorder to get selinux enabled images out of box.

---
 recipes-kernel/linux/linux-yocto_4.1.bbappend |    8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto_4.1.bbappend
recipes-kernel/linux/linux-yocto_4.1.bbappend new file +8 -0
new file mode 100644
index 0000000..a8c0647
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+# Enable selinux support in the kernel if the feature is enabled
+SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'file://selinux.cfg', '', d)}"
+
+# For inconsistent kallsyms data bug on ARM
+# http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/thread.html#89718
+EXTRA_OEMAKE += "${@bb.utils.contains('TARGET_ARCH', 'arm', ' KALLSYMS_EXTRA_PASS=1', '', d)}"
Signature · 1 line
1.7.9.5
#1 lore raw

Works for me too.

Philip

Quoted 26 lines · Shrikant Bobade

From: Shrikant Bobade <[email protected]>

The default kernel is now v4.1. So we need the selinux support for kernel v4.1, inorder to get selinux enabled images out of box.

---
 recipes-kernel/linux/linux-yocto_4.1.bbappend |    8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto_4.1.bbappend
recipes-kernel/linux/linux-yocto_4.1.bbappend new file +8 -0
new file mode 100644
index 0000000..a8c0647
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+# Enable selinux support in the kernel if the feature is enabled
+SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'file://selinux.cfg', '', d)}"
+
+# For inconsistent kallsyms data bug on ARM
+# http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/thread.html#89718
+EXTRA_OEMAKE += "${@bb.utils.contains('TARGET_ARCH', 'arm', ' KALLSYMS_EXTRA_PASS=1', '', d)}"