summaryrefslogtreecommitdiffstats
path: root/meta-integrity
diff options
context:
space:
mode:
authorLans Zhang <jia.zhang@windriver.com>2017-06-26 11:33:39 +0800
committerLans Zhang <jia.zhang@windriver.com>2017-06-26 11:33:39 +0800
commit8e01c0a442d468db8621f9ab921cfbfe838f4baf (patch)
tree429420d7d1dc7c318866b37c9dd28b2105bb4e15 /meta-integrity
parentdcc933df6e9ab127e19a77c2322a1816c04b03c4 (diff)
downloadmeta-secure-core-8e01c0a442d468db8621f9ab921cfbfe838f4baf.tar.gz
IMA: refresh kernel cfg
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
Diffstat (limited to 'meta-integrity')
-rw-r--r--meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc2
-rw-r--r--meta-integrity/recipes-kernel/linux/linux-yocto-rt_4.%.bbappend2
-rw-r--r--meta-integrity/recipes-kernel/linux/linux-yocto/ima.cfg25
-rw-r--r--meta-integrity/recipes-kernel/linux/linux-yocto/ima.scc3
-rw-r--r--meta-integrity/recipes-kernel/linux/linux-yocto/integrity.cfg7
-rw-r--r--meta-integrity/recipes-kernel/linux/linux-yocto/integrity.scc4
-rw-r--r--meta-integrity/recipes-kernel/linux/linux-yocto_4.%.bbappend2
7 files changed, 22 insertions, 23 deletions
diff --git a/meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc b/meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc
index 8c08a45..34259de 100644
--- a/meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc
+++ b/meta-integrity/recipes-kernel/linux/linux-yocto-integrity.inc
@@ -7,7 +7,7 @@ DEPENDS += "${@'key-store openssl-native' if d.getVar('IMA_ENABLED', True) == '1
7# in initramfs only. So we don't add it to RDEPENDS_${PN} here. 7# in initramfs only. So we don't add it to RDEPENDS_${PN} here.
8 8
9SRC_URI += " \ 9SRC_URI += " \
10 ${@'file://ima.scc file://ima.cfg' if d.getVar('IMA_ENABLED', True) == '1' else ''} \ 10 ${@'file://ima.scc file://ima.cfg file://integrity.scc file://integrity.cfg' if d.getVar('IMA_ENABLED', True) == '1' else ''} \
11" 11"
12 12
13do_configure_append() { 13do_configure_append() {
diff --git a/meta-integrity/recipes-kernel/linux/linux-yocto-rt_4.%.bbappend b/meta-integrity/recipes-kernel/linux/linux-yocto-rt_4.%.bbappend
index 685d15c..c59d66c 100644
--- a/meta-integrity/recipes-kernel/linux/linux-yocto-rt_4.%.bbappend
+++ b/meta-integrity/recipes-kernel/linux/linux-yocto-rt_4.%.bbappend
@@ -1 +1 @@
include linux-yocto-integrity.inc require linux-yocto-integrity.inc
diff --git a/meta-integrity/recipes-kernel/linux/linux-yocto/ima.cfg b/meta-integrity/recipes-kernel/linux/linux-yocto/ima.cfg
index 073197a..5918392 100644
--- a/meta-integrity/recipes-kernel/linux/linux-yocto/ima.cfg
+++ b/meta-integrity/recipes-kernel/linux/linux-yocto/ima.cfg
@@ -1,17 +1,8 @@
1..........................................................................
2. WARNING
3.
4. This file is a kernel configuration fragment, and not a full kernel
5. configuration file. The final kernel configuration is made up of
6. an assembly of processed fragments, each of which is designed to
7. capture a specific part of the final configuration (e.g. platform
8. configuration, feature configuration, and board specific hardware
9. configuration). For more information on kernel configuration, please
10. consult the product documentation.
11.
12..........................................................................
13
14CONFIG_IMA=y 1CONFIG_IMA=y
2# CONFIG_IMA_KEXEC is not set
3# CONFIG_IMA_LSM_RULES is not set
4# CONFIG_IMA_WRITE_POLICY is not set
5# CONFIG_IMA_READ_POLICY is not set
15CONFIG_IMA_MEASURE_PCR_IDX=10 6CONFIG_IMA_MEASURE_PCR_IDX=10
16# CONFIG_IMA_TEMPLATE is not set 7# CONFIG_IMA_TEMPLATE is not set
17# CONFIG_IMA_NG_TEMPLATE=y is not set 8# CONFIG_IMA_NG_TEMPLATE=y is not set
@@ -23,13 +14,9 @@ CONFIG_IMA_DEFAULT_HASH_SHA256=y
23# CONFIG_IMA_DEFAULT_HASH_WP512 is not set 14# CONFIG_IMA_DEFAULT_HASH_WP512 is not set
24CONFIG_IMA_DEFAULT_HASH="sha256" 15CONFIG_IMA_DEFAULT_HASH="sha256"
25CONFIG_IMA_APPRAISE=y 16CONFIG_IMA_APPRAISE=y
26CONFIG_INTEGRITY_SIGNATURE=y
27CONFIG_INTEGRITY_ASYMMETRIC_KEYS=y
28CONFIG_INTEGRITY_TRUSTED_KEYRING=y
29CONFIG_SYSTEM_TRUSTED_KEYRING=y
30CONFIG_IMA_LOAD_X509=y 17CONFIG_IMA_LOAD_X509=y
31CONFIG_IMA_TRUSTED_KEYRING=y 18CONFIG_IMA_TRUSTED_KEYRING=y
19CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY=y
20CONFIG_IMA_BLACKLIST_KEYRING=y
32CONFIG_IMA_X509_PATH="/etc/keys/x509_evm.der" 21CONFIG_IMA_X509_PATH="/etc/keys/x509_evm.der"
33# CONFIG_IMA_APPRAISE_SIGNED_INIT is not set 22# CONFIG_IMA_APPRAISE_SIGNED_INIT is not set
34CONFIG_AUDIT=y
35CONFIG_INTEGRITY_AUDIT=y
diff --git a/meta-integrity/recipes-kernel/linux/linux-yocto/ima.scc b/meta-integrity/recipes-kernel/linux/linux-yocto/ima.scc
index c43e1c4..866ea24 100644
--- a/meta-integrity/recipes-kernel/linux/linux-yocto/ima.scc
+++ b/meta-integrity/recipes-kernel/linux/linux-yocto/ima.scc
@@ -1,4 +1,5 @@
1define KFEATURE_DESCRIPTION "Integrity Measurement Architecture (IMA) enablement" 1define KFEATURE_DESCRIPTION "Integrity Measurement Architecture (IMA) enablement"
2define KFEATURE_COMPATIBILITY board 2define KFEATURE_COMPATIBILITY all
3 3
4include integrity.scc
4kconf non-hardware ima.cfg 5kconf non-hardware ima.cfg
diff --git a/meta-integrity/recipes-kernel/linux/linux-yocto/integrity.cfg b/meta-integrity/recipes-kernel/linux/linux-yocto/integrity.cfg
new file mode 100644
index 0000000..4706515
--- /dev/null
+++ b/meta-integrity/recipes-kernel/linux/linux-yocto/integrity.cfg
@@ -0,0 +1,7 @@
1CONFIG_SECURITYFS=y
2CONFIG_AUDIT=y
3CONFIG_INTEGRITY=y
4CONFIG_INTEGRITY_AUDIT=y
5CONFIG_INTEGRITY_SIGNATURE=y
6CONFIG_INTEGRITY_ASYMMETRIC_KEYS=y
7CONFIG_SYSTEM_TRUSTED_KEYRING=y
diff --git a/meta-integrity/recipes-kernel/linux/linux-yocto/integrity.scc b/meta-integrity/recipes-kernel/linux/linux-yocto/integrity.scc
new file mode 100644
index 0000000..a007b08
--- /dev/null
+++ b/meta-integrity/recipes-kernel/linux/linux-yocto/integrity.scc
@@ -0,0 +1,4 @@
1define KFEATURE_DESCRIPTION "Integrity subsystem enablement"
2define KFEATURE_COMPATIBILITY all
3
4kconf non-hardware integrity.cfg
diff --git a/meta-integrity/recipes-kernel/linux/linux-yocto_4.%.bbappend b/meta-integrity/recipes-kernel/linux/linux-yocto_4.%.bbappend
index 685d15c..c59d66c 100644
--- a/meta-integrity/recipes-kernel/linux/linux-yocto_4.%.bbappend
+++ b/meta-integrity/recipes-kernel/linux/linux-yocto_4.%.bbappend
@@ -1 +1 @@
include linux-yocto-integrity.inc require linux-yocto-integrity.inc