Skip to contentSkip to conversation

toyomo: Add kconfig

PATCH New Armin Kuster 1 participant 1 message Jul 31, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toyomo: Add kconfig

Add kernel config to enable toyomo

---
 recipes-kernel/linux/linux-yocto/tomoyo.cfg    | 8 ++++++++
 recipes-kernel/linux/linux-yocto/tomoyo.scc    | 4 ++++
 recipes-kernel/linux/linux-yocto_3.14.bbappend | 4 ++++
 3 files changed, 16 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto/tomoyo.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/tomoyo.scc
 create mode 100644 recipes-kernel/linux/linux-yocto_3.14.bbappend
recipes-kernel/linux/linux-yocto/tomoyo.cfg new file +8 -0
new file mode 100644
index 0000000..9fb8228
@@ -0,0 +1,8 @@
+CONFIG_SECURITY_TOMOYO=y
+CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY=2048
+CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG=1024
+CONFIG_SECURITY_TOMOYO_POLICY_LOADER="/sbin/tomoyo-init"
+CONFIG_SECURITY_TOMOYO_ACTIVATION_TRIGGER="/sbin/init"
+CONFIG_DEFAULT_SECURITY_TOMOYO=y
+CONFIG_DEFAULT_SECURITY="tomoyo"
+
recipes-kernel/linux/linux-yocto/tomoyo.scc new file +4 -0
new file mode 100644
index 0000000..9080934
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Toyomo Kernel Support"
+define KFEATURE_COMPATIBILITY arch
+
+kconf non-hardware toyomo.cfg
recipes-kernel/linux/linux-yocto_3.14.bbappend new file +4 -0
new file mode 100644
index 0000000..0c742c1
@@ -0,0 +1,4 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+# Toyomo kernel support
+SRC_URI += "${@base_contains('DISTRO_FEATURES', 'tomoyo', ' file://tomoyo.cfg', '', d)}"
Signature · 1 line
1.9.1