linux-yocto: remove bbappend
PATCH 1/4 linux-yocto: remove bbappend
Signed-off-by Armin Kuster <[email protected]>
--- recipes-kernel/linux/linux-yocto-dev.bbappend | 3 --- recipes-kernel/linux/linux-yocto_5.%.bbappend | 3 --- 2 files changed, 6 deletions(-) delete mode 100644 recipes-kernel/linux/linux-yocto-dev.bbappend delete mode 100644 recipes-kernel/linux/linux-yocto_5.%.bbappend
recipes-kernel/linux/linux-yocto-dev.bbappend deleted +0 -3
@@ -1,3 +0,0 @@ -KERNEL_FEATURES_append = " ${@bb.utils.contains("DISTRO_FEATURES", "apparmor", " features/apparmor/apparmor.scc", "" ,d)}" -KERNEL_FEATURES_append = " ${@bb.utils.contains("DISTRO_FEATURES", "smack", " features/smack/smack.scc", "" ,d)}" -KERNEL_FEATURES_append = " ${@bb.utils.contains("IMAGE_CLASSES", "dm-verity-img", " features/device-mapper/dm-verity.scc", "" ,d)}"
recipes-kernel/linux/linux-yocto_5.%.bbappend deleted +0 -3
@@ -1,3 +0,0 @@ -KERNEL_FEATURES_append = " ${@bb.utils.contains("DISTRO_FEATURES", "apparmor", " features/apparmor/apparmor.scc", "" ,d)}" -KERNEL_FEATURES_append = " ${@bb.utils.contains("DISTRO_FEATURES", "smack", " features/smack/smack.scc", "" ,d)}" -KERNEL_FEATURES_append = " ${@bb.utils.contains("IMAGE_CLASSES", "dm-verity-img", " features/device-mapper/dm-verity.scc", "" ,d)}"
Signature · 1 line
2.25.1
PATCH 2/4 meta-tpm: remove linux-yocto
Signed-off-by Armin Kuster <[email protected]>
--- .../recipes-kernel/linux/linux-yocto/tpm.cfg | 8 -------- .../recipes-kernel/linux/linux-yocto/tpm.scc | 3 --- .../recipes-kernel/linux/linux-yocto/tpm2.cfg | 6 ------ .../recipes-kernel/linux/linux-yocto/tpm2.scc | 3 --- .../linux/linux-yocto/tpm_i2c.cfg | 15 --------------- .../linux/linux-yocto/tpm_i2c.scc | 6 ------ .../linux/linux-yocto/tpm_x86.cfg | 4 ---- .../recipes-kernel/linux/linux-yocto/vtpm.cfg | 5 ----- .../recipes-kernel/linux/linux-yocto/vtpm.scc | 4 ---- .../linux/linux-yocto_5.%.bbappend | 17 ----------------- 10 files changed, 71 deletions(-) delete mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto/tpm.cfg delete mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto/tpm.scc delete mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.cfg delete mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.scc delete mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto/tpm_i2c.cfg delete mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto/tpm_i2c.scc delete mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto/tpm_x86.cfg delete mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto/vtpm.cfg delete mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto/vtpm.scc delete mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto_5.%.bbappend
meta-tpm/recipes-kernel/linux/linux-yocto/tpm.cfg deleted +0 -8
@@ -1,8 +0,0 @@ -CONFIG_HW_RANDOM_TPM=y -CONFIG_TCG_TPM=y -CONFIG_TCG_TIS_CORE=y -CONFIG_TCG_TIS=y -CONFIG_SECURITYFS=y -CONFIG_TCG_NSC=m -CONFIG_TCG_ATMEL=m -CONFIG_TCG_INFINEON=m
meta-tpm/recipes-kernel/linux/linux-yocto/tpm.scc deleted +0 -3
@@ -1,3 +0,0 @@ -define KFEATURE_DESCRIPTION "Enable TPM" - -kconf hardware tpm.cfg
meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.cfg deleted +0 -6
@@ -1,6 +0,0 @@ -CONFIG_HW_RANDOM_TPM=y -CONFIG_TCG_TPM=y -CONFIG_TCG_TIS_CORE=y -CONFIG_TCG_TIS=y -CONFIG_TCG_CRB=y -CONFIG_SECURITYFS=y
meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.scc deleted +0 -3
@@ -1,3 +0,0 @@ -define KFEATURE_DESCRIPTION "Enable TPM 2.0" - -kconf hardware tpm2.cfg
meta-tpm/recipes-kernel/linux/linux-yocto/tpm_i2c.cfg deleted +0 -15
@@ -1,15 +0,0 @@ -CONFIG_HW_RANDOM_TPM=y -CONFIG_TCG_TPM=y -CONFIG_TCG_TIS_CORE=y -CONFIG_TCG_TIS=y -CONFIG_SECURITYFS=y - -CONFIG_REGMAP_I2C=y -CONFIG_I2C_BOARDINFO=y -CONFIG_I2C_COMPAT=y -CONFIG_RTC_I2C_AND_SPI=y - -CONFIG_TCG_TIS_I2C_ATMEL=m -CONFIG_TCG_TIS_I2C_INFINEON=m -CONFIG_TCG_TIS_I2C_NUVOTON=m -CONFIG_TCG_TIS_ST33ZP24_I2C=m
meta-tpm/recipes-kernel/linux/linux-yocto/tpm_i2c.scc deleted +0 -6
@@ -1,6 +0,0 @@ -define KFEATURE_DESCRIPTION "Enable TPM i2c" - -include features/i2c/i2c.scc - -kconf hardware tpm_i2c.cfg -
meta-tpm/recipes-kernel/linux/linux-yocto/tpm_x86.cfg deleted +0 -4
@@ -1,4 +0,0 @@ -CONFIG_TCG_NSC=m -CONFIG_TCG_ATMEL=m -CONFIG_TCG_INFINEON=m -CONFIG_TCG_TIS_ST33ZP24=m
meta-tpm/recipes-kernel/linux/linux-yocto/vtpm.cfg deleted +0 -5
@@ -1,5 +0,0 @@ -CONFIG_HW_RANDOM_TPM=y -CONFIG_TCG_TPM=y -CONFIG_TCG_VTPM_PROXY=y -CONFIG_SECURITYFS=y -~
meta-tpm/recipes-kernel/linux/linux-yocto/vtpm.scc deleted +0 -4
@@ -1,4 +0,0 @@ -define KFEATURE_DESCRIPTION "Enable vTPM" - -kconf hardware vtpm.cfg -
meta-tpm/recipes-kernel/linux/linux-yocto_5.%.bbappend deleted +0 -17
@@ -1,17 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" - -# Enable tpm in kernel -SRC_URI_append_x86 = " \ - ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'file://tpm.scc', '', d)} \ - ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \ - " - -SRC_URI_append_x86-64 = " \ - ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'file://tpm.scc', '', d)} \ - ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \ - " - -SRC_URI += " \ - ${@bb.utils.contains('MACHINE_FEATURES', 'tpm_i2c', 'file://tpm_i2c.scc', '', d)} \ - ${@bb.utils.contains('MACHINE_FEATURES', 'vtpm', 'file://vtpm.scc', '', d)} \ - "
Signature · 1 line
2.25.1
PATCH 3/4 meta-integrity: YCL fixups
In reply to Armin KusterWe wont need the linux-% once the kernel-feature class is included in core.
Move the inherit into the image itself.
Drop kernel patches not being used.
Signed-off-by Armin Kuster <[email protected]>
--- .../images/integrity-image-minimal.bb | 2 + .../recipes-kernel/linux/linux-%.bbappend | 5 - .../0001-ima-fix-ima_inode_post_setattr.patch | 51 ------- ...for-creating-files-using-the-mknodat.patch | 138 ------------------ ...-file-hash-setting-by-user-to-fix-an.patch | 60 -------- 5 files changed, 2 insertions(+), 254 deletions(-) delete mode 100644 meta-integrity/recipes-kernel/linux/linux-%.bbappend delete mode 100644 meta-integrity/recipes-kernel/linux/linux/0001-ima-fix-ima_inode_post_setattr.patch delete mode 100644 meta-integrity/recipes-kernel/linux/linux/0002-ima-add-support-for-creating-files-using-the-mknodat.patch delete mode 100644 meta-integrity/recipes-kernel/linux/linux/Revert-ima-limit-file-hash-setting-by-user-to-fix-an.patch
meta-integrity/recipes-core/images/integrity-image-minimal.bb +2 -0
@@ -13,6 +13,8 @@ IMAGE_INSTALL = "\ LICENSE = "MIT" inherit core-image +inherit ${@bb.utils.contains('DISTRO_FEATURES', 'modsign', 'kernel-modsign', '', d)} + export IMAGE_BASENAME = "integrity-image-minimal"
meta-integrity/recipes-kernel/linux/linux-%.bbappend deleted +0 -5
@@ -1,5 +0,0 @@ -KERNEL_FEATURES_append = " ${@bb.utils.contains("DISTRO_FEATURES", "ima", " features/ima/ima.scc", "" ,d)}" - -KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'modsign', ' features/ima/modsign.scc', '', d)}" - -inherit ${@bb.utils.contains('DISTRO_FEATURES', 'modsign', 'kernel-modsign', '', d)}
meta-integrity/recipes-kernel/linux/linux/0001-ima-fix-ima_inode_post_setattr.patch deleted +0 -51
51 lines not on this page · raw message
meta-integrity/recipes-kernel/linux/linux/0002-ima-add-support-for-creating-files-using-the-mknodat.patch deleted +0 -138
138 lines not on this page · raw message
meta-integrity/recipes-kernel/linux/linux/Revert-ima-limit-file-hash-setting-by-user-to-fix-an.patch deleted +0 -60
60 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH 4/4 meta-hardening/initscripts: missed overide.
In reply to Armin KusterHelps pass YCL.
Signed-off-by Armin Kuster <[email protected]>
--- .../recipes-core/initscripts/initscripts_1.0.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-hardening/recipes-core/initscripts/initscripts_1.0.bbappend +1 -1
@@ -1,4 +1,4 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/files:" +FILESEXTRAPATHS_prepend_harden := "${THISDIR}/files:" SRC_URI_append_harden = " file://mountall.sh"
Signature · 1 line
2.25.1