*: Add SPDX-License-Identifier MIT header
PATCH v2 1/1 *: Add SPDX-License-Identifier MIT header
Add missing license headers to configuration, template, script, and wic partition layout files to make licensing consistent across the repository.
Command Used:
git ls-files | xargs grep -rL SPDX-License-Identifier
---
Changes in v2:
- added license to remaining files
- Link to v1: https://lore.kernel.org/r/[email protected]
--- conf/distro/debian-bullseye-backports.list | 3 +++ conf/distro/debian-buster-backports.list | 3 +++ conf/distro/preferences.ovmf-snakeoil.conf | 3 +++ conf/distro/preferences.swupdate-bullseye-backports.conf | 3 +++ recipes-bsp/u-boot/files/ftpm-stmm.cfg | 3 +++ recipes-bsp/u-boot/files/no-grub-workaround.cfg | 3 +++ recipes-bsp/u-boot/files/qemu-extra.cfg | 3 +++ recipes-bsp/u-boot/files/secure-boot.cfg | 3 +++ recipes-bsp/u-boot/files/ti-extra.cfg | 3 +++ recipes-core/customizations/files/99-silent-printk.conf | 3 +++ recipes-core/customizations/files/99-watchdog.conf | 3 +++ recipes-core/customizations/files/ssh-permit-root.conf | 3 +++ recipes-core/home-fs/files/home.mount | 3 +++ recipes-core/home-fs/files/postinst | 3 +++ recipes-core/immutable-rootfs/files/95-disable-package-updates.preset | 3 +++ recipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl | 3 +++ recipes-core/immutable-rootfs/files/postinst | 3 +++ recipes-core/journald-config/files/persistent-journal.conf | 3 +++ recipes-core/kernel-panic/files/sysrq-panic.service | 3 +++ recipes-core/ltp/files/debian/control.tmpl | 3 +++ recipes-core/ltp/files/debian/rules | 3 +++ recipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl | 3 +++ recipes-core/security-customizations/files/postinst | 2 ++ recipes-core/security-customizations/files/ssh-pam-remote.conf | 3 +++ recipes-core/security-customizations/files/ssh-remote-session-term.conf | 3 +++ recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl | 3 +++ recipes-core/swupdate-config/files/hwrevision.tmpl | 3 +++ recipes-core/swupdate-config/files/swupdate.cfg | 3 +++ recipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efibootguard.ini | 3 +++ recipes-core/tmp-fs/files/postinst | 3 +++ recipes-devtools/swupdate-signer/files/sign-swu-cms | 3 +++ recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.tmpl | 3 +++ recipes-initramfs/initramfs-crypt-hook/files/pwquality.conf | 3 +++ recipes-initramfs/initramfs-factory-reset-hook/files/factory-reset-script.tmpl | 2 ++ recipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl | 3 +++ recipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl | 2 ++ recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script | 2 ++ recipes-kernel/linux/files/no-module-signing.cfg | 3 +++ recipes-kernel/linux/files/no-tpm-hwrng.cfg | 3 +++ recipes-kernel/linux/files/preempt-rt.cfg | 3 +++ recipes-security/fail2ban-config/files/systemd-defaults.conf | 3 +++ scripts/deploy-cip-core.sh | 3 +++ scripts/generate-sb-db-from-existing-certificate.sh | 3 +++ scripts/generate_secure_boot_keys.sh | 3 +++ scripts/start-efishell.sh | 3 +++ scripts/submit_lava.sh | 3 +++ scripts/update-linux-cip.sh | 3 +++ scripts/update-ltp.sh | 3 +++ tests/templates/IEC_template.yml | 3 +++ tests/templates/secureboot_corrupt_rootfs_steps.yml | 3 +++ tests/templates/secureboot_negative_test.yml | 3 +++ tests/templates/secureboot_template.yml | 3 +++ tests/templates/secureboot_unsigned_bootloader_steps.yml | 3 +++ tests/templates/secureboot_unsigned_kernel_steps.yml | 3 +++ tests/templates/swupdate-test-action-M-COM.yml | 3 +++ tests/templates/swupdate_corrupt_swu_artifact_steps.yml | 3 +++ tests/templates/swupdate_corrupt_swu_steps.yml | 3 +++ tests/templates/swupdate_negative_test.yml | 3 +++ tests/templates/swupdate_reboot_without_confirm.yml | 3 +++ tests/templates/swupdate_same_uuid_steps.yml | 3 +++ tests/templates/swupdate_template.yml | 3 +++ wic/ebg-signed-sysparts.inc | 3 +++ wic/ebg-sysparts.inc | 3 +++ wic/hihope-rzg2m-efibootguard.wks.in | 3 +++ wic/qemu-arm64-efibootguard-secureboot.wks.in | 3 +++ wic/qemu-arm64-efibootguard.wks.in | 3 +++ wic/qemu-riscv64-efibootguard.wks.in | 3 +++ wic/x86-uefi-efibootguard-secureboot.wks.in | 3 +++ wic/x86-uefi-efibootguard.wks.in | 3 +++ 69 files changed, 203 insertions(+)
conf/distro/debian-bullseye-backports.list +3 -0
@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# deb http://archive.debian.org/debian bullseye-backports main contrib non-free
conf/distro/debian-buster-backports.list +3 -0
@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# deb http://archive.debian.org/debian buster-backports main contrib non-free
conf/distro/preferences.ovmf-snakeoil.conf +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Package: ovmf Pin: release n=buster-backports Pin-Priority: 801
conf/distro/preferences.swupdate-bullseye-backports.conf +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Package: dh-nodejs Pin: release n=bullseye-backports Pin-Priority: 801
recipes-bsp/u-boot/files/ftpm-stmm.cfg +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### Enable OPTEE, fTPM and StMM CONFIG_TEE=y CONFIG_OPTEE=y
recipes-bsp/u-boot/files/no-grub-workaround.cfg +3 -0
@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# ### Disable grub workaround # CONFIG_EFI_GRUB_ARM32_WORKAROUND is not set
recipes-bsp/u-boot/files/qemu-extra.cfg +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### QEMU extra config CONFIG_MMC=y CONFIG_SUPPORT_EMMC_RPMB=y
recipes-bsp/u-boot/files/secure-boot.cfg +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### Secure boot config # CONFIG_BOOTSTD_DEFAULTS is not set # CONFIG_BOOTMETH_CROS is not set
recipes-bsp/u-boot/files/ti-extra.cfg +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### FTPM + RPMB + StandaloneMM setup CONFIG_OPTEE_SERVICE_DISCOVERY=y CONFIG_TPM=y
recipes-core/customizations/files/99-silent-printk.conf +3 -0
@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# kernel.printk = 3 4 1 3
recipes-core/customizations/files/99-watchdog.conf +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Manager] RuntimeWatchdogSec=60s ShutdownWatchdogSec=60s
recipes-core/customizations/files/ssh-permit-root.conf +3 -0
@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# PermitRootLogin yes
recipes-core/home-fs/files/home.mount +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Unit] Description=Mount /home partition Before=local-fs.target
recipes-core/home-fs/files/postinst +3 -0
@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -e
recipes-core/immutable-rootfs/files/95-disable-package-updates.preset +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# disable apt-daily.timer disable apt-daily-upgrade.timer disable dpkg-db-backup.timer
recipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# L /var/lib/dpkg - - - - ${IMMUTABLE_DATA_DIR}/var/lib/dpkg d /var/log/audit 0700 root adm - d /var/lib/apt 0755 root root -
recipes-core/immutable-rootfs/files/postinst +3 -0
@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -e
recipes-core/journald-config/files/persistent-journal.conf +3 -0
@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# [Journal] Storage=persistent
recipes-core/kernel-panic/files/sysrq-panic.service +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Unit] Description=sysrq panic
recipes-core/ltp/files/debian/control.tmpl +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Source: ltp-full Section: embedded Priority: optional
recipes-core/ltp/files/debian/rules +3 -0
@@ -1,4 +1,7 @@ #!/usr/bin/make -f +# +# SPDX-License-Identifier: MIT +# export DEB_CFLAGS_MAINT_APPEND = -Wall -Wno-format-security export DEB_BUILD_MAINT_OPTIONS=hardening=-branch
recipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl +3 -0
@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# L /home - - - - /var/home C /var/home - - - - ${IMMUTABLE_DATA_DIR}/home
recipes-core/security-customizations/files/postinst +2 -0
@@ -3,6 +3,8 @@ # CIP Security, generic profile # Security Package configurations # +# SPDX-License-Identifier: MIT +# set -e
recipes-core/security-customizations/files/ssh-pam-remote.conf +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # Enable PAM configuration for Remote Session ChallengeResponseAuthentication yes KbdInteractiveAuthentication yes
recipes-core/security-customizations/files/ssh-remote-session-term.conf +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # CR2.6: Remote session termination # Terminate remote session after inactive time period
recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl +3 -0
@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# SWUPDATE_SURICATTA_ARGS="--server lua -u ${WFX_URL} -i $(cat /etc/machine-id)"
recipes-core/swupdate-config/files/hwrevision.tmpl +3 -0
@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# cip-${MACHINE} ${MACHINE_HW_VERSION}
recipes-core/swupdate-config/files/swupdate.cfg +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# globals : { bootloader = "ebg";
recipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efibootguard.ini +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [image] chainhandler=raw
recipes-core/tmp-fs/files/postinst +3 -0
@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -e
recipes-devtools/swupdate-signer/files/sign-swu-cms +3 -0
@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# in_file=$1 out_file=$2 inkey="/usr/share/swupdate-signing/swupdate-sign.key"
recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.tmpl +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# PARTITIONS="${CRYPT_PARTITIONS}" CREATE_FILE_SYSTEM_CMD="${CRYPT_CREATE_FILE_SYSTEM_CMD}" SETUP_TIMEOUT="${CRYPT_SETUP_TIMEOUT}"
recipes-initramfs/initramfs-crypt-hook/files/pwquality.conf +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # we don't have a dictionary in the initramfs # this solves the error "Password generation failed - required entropy too low for settings" dictcheck = 0
recipes-initramfs/initramfs-factory-reset-hook/files/factory-reset-script.tmpl +2 -0
@@ -7,6 +7,8 @@ # Authors: # Quirin Gylstorff <[email protected]> # +# SPDX-License-Identifier: MIT +# . /usr/share/factory-reset/reset-env . /scripts/cip-initramfs-functions
recipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl +3 -0
@@ -1,3 +1,6 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# INITRAMFS_FACTORY_RESET_DEVICES="${INITRAMFS_FACTORY_RESET_DEVICES}" INITRAMFS_FACTORY_RESET_LUKS_FORMAT_TYPE="${INITRAMFS_FACTORY_RESET_LUKS_FORMAT_TYPE}"
recipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl +2 -0
@@ -7,6 +7,8 @@ # Jan Kiszka <[email protected]> # Quirin Gylstorff <[email protected]> # +# SPDX-License-Identifier: MIT +# ovl_storage_path="${INITRAMFS_OVERLAY_STORAGE_PATH}" ovl_lower_dirs="${INITRAMFS_OVERLAY_PATHS}"
recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script +2 -0
@@ -7,6 +7,8 @@ # Authors: # Clara Kowalsky <[email protected]> # +# SPDX-License-Identifier: MIT +# partition_fstype="$1" ovl_partition_device="$2"
recipes-kernel/linux/files/no-module-signing.cfg +3 -0
@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# # CONFIG_SECURITY_LOCKDOWN_LSM is not set # CONFIG_MODULE_SIG is not set
recipes-kernel/linux/files/no-tpm-hwrng.cfg +3 -0
@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# # see https://lore.kernel.org/lkml/[email protected]/ # CONFIG_HW_RANDOM_TPM is not set
recipes-kernel/linux/files/preempt-rt.cfg +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # >= 5.10 CONFIG_EXPERT=y CONFIG_PREEMPT_RT=y
recipes-security/fail2ban-config/files/systemd-defaults.conf +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [DEFAULT] syslog_backend = systemd
scripts/deploy-cip-core.sh +3 -0
@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -e
scripts/generate-sb-db-from-existing-certificate.sh +3 -0
@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -e
scripts/generate_secure_boot_keys.sh +3 -0
@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -e
scripts/start-efishell.sh +3 -0
@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -e
scripts/submit_lava.sh +3 -0
@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# # Copyright (C) 2024, Renesas Electronics Europe GmbH # Chris Paterson <[email protected]> # Sai Ashrith <[email protected]>
scripts/update-linux-cip.sh +3 -0
@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# REPO_ROOT=$(git rev-parse --show-toplevel) pushd "${REPO_ROOT}"/recipes-kernel/linux >/dev/null || exit 1
scripts/update-ltp.sh +3 -0
@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# REPO_ROOT=$(git rev-parse --show-toplevel) pushd "${REPO_ROOT}"/recipes-core/ltp > /dev/null || exit
tests/templates/IEC_template.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# IEC layer testing timeouts:
tests/templates/secureboot_corrupt_rootfs_steps.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install -y fdisk" - "rootfs_start_sector=$(fdisk -l -o Name,Start cip-core-image-security-cip-core-#distribution#-#architecture#.wic | awk -v name=systema '$0 ~ name {print $2}')"
tests/templates/secureboot_negative_test.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# secure boot testing timeouts:
tests/templates/secureboot_template.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# secure boot testing timeouts:
tests/templates/secureboot_unsigned_bootloader_steps.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install --yes guestfish sbsigntool" - "guestfish add cip-core-image-security-cip-core-#distribution#-#architecture#.wic : run : mount /dev/sda1 / : copy-out /EFI/BOOT/bootx64.efi ."
tests/templates/secureboot_unsigned_kernel_steps.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install --yes guestfish sbsigntool" - "guestfish add cip-core-image-security-cip-core-#distribution#-#architecture#.wic : run : mount /dev/sda2 / : copy-out /linux.efi ."
tests/templates/swupdate-test-action-M-COM.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # TEST BLOCK 1 # Fail the job if software update application failed - test:
tests/templates/swupdate_corrupt_swu_artifact_steps.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - cpio -ivd --directory=/root/swu < /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu
tests/templates/swupdate_corrupt_swu_steps.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - dd if=/dev/zero of=/root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu bs=1M count=5
tests/templates/swupdate_negative_test.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# software update testing timeouts:
tests/templates/swupdate_reboot_without_confirm.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # qemu-swtpm.sock will be gone after soft reboot. # So the swtpm socket need to be started again for proper reboot # To start the swtpm daemon, first the existing one should be killed
tests/templates/swupdate_same_uuid_steps.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - cpio -ivd --directory=/root/swu < /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu
tests/templates/swupdate_template.yml +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# software update testing timeouts:
wic/ebg-signed-sysparts.inc +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # default partition layout EFI Boot Guard usage, signed version # EFI partition containing efibootguard bootloader binary
wic/ebg-sysparts.inc +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # default partition layout EFI Boot Guard usage # EFI partition containing efibootguard bootloader binary
wic/hihope-rzg2m-efibootguard.wks.in +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: RZ/G2M image with EFI Boot Guard and SWUpdate # long-description: Disk image for HiHope RZ/G2M board with EFI Boot Guard and SWUpdate
wic/qemu-arm64-efibootguard-secureboot.wks.in +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# include ebg-signed-sysparts.inc part --source rawcopy --sourceparams "file=${IMAGE_FULLNAME}.verity" --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_A}" --part-type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 --part-name systema
wic/qemu-arm64-efibootguard.wks.in +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: arm64 with EFI Boot Guard and SWUpdate # long-description: Disk image for arm64 machines with EFI Boot Guard and SWUpdate
wic/qemu-riscv64-efibootguard.wks.in +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: riscv64 with EFI Boot Guard and SWUpdate # long-description: Disk image for riscv64 machines with EFI Boot Guard and SWUpdate
wic/x86-uefi-efibootguard-secureboot.wks.in +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# include ebg-signed-sysparts.inc part --source rawcopy --sourceparams "file=${IMAGE_FULLNAME}.verity" --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_A}" --part-type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 --part-name systema
wic/x86-uefi-efibootguard.wks.in +3 -0
@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: x86 with EFI Boot Guard and SWUpdate # long-description: Disk image for x86 machines with EFI Boot Guard and SWUpdate
---
base-commit: e3158569eee297f1837a6d3fd7e0f1a0534c2b8b
change-id: 20260316-license-c5fcde3618d2
Best regards,
Signature · 1 line
Kamlesh Gurudasani <[email protected]>
Jan Kiszka
AppliedQuoted 851 lines · Kamlesh Gurudasani
Add missing license headers to configuration, template, script, and wic partition layout files to make licensing consistent across the repository.
Command Used:
git ls-files | xargs grep -rL SPDX-License-IdentifierSigned-off-by Kamlesh Gurudasani <[email protected]>---
Changes in v2:
- added license to remaining files
- Link to v1: https://lore.kernel.org/r/[email protected]--- conf/distro/debian-bullseye-backports.list | 3 +++ conf/distro/debian-buster-backports.list | 3 +++ conf/distro/preferences.ovmf-snakeoil.conf | 3 +++ conf/distro/preferences.swupdate-bullseye-backports.conf | 3 +++ recipes-bsp/u-boot/files/ftpm-stmm.cfg | 3 +++ recipes-bsp/u-boot/files/no-grub-workaround.cfg | 3 +++ recipes-bsp/u-boot/files/qemu-extra.cfg | 3 +++ recipes-bsp/u-boot/files/secure-boot.cfg | 3 +++ recipes-bsp/u-boot/files/ti-extra.cfg | 3 +++ recipes-core/customizations/files/99-silent-printk.conf | 3 +++ recipes-core/customizations/files/99-watchdog.conf | 3 +++ recipes-core/customizations/files/ssh-permit-root.conf | 3 +++ recipes-core/home-fs/files/home.mount | 3 +++ recipes-core/home-fs/files/postinst | 3 +++ recipes-core/immutable-rootfs/files/95-disable-package-updates.preset | 3 +++ recipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl | 3 +++ recipes-core/immutable-rootfs/files/postinst | 3 +++ recipes-core/journald-config/files/persistent-journal.conf | 3 +++ recipes-core/kernel-panic/files/sysrq-panic.service | 3 +++ recipes-core/ltp/files/debian/control.tmpl | 3 +++ recipes-core/ltp/files/debian/rules | 3 +++ recipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl | 3 +++ recipes-core/security-customizations/files/postinst | 2 ++ recipes-core/security-customizations/files/ssh-pam-remote.conf | 3 +++ recipes-core/security-customizations/files/ssh-remote-session-term.conf | 3 +++ recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl | 3 +++ recipes-core/swupdate-config/files/hwrevision.tmpl | 3 +++ recipes-core/swupdate-config/files/swupdate.cfg | 3 +++ recipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efibootguard.ini | 3 +++ recipes-core/tmp-fs/files/postinst | 3 +++ recipes-devtools/swupdate-signer/files/sign-swu-cms | 3 +++ recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.tmpl | 3 +++ recipes-initramfs/initramfs-crypt-hook/files/pwquality.conf | 3 +++ recipes-initramfs/initramfs-factory-reset-hook/files/factory-reset-script.tmpl | 2 ++ recipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl | 3 +++ recipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl | 2 ++ recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script | 2 ++ recipes-kernel/linux/files/no-module-signing.cfg | 3 +++ recipes-kernel/linux/files/no-tpm-hwrng.cfg | 3 +++ recipes-kernel/linux/files/preempt-rt.cfg | 3 +++ recipes-security/fail2ban-config/files/systemd-defaults.conf | 3 +++ scripts/deploy-cip-core.sh | 3 +++ scripts/generate-sb-db-from-existing-certificate.sh | 3 +++ scripts/generate_secure_boot_keys.sh | 3 +++ scripts/start-efishell.sh | 3 +++ scripts/submit_lava.sh | 3 +++ scripts/update-linux-cip.sh | 3 +++ scripts/update-ltp.sh | 3 +++ tests/templates/IEC_template.yml | 3 +++ tests/templates/secureboot_corrupt_rootfs_steps.yml | 3 +++ tests/templates/secureboot_negative_test.yml | 3 +++ tests/templates/secureboot_template.yml | 3 +++ tests/templates/secureboot_unsigned_bootloader_steps.yml | 3 +++ tests/templates/secureboot_unsigned_kernel_steps.yml | 3 +++ tests/templates/swupdate-test-action-M-COM.yml | 3 +++ tests/templates/swupdate_corrupt_swu_artifact_steps.yml | 3 +++ tests/templates/swupdate_corrupt_swu_steps.yml | 3 +++ tests/templates/swupdate_negative_test.yml | 3 +++ tests/templates/swupdate_reboot_without_confirm.yml | 3 +++ tests/templates/swupdate_same_uuid_steps.yml | 3 +++ tests/templates/swupdate_template.yml | 3 +++ wic/ebg-signed-sysparts.inc | 3 +++ wic/ebg-sysparts.inc | 3 +++ wic/hihope-rzg2m-efibootguard.wks.in | 3 +++ wic/qemu-arm64-efibootguard-secureboot.wks.in | 3 +++ wic/qemu-arm64-efibootguard.wks.in | 3 +++ wic/qemu-riscv64-efibootguard.wks.in | 3 +++ wic/x86-uefi-efibootguard-secureboot.wks.in | 3 +++ wic/x86-uefi-efibootguard.wks.in | 3 +++ 69 files changed, 203 insertions(+)conf/distro/debian-bullseye-backports.list +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# deb http://archive.debian.org/debian bullseye-backports main contrib non-freeconf/distro/debian-buster-backports.list +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# deb http://archive.debian.org/debian buster-backports main contrib non-freeconf/distro/preferences.ovmf-snakeoil.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Package: ovmf Pin: release n=buster-backports Pin-Priority: 801conf/distro/preferences.swupdate-bullseye-backports.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Package: dh-nodejs Pin: release n=bullseye-backports Pin-Priority: 801recipes-bsp/u-boot/files/ftpm-stmm.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### Enable OPTEE, fTPM and StMM CONFIG_TEE=y CONFIG_OPTEE=yrecipes-bsp/u-boot/files/no-grub-workaround.cfg +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# ### Disable grub workaround # CONFIG_EFI_GRUB_ARM32_WORKAROUND is not setrecipes-bsp/u-boot/files/qemu-extra.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### QEMU extra config CONFIG_MMC=y CONFIG_SUPPORT_EMMC_RPMB=yrecipes-bsp/u-boot/files/secure-boot.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### Secure boot config # CONFIG_BOOTSTD_DEFAULTS is not set # CONFIG_BOOTMETH_CROS is not setrecipes-bsp/u-boot/files/ti-extra.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### FTPM + RPMB + StandaloneMM setup CONFIG_OPTEE_SERVICE_DISCOVERY=y CONFIG_TPM=yrecipes-core/customizations/files/99-silent-printk.conf +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# kernel.printk = 3 4 1 3recipes-core/customizations/files/99-watchdog.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Manager] RuntimeWatchdogSec=60s ShutdownWatchdogSec=60srecipes-core/customizations/files/ssh-permit-root.conf +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# PermitRootLogin yesrecipes-core/home-fs/files/home.mount +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Unit] Description=Mount /home partition Before=local-fs.targetrecipes-core/home-fs/files/postinst +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -erecipes-core/immutable-rootfs/files/95-disable-package-updates.preset +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# disable apt-daily.timer disable apt-daily-upgrade.timer disable dpkg-db-backup.timerrecipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# L /var/lib/dpkg - - - - ${IMMUTABLE_DATA_DIR}/var/lib/dpkg d /var/log/audit 0700 root adm - d /var/lib/apt 0755 root root -recipes-core/immutable-rootfs/files/postinst +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -erecipes-core/journald-config/files/persistent-journal.conf +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# [Journal] Storage=persistentrecipes-core/kernel-panic/files/sysrq-panic.service +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Unit] Description=sysrq panicrecipes-core/ltp/files/debian/control.tmpl +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Source: ltp-full Section: embedded Priority: optionalrecipes-core/ltp/files/debian/rules +3
-0@@ -1,4 +1,7 @@ #!/usr/bin/make -f +# +# SPDX-License-Identifier: MIT +# export DEB_CFLAGS_MAINT_APPEND = -Wall -Wno-format-security export DEB_BUILD_MAINT_OPTIONS=hardening=-branchrecipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# L /home - - - - /var/home C /var/home - - - - ${IMMUTABLE_DATA_DIR}/homerecipes-core/security-customizations/files/postinst +2
-0@@ -3,6 +3,8 @@ # CIP Security, generic profile # Security Package configurations # +# SPDX-License-Identifier: MIT +# set -erecipes-core/security-customizations/files/ssh-pam-remote.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # Enable PAM configuration for Remote Session ChallengeResponseAuthentication yes KbdInteractiveAuthentication yesrecipes-core/security-customizations/files/ssh-remote-session-term.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # CR2.6: Remote session termination # Terminate remote session after inactive time periodrecipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# SWUPDATE_SURICATTA_ARGS="--server lua -u ${WFX_URL} -i $(cat /etc/machine-id)"recipes-core/swupdate-config/files/hwrevision.tmpl +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# cip-${MACHINE} ${MACHINE_HW_VERSION}recipes-core/swupdate-config/files/swupdate.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# globals : { bootloader = "ebg";recipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efibootguard.ini +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [image] chainhandler=rawrecipes-core/tmp-fs/files/postinst +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -erecipes-devtools/swupdate-signer/files/sign-swu-cms +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# in_file=$1 out_file=$2 inkey="/usr/share/swupdate-signing/swupdate-sign.key"recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.tmpl +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# PARTITIONS="${CRYPT_PARTITIONS}" CREATE_FILE_SYSTEM_CMD="${CRYPT_CREATE_FILE_SYSTEM_CMD}" SETUP_TIMEOUT="${CRYPT_SETUP_TIMEOUT}"recipes-initramfs/initramfs-crypt-hook/files/pwquality.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # we don't have a dictionary in the initramfs # this solves the error "Password generation failed - required entropy too low for settings" dictcheck = 0recipes-initramfs/initramfs-factory-reset-hook/files/factory-reset-script.tmpl +2
-0@@ -7,6 +7,8 @@ # Authors: # Quirin Gylstorff <[email protected]> # +# SPDX-License-Identifier: MIT +# . /usr/share/factory-reset/reset-env . /scripts/cip-initramfs-functionsrecipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl +3
-0@@ -1,3 +1,6 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# INITRAMFS_FACTORY_RESET_DEVICES="${INITRAMFS_FACTORY_RESET_DEVICES}" INITRAMFS_FACTORY_RESET_LUKS_FORMAT_TYPE="${INITRAMFS_FACTORY_RESET_LUKS_FORMAT_TYPE}"recipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl +2
-0@@ -7,6 +7,8 @@ # Jan Kiszka <[email protected]> # Quirin Gylstorff <[email protected]> # +# SPDX-License-Identifier: MIT +# ovl_storage_path="${INITRAMFS_OVERLAY_STORAGE_PATH}" ovl_lower_dirs="${INITRAMFS_OVERLAY_PATHS}"recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script +2
-0@@ -7,6 +7,8 @@ # Authors: # Clara Kowalsky <[email protected]> # +# SPDX-License-Identifier: MIT +# partition_fstype="$1" ovl_partition_device="$2"recipes-kernel/linux/files/no-module-signing.cfg +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# # CONFIG_SECURITY_LOCKDOWN_LSM is not set # CONFIG_MODULE_SIG is not setrecipes-kernel/linux/files/no-tpm-hwrng.cfg +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# # see https://lore.kernel.org/lkml/[email protected]/ # CONFIG_HW_RANDOM_TPM is not setrecipes-kernel/linux/files/preempt-rt.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # >= 5.10 CONFIG_EXPERT=y CONFIG_PREEMPT_RT=yrecipes-security/fail2ban-config/files/systemd-defaults.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [DEFAULT] syslog_backend = systemdscripts/deploy-cip-core.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/generate-sb-db-from-existing-certificate.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/generate_secure_boot_keys.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/start-efishell.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/submit_lava.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# # Copyright (C) 2024, Renesas Electronics Europe GmbH # Chris Paterson <[email protected]> # Sai Ashrith <[email protected]>scripts/update-linux-cip.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# REPO_ROOT=$(git rev-parse --show-toplevel) pushd "${REPO_ROOT}"/recipes-kernel/linux >/dev/null || exit 1scripts/update-ltp.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# REPO_ROOT=$(git rev-parse --show-toplevel) pushd "${REPO_ROOT}"/recipes-core/ltp > /dev/null || exittests/templates/IEC_template.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# IEC layer testing timeouts:tests/templates/secureboot_corrupt_rootfs_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install -y fdisk" - "rootfs_start_sector=$(fdisk -l -o Name,Start cip-core-image-security-cip-core-#distribution#-#architecture#.wic | awk -v name=systema '$0 ~ name {print $2}')"tests/templates/secureboot_negative_test.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# secure boot testing timeouts:tests/templates/secureboot_template.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# secure boot testing timeouts:tests/templates/secureboot_unsigned_bootloader_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install --yes guestfish sbsigntool" - "guestfish add cip-core-image-security-cip-core-#distribution#-#architecture#.wic : run : mount /dev/sda1 / : copy-out /EFI/BOOT/bootx64.efi ."tests/templates/secureboot_unsigned_kernel_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install --yes guestfish sbsigntool" - "guestfish add cip-core-image-security-cip-core-#distribution#-#architecture#.wic : run : mount /dev/sda2 / : copy-out /linux.efi ."tests/templates/swupdate-test-action-M-COM.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # TEST BLOCK 1 # Fail the job if software update application failed - test:tests/templates/swupdate_corrupt_swu_artifact_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - cpio -ivd --directory=/root/swu < /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swutests/templates/swupdate_corrupt_swu_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - dd if=/dev/zero of=/root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu bs=1M count=5tests/templates/swupdate_negative_test.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# software update testing timeouts:tests/templates/swupdate_reboot_without_confirm.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # qemu-swtpm.sock will be gone after soft reboot. # So the swtpm socket need to be started again for proper reboot # To start the swtpm daemon, first the existing one should be killedtests/templates/swupdate_same_uuid_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - cpio -ivd --directory=/root/swu < /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swutests/templates/swupdate_template.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# software update testing timeouts:wic/ebg-signed-sysparts.inc +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # default partition layout EFI Boot Guard usage, signed version # EFI partition containing efibootguard bootloader binarywic/ebg-sysparts.inc +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # default partition layout EFI Boot Guard usage # EFI partition containing efibootguard bootloader binarywic/hihope-rzg2m-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: RZ/G2M image with EFI Boot Guard and SWUpdate # long-description: Disk image for HiHope RZ/G2M board with EFI Boot Guard and SWUpdatewic/qemu-arm64-efibootguard-secureboot.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# include ebg-signed-sysparts.inc part --source rawcopy --sourceparams "file=${IMAGE_FULLNAME}.verity" --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_A}" --part-type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 --part-name systemawic/qemu-arm64-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: arm64 with EFI Boot Guard and SWUpdate # long-description: Disk image for arm64 machines with EFI Boot Guard and SWUpdatewic/qemu-riscv64-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: riscv64 with EFI Boot Guard and SWUpdate # long-description: Disk image for riscv64 machines with EFI Boot Guard and SWUpdatewic/x86-uefi-efibootguard-secureboot.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# include ebg-signed-sysparts.inc part --source rawcopy --sourceparams "file=${IMAGE_FULLNAME}.verity" --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_A}" --part-type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 --part-name systemawic/x86-uefi-efibootguard.wks.in +3
-1@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: x86 with EFI Boot Guard and SWUpdate # long-description: Disk image for x86 machines with EFI Boot Guard and SWUpdate ---base-commit:
e3158569eee297f1837a6d3fd7e0f1a0534c2b8b
change-id: 20260316-license-c5fcde3618d2
Quoted 1 line
Best regards,
Thanks, applied. Will follow up with fixing two more spots so that we are only left with files that cannot receive headers.
Jan
Signature · 2 lines
Siemens AG, Foundational Technologies Linux Expert Center
[email protected]
AppliedThanks Jan.
Kamlesh,
Now all patches got merged, could you please proceed to complete best practices badge submission and clarify with David procedure for getting CIP project listed in the OpenSSF best practices portal?
Thanks & Regards,
Dinesh Kumar
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Tuesday, March 24, 2026 8:10 PM
To: Kamlesh Gurudasani <[email protected]>; dinesh kumar(TSIP DITC_DIT-OST) <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH isar-cip-core v2] *: Add SPDX-License-Identifier MIT header
Quoted 969 lines · Kamlesh Gurudasani
Add missing license headers to configuration, template, script, and wic partition layout files to make licensing consistent across the repository.
Command Used:
git ls-files | xargs grep -rL SPDX-License-IdentifierSigned-off-by Kamlesh Gurudasani <[email protected]>---
Changes in v2:
- added license to remaining files
- Link to v1:
https://lore.kernel.org/r/[email protected]--- conf/distro/debian-bullseye-backports.list | 3 +++ conf/distro/debian-buster-backports.list | 3 +++ conf/distro/preferences.ovmf-snakeoil.conf | 3 +++ conf/distro/preferences.swupdate-bullseye-backports.conf | 3 +++ recipes-bsp/u-boot/files/ftpm-stmm.cfg | 3 +++ recipes-bsp/u-boot/files/no-grub-workaround.cfg | 3 +++ recipes-bsp/u-boot/files/qemu-extra.cfg | 3 +++ recipes-bsp/u-boot/files/secure-boot.cfg | 3 +++ recipes-bsp/u-boot/files/ti-extra.cfg | 3 +++ recipes-core/customizations/files/99-silent-printk.conf | 3 +++ recipes-core/customizations/files/99-watchdog.conf | 3 +++ recipes-core/customizations/files/ssh-permit-root.conf | 3 +++ recipes-core/home-fs/files/home.mount | 3 +++ recipes-core/home-fs/files/postinst | 3 +++ recipes-core/immutable-rootfs/files/95-disable-package-updates.preset | 3 +++ recipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl | 3 +++ recipes-core/immutable-rootfs/files/postinst | 3 +++ recipes-core/journald-config/files/persistent-journal.conf | 3 +++ recipes-core/kernel-panic/files/sysrq-panic.service | 3 +++ recipes-core/ltp/files/debian/control.tmpl | 3 +++ recipes-core/ltp/files/debian/rules | 3 +++ recipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl | 3 +++ recipes-core/security-customizations/files/postinst | 2 ++ recipes-core/security-customizations/files/ssh-pam-remote.conf | 3 +++ recipes-core/security-customizations/files/ssh-remote-session-term.conf | 3 +++ recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl | 3 +++ recipes-core/swupdate-config/files/hwrevision.tmpl | 3 +++ recipes-core/swupdate-config/files/swupdate.cfg | 3 +++ recipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efibootguard.ini | 3 +++ recipes-core/tmp-fs/files/postinst | 3 +++ recipes-devtools/swupdate-signer/files/sign-swu-cms | 3 +++ recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.tmpl | 3 +++ recipes-initramfs/initramfs-crypt-hook/files/pwquality.conf | 3 +++ recipes-initramfs/initramfs-factory-reset-hook/files/factory-reset-script.tmpl | 2 ++ recipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl | 3 +++ recipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl | 2 ++ recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script | 2 ++ recipes-kernel/linux/files/no-module-signing.cfg | 3 +++ recipes-kernel/linux/files/no-tpm-hwrng.cfg | 3 +++ recipes-kernel/linux/files/preempt-rt.cfg | 3 +++ recipes-security/fail2ban-config/files/systemd-defaults.conf | 3 +++ scripts/deploy-cip-core.sh | 3 +++ scripts/generate-sb-db-from-existing-certificate.sh | 3 +++ scripts/generate_secure_boot_keys.sh | 3 +++ scripts/start-efishell.sh | 3 +++ scripts/submit_lava.sh | 3 +++ scripts/update-linux-cip.sh | 3 +++ scripts/update-ltp.sh | 3 +++ tests/templates/IEC_template.yml | 3 +++ tests/templates/secureboot_corrupt_rootfs_steps.yml | 3 +++ tests/templates/secureboot_negative_test.yml | 3 +++ tests/templates/secureboot_template.yml | 3 +++ tests/templates/secureboot_unsigned_bootloader_steps.yml | 3 +++ tests/templates/secureboot_unsigned_kernel_steps.yml | 3 +++ tests/templates/swupdate-test-action-M-COM.yml | 3 +++ tests/templates/swupdate_corrupt_swu_artifact_steps.yml | 3 +++ tests/templates/swupdate_corrupt_swu_steps.yml | 3 +++ tests/templates/swupdate_negative_test.yml | 3 +++ tests/templates/swupdate_reboot_without_confirm.yml | 3 +++ tests/templates/swupdate_same_uuid_steps.yml | 3 +++ tests/templates/swupdate_template.yml | 3 +++ wic/ebg-signed-sysparts.inc | 3 +++ wic/ebg-sysparts.inc | 3 +++ wic/hihope-rzg2m-efibootguard.wks.in | 3 +++ wic/qemu-arm64-efibootguard-secureboot.wks.in | 3 +++ wic/qemu-arm64-efibootguard.wks.in | 3 +++ wic/qemu-riscv64-efibootguard.wks.in | 3 +++ wic/x86-uefi-efibootguard-secureboot.wks.in | 3 +++ wic/x86-uefi-efibootguard.wks.in | 3 +++ 69 files changed, 203 insertions(+)conf/distro/debian-bullseye-backports.list +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# deb http://archive.debian.org/debian bullseye-backports main contribnon-free diff --git a/conf/distro/debian-buster-backports.list b/conf/distro/debian-buster-backports.list
index 7134a35..842019e 100644conf/distro/debian-buster-backports.list +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# deb http://archive.debian.org/debian buster-backports main contribnon-free diff --git
a/conf/distro/preferences.ovmf-snakeoil.confb/conf/distro/preferences.ovmf-snakeoil.conf
index b51d1d4..25b7da4 100644conf/distro/preferences.ovmf-snakeoil.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Package: ovmf Pin: release n=buster-backports Pin-Priority: 801conf/distro/preferences.swupdate-bullseye-backports.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Package: dh-nodejs Pin: release n=bullseye-backports Pin-Priority: 801recipes-bsp/u-boot/files/ftpm-stmm.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### Enable OPTEE, fTPM and StMM CONFIG_TEE=y CONFIG_OPTEE=yrecipes-bsp/u-boot/files/no-grub-workaround.cfg +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# ### Disable grub workaround # CONFIG_EFI_GRUB_ARM32_WORKAROUND is not set diff --gita/recipes-bsp/u-boot/files/qemu-extra.cfg
b/recipes-bsp/u-boot/files/qemu-extra.cfg
index e643db7..5380ad8 100644recipes-bsp/u-boot/files/qemu-extra.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### QEMU extra config CONFIG_MMC=y CONFIG_SUPPORT_EMMC_RPMB=yrecipes-bsp/u-boot/files/secure-boot.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### Secure boot config # CONFIG_BOOTSTD_DEFAULTS is not set # CONFIG_BOOTMETH_CROS is not setrecipes-bsp/u-boot/files/ti-extra.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### FTPM + RPMB + StandaloneMM setup CONFIG_OPTEE_SERVICE_DISCOVERY=y CONFIG_TPM=yrecipes-core/customizations/files/99-silent-printk.conf +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# kernel.printk = 3 4 1 3recipes-core/customizations/files/99-watchdog.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Manager] RuntimeWatchdogSec=60s ShutdownWatchdogSec=60srecipes-core/customizations/files/ssh-permit-root.conf +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# PermitRootLogin yesrecipes-core/home-fs/files/home.mount +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Unit] Description=Mount /home partition Before=local-fs.targetrecipes-core/home-fs/files/postinst +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -e(quoted diff) +0
-0a/recipes-core/immutable-rootfs/files/95-disable-package-updates.prese t b/recipes-core/immutable-rootfs/files/95-disable-package-updates.prese t
index 7e6e9ef..b3b52ce 100644
---
a/recipes-core/immutable-rootfs/files/95-disable-package-updates.prese t
+++ b/recipes-core/immutable-rootfs/files/95-disable-package-updates.p +++ resetrecipes-core/immutable-rootfs/files/95-disable-package-updates.preset +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# disable apt-daily.timer disable apt-daily-upgrade.timer disable dpkg-db-backup.timer(quoted diff) +0
-0a/recipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl b/recipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl index e6d25d2..4cdfc6f 100644
---
a/recipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl +++ b/recipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tm +++ plrecipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# L /var/lib/dpkg - - - - ${IMMUTABLE_DATA_DIR}/var/lib/dpkg d /var/log/audit 0700 root adm - d /var/lib/apt 0755 root root -recipes-core/immutable-rootfs/files/postinst +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -e(quoted diff) +0
-0
a/recipes-core/journald-config/files/persistent-journal.confb/recipes-core/journald-config/files/persistent-journal.confindex 21dfde0..3e3419f 100644recipes-core/journald-config/files/persistent-journal.conf +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# [Journal] Storage=persistentrecipes-core/kernel-panic/files/sysrq-panic.service +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Unit] Description=sysrq panicrecipes-core/ltp/files/debian/control.tmpl +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Source: ltp-full Section: embedded Priority: optionalrecipes-core/ltp/files/debian/rules +3
-0@@ -1,4 +1,7 @@ #!/usr/bin/make -f +# +# SPDX-License-Identifier: MIT +# export DEB_CFLAGS_MAINT_APPEND = -Wall -Wno-format-security exportDEB_BUILD_MAINT_OPTIONS=hardening=-branch
(quoted diff) +0
-0a/recipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl b/recipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl index 92e4a30..1821f92 100644
---
a/recipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl +++ b/recipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tm +++ plrecipes-core/ltp/files/debian/rules +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# L /home - - - - /var/home C /var/home - - - - ${IMMUTABLE_DATA_DIR}/home diff --gita/recipes-core/security-customizations/files/postinst b/recipes-core/security-customizations/files/postinst index f8ebf9e..788e225 100755
recipes-core/security-customizations/files/postinst +2
-0@@ -3,6 +3,8 @@ # CIP Security, generic profile # Security Package configurations # +# SPDX-License-Identifier: MIT +# set -e(quoted diff) +0
-0
a/recipes-core/security-customizations/files/ssh-pam-remote.confb/recipes-core/security-customizations/files/ssh-pam-remote.confindex d460b0c..ea120b2 100644recipes-core/security-customizations/files/ssh-pam-remote.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # Enable PAM configuration for Remote SessionChallengeResponseAuthentication yes KbdInteractiveAuthentication yes
(quoted diff) +0
-0
a/recipes-core/security-customizations/files/ssh-remote-session-term.confb/recipes-core/security-customizations/files/ssh-remote-session-term.conf
index d11b92e..171ea9b 100644
---a/recipes-core/security-customizations/files/ssh-remote-session-term.conf
+++ b/recipes-core/security-customizations/files/ssh-remote-session-te +++ rm.confrecipes-core/security-customizations/files/ssh-pam-remote.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # CR2.6: Remote session termination # Terminate remote session after inactive time period(quoted diff) +0
-0a/recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl b/recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl index 744b426..f750f3d 100644
recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# SWUPDATE_SURICATTA_ARGS="--server lua -u ${WFX_URL} -i $(cat /etc/machine-id)"recipes-core/swupdate-config/files/hwrevision.tmpl +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# cip-${MACHINE} ${MACHINE_HW_VERSION}recipes-core/swupdate-config/files/swupdate.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# globals : { bootloader = "ebg";(quoted diff) +0
-0a/recipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efib ootguard.ini b/recipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efib ootguard.ini
index 58271da..8f93cc9 100644
---
a/recipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efib ootguard.ini
+++ b/recipes-core/swupdate-handler-roundrobin/files/swupdate.handler. +++ efibootguard.inirecipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efibootguard.ini +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [image] chainhandler=rawrecipes-core/tmp-fs/files/postinst +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -erecipes-devtools/swupdate-signer/files/sign-swu-cms +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# in_file=$1 out_file=$2 inkey="/usr/share/swupdate-signing/swupdate-sign.key"(quoted diff) +0
-0a/recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.t mpl b/recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.t mpl
index bb93361..452714d 100644
---
a/recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.t mpl
+++ b/recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.e +++ nv.tmplrecipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.tmpl +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# PARTITIONS="${CRYPT_PARTITIONS}" CREATE_FILE_SYSTEM_CMD="${CRYPT_CREATE_FILE_SYSTEM_CMD}" SETUP_TIMEOUT="${CRYPT_SETUP_TIMEOUT}"(quoted diff) +0
-0
a/recipes-initramfs/initramfs-crypt-hook/files/pwquality.confb/recipes-initramfs/initramfs-crypt-hook/files/pwquality.confindex d4c8981..8e087f2 100644recipes-initramfs/initramfs-crypt-hook/files/pwquality.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # we don't have a dictionary in the initramfs # this solves theerror "Password generation failed - required entropy too low for settings"
dictcheck = 0(quoted diff) +0
-0a/recipes-initramfs/initramfs-factory-reset-hook/files/factory-reset-s cript.tmpl b/recipes-initramfs/initramfs-factory-reset-hook/files/factory-reset-s cript.tmpl
index f0ad40c..94b5f8b 100644
---
a/recipes-initramfs/initramfs-factory-reset-hook/files/factory-reset-s cript.tmpl
+++ b/recipes-initramfs/initramfs-factory-reset-hook/files/factory-res +++ et-script.tmplrecipes-initramfs/initramfs-crypt-hook/files/pwquality.conf +2
-0@@ -7,6 +7,8 @@ # Authors: # Quirin Gylstorff <[email protected]> # +# SPDX-License-Identifier: MIT +# . /usr/share/factory-reset/reset-env . /scripts/cip-initramfs-functions(quoted diff) +0
-0a/recipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl b/recipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl index d3e18a2..07e2376 100644
---
a/recipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl +++ b/recipes-initramfs/initramfs-factory-reset-hook/files/reset-env.t +++ mplrecipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl +3
-0@@ -1,3 +1,6 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# INITRAMFS_FACTORY_RESET_DEVICES="${INITRAMFS_FACTORY_RESET_DEVICES}" INITRAMFS_FACTORY_RESET_LUKS_FORMAT_TYPE="${INITRAMFS_FACTORY_RESET_LUKS_FORMAT_TYPE}"(quoted diff) +0
-0a/recipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl b/recipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl index bce588c..8a697f8 100644
recipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl +0
-0@@ -7,6 +7,8 @@ # Jan Kiszka <[email protected]> # Quirin Gylstorffrecipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl +2
-0+# SPDX-License-Identifier: MIT +# ovl_storage_path="${INITRAMFS_OVERLAY_STORAGE_PATH}" ovl_lower_dirs="${INITRAMFS_OVERLAY_PATHS}"(quoted diff) +0
-0a/recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_acti on.script b/recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_acti on.script
index 0cd084b..11ca731 100644
---
a/recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_acti on.script
+++ b/recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_ +++ action.scriptrecipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script +2
-0@@ -7,6 +7,8 @@ # Authors: # Clara Kowalsky <[email protected]> # +# SPDX-License-Identifier: MIT +# partition_fstype="$1" ovl_partition_device="$2"recipes-kernel/linux/files/no-module-signing.cfg +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# # CONFIG_SECURITY_LOCKDOWN_LSM is not set # CONFIG_MODULE_SIG is notset diff --git a/recipes-kernel/linux/files/no-tpm-hwrng.cfg b/recipes-kernel/linux/files/no-tpm-hwrng.cfg index ab46cd8..08e98ff 100644
recipes-kernel/linux/files/no-tpm-hwrng.cfg +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# # seehttps://lore.kernel.org/lkml/bbc41534-a2d9-42dc-ac8a-ff8a0b4fd41f@siem
ens.com/
#CONFIG_HW_RANDOM_TPMis not setrecipes-kernel/linux/files/preempt-rt.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # >= 5.10 CONFIG_EXPERT=y CONFIG_PREEMPT_RT=y(quoted diff) +0
-0
a/recipes-security/fail2ban-config/files/systemd-defaults.confb/recipes-security/fail2ban-config/files/systemd-defaults.confindex 16e0d5e..32a8e48 100644recipes-security/fail2ban-config/files/systemd-defaults.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [DEFAULT] syslog_backend = systemdscripts/deploy-cip-core.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/generate-sb-db-from-existing-certificate.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/generate_secure_boot_keys.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/start-efishell.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/submit_lava.sh index renamed from scripts/submit_lava.sh +0
-0b3180a1..a4d20ec 100755
scripts/submit_lava.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# # Copyright (C) 2024, Renesas Electronics Europe GmbH # ChrisPaterson <[email protected]> # Sai Ashrith <[email protected]> diff --git
a/scripts/update-linux-cip.shb/scripts/update-linux-cip.shindex 5fbfa57..df306b2 100755scripts/update-linux-cip.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# REPO_ROOT=$(git rev-parse --show-toplevel) pushd"${REPO_ROOT}"/recipes-kernel/linux >/dev/null || exit 1
scripts/update-ltp.sh index renamed from scripts/update-ltp.sh +0
-0dc8b947..321cc3c 100755
scripts/update-ltp.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# REPO_ROOT=$(git rev-parse --show-toplevel) pushd"${REPO_ROOT}"/recipes-core/ltp >
/dev/null|| exit diff --gita/tests/templates/IEC_template.ymlb/tests/templates/IEC_template.ymlindex f8558cd..148f07e 100644tests/templates/IEC_template.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# IEC layer testing timeouts:tests/templates/secureboot_corrupt_rootfs_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install -y fdisk" - "rootfs_start_sector=$(fdisk -l -o Name,Start cip-core-image-security-cip-core-#distribution#-#architecture#.wic | awk -v name=systema '$0 ~ name {print $2}')"tests/templates/secureboot_negative_test.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# secure boot testing timeouts:tests/templates/secureboot_template.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# secure boot testing timeouts:tests/templates/secureboot_unsigned_bootloader_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install --yes guestfish sbsigntool" - "guestfish add cip-core-image-security-cip-core-#distribution#-#architecture#.wic : run : mount /dev/sda1 / : copy-out /EFI/BOOT/bootx64.efi ."tests/templates/secureboot_unsigned_kernel_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install --yes guestfish sbsigntool" - "guestfish add cip-core-image-security-cip-core-#distribution#-#architecture#.wic : run : mount /dev/sda2 / : copy-out /linux.efi ."tests/templates/swupdate-test-action-M-COM.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # TEST BLOCK 1 # Fail the job if software update application failed - test:tests/templates/swupdate_corrupt_swu_artifact_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - cpio -ivd --directory=/root/swu </root/cip-core-image-security-cip-core-#distribution#-#architecture#.s wu diff --git
a/tests/templates/swupdate_corrupt_swu_steps.ymlb/tests/templates/swupdate_corrupt_swu_steps.yml
index 74c9217..3cdb793 100644tests/templates/swupdate_corrupt_swu_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - dd if=/dev/zeroof=/root/cip-core-image-security-cip-core-#distribution#-#architecture #.swu bs=1M count=5 diff --git
a/tests/templates/swupdate_negative_test.ymlb/tests/templates/swupdate_negative_test.yml
index bb79b07..250eaa8 100644tests/templates/swupdate_negative_test.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# software update testing timeouts:tests/templates/swupdate_reboot_without_confirm.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # qemu-swtpm.sock will be gone after soft reboot. # So the swtpm socket need to be started again for proper reboot #To start the swtpm daemon, first the existing one should be killed
tests/templates/swupdate_same_uuid_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - cpio -ivd --directory=/root/swu </root/cip-core-image-security-cip-core-#distribution#-#architecture#.s wu diff --git
a/tests/templates/swupdate_template.ymlb/tests/templates/swupdate_template.yml
index e1f71a9..9a3366b 100644tests/templates/swupdate_template.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# software update testing timeouts:wic/ebg-signed-sysparts.inc +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # default partition layout EFI Boot Guard usage, signed version # EFI partition containing efibootguard bootloader binary diff --gita/wic/ebg-sysparts.inc b/wic/ebg-sysparts.inc index 0290024..b7f1afa 100644
wic/ebg-sysparts.inc +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # default partition layout EFI Boot Guard usage # EFI partition containing efibootguard bootloader binary diff --gita/wic/hihope-rzg2m-efibootguard.wks.in
b/wic/hihope-rzg2m-efibootguard.wks.in
index fdbad14..99c8d10 100644wic/hihope-rzg2m-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: RZ/G2M image with EFI Boot Guard and SWUpdate #long-description: Disk image for HiHope RZ/G2M board with EFI Boot Guard and SWUpdate
wic/qemu-arm64-efibootguard-secureboot.wks.in +3
-2@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# include ebg-signed-sysparts.inc part --source rawcopy --sourceparams "file=${IMAGE_FULLNAME}.verity" --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_A}" --part-type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 --part-name systemawic/qemu-arm64-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: arm64 with EFI Boot Guard and SWUpdate #long-description: Disk image for arm64 machines with EFI Boot Guard and SWUpdate
wic/qemu-riscv64-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: riscv64 with EFI Boot Guard and SWUpdate #long-description: Disk image for riscv64 machines with EFI Boot Guard and SWUpdate
wic/x86-uefi-efibootguard-secureboot.wks.in +3
-2@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# include ebg-signed-sysparts.inc part --source rawcopy --sourceparams "file=${IMAGE_FULLNAME}.verity" --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_A}" --part-type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 --part-name systemawic/x86-uefi-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: x86 with EFI Boot Guard and SWUpdate #long-description: Disk image for x86 machines with EFI Boot Guard and SWUpdate
Quoted 5 lines
---
base-commit:e3158569eee297f1837a6d3fd7e0f1a0534c2b8b
change-id: 20260316-license-c5fcde3618d2Best regards,
Thanks, applied. Will follow up with fixing two more spots so that we are only left with files that cannot receive headers.
Jan
--
Siemens AG, Foundational Technologies
Linux Expert Center
Quoted 848 lines · Jan Kiszka
Quoted 847 lines · Kamlesh Gurudasani
Add missing license headers to configuration, template, script, and wic partition layout files to make licensing consistent across the repository.
Command Used:
git ls-files | xargs grep -rL SPDX-License-IdentifierSigned-off-by Kamlesh Gurudasani <[email protected]>---
Changes in v2:
- added license to remaining files
- Link to v1: https://lore.kernel.org/r/[email protected]--- conf/distro/debian-bullseye-backports.list | 3 +++ conf/distro/debian-buster-backports.list | 3 +++ conf/distro/preferences.ovmf-snakeoil.conf | 3 +++ conf/distro/preferences.swupdate-bullseye-backports.conf | 3 +++ recipes-bsp/u-boot/files/ftpm-stmm.cfg | 3 +++ recipes-bsp/u-boot/files/no-grub-workaround.cfg | 3 +++ recipes-bsp/u-boot/files/qemu-extra.cfg | 3 +++ recipes-bsp/u-boot/files/secure-boot.cfg | 3 +++ recipes-bsp/u-boot/files/ti-extra.cfg | 3 +++ recipes-core/customizations/files/99-silent-printk.conf | 3 +++ recipes-core/customizations/files/99-watchdog.conf | 3 +++ recipes-core/customizations/files/ssh-permit-root.conf | 3 +++ recipes-core/home-fs/files/home.mount | 3 +++ recipes-core/home-fs/files/postinst | 3 +++ recipes-core/immutable-rootfs/files/95-disable-package-updates.preset | 3 +++ recipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl | 3 +++ recipes-core/immutable-rootfs/files/postinst | 3 +++ recipes-core/journald-config/files/persistent-journal.conf | 3 +++ recipes-core/kernel-panic/files/sysrq-panic.service | 3 +++ recipes-core/ltp/files/debian/control.tmpl | 3 +++ recipes-core/ltp/files/debian/rules | 3 +++ recipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl | 3 +++ recipes-core/security-customizations/files/postinst | 2 ++ recipes-core/security-customizations/files/ssh-pam-remote.conf | 3 +++ recipes-core/security-customizations/files/ssh-remote-session-term.conf | 3 +++ recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl | 3 +++ recipes-core/swupdate-config/files/hwrevision.tmpl | 3 +++ recipes-core/swupdate-config/files/swupdate.cfg | 3 +++ recipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efibootguard.ini | 3 +++ recipes-core/tmp-fs/files/postinst | 3 +++ recipes-devtools/swupdate-signer/files/sign-swu-cms | 3 +++ recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.tmpl | 3 +++ recipes-initramfs/initramfs-crypt-hook/files/pwquality.conf | 3 +++ recipes-initramfs/initramfs-factory-reset-hook/files/factory-reset-script.tmpl | 2 ++ recipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl | 3 +++ recipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl | 2 ++ recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script | 2 ++ recipes-kernel/linux/files/no-module-signing.cfg | 3 +++ recipes-kernel/linux/files/no-tpm-hwrng.cfg | 3 +++ recipes-kernel/linux/files/preempt-rt.cfg | 3 +++ recipes-security/fail2ban-config/files/systemd-defaults.conf | 3 +++ scripts/deploy-cip-core.sh | 3 +++ scripts/generate-sb-db-from-existing-certificate.sh | 3 +++ scripts/generate_secure_boot_keys.sh | 3 +++ scripts/start-efishell.sh | 3 +++ scripts/submit_lava.sh | 3 +++ scripts/update-linux-cip.sh | 3 +++ scripts/update-ltp.sh | 3 +++ tests/templates/IEC_template.yml | 3 +++ tests/templates/secureboot_corrupt_rootfs_steps.yml | 3 +++ tests/templates/secureboot_negative_test.yml | 3 +++ tests/templates/secureboot_template.yml | 3 +++ tests/templates/secureboot_unsigned_bootloader_steps.yml | 3 +++ tests/templates/secureboot_unsigned_kernel_steps.yml | 3 +++ tests/templates/swupdate-test-action-M-COM.yml | 3 +++ tests/templates/swupdate_corrupt_swu_artifact_steps.yml | 3 +++ tests/templates/swupdate_corrupt_swu_steps.yml | 3 +++ tests/templates/swupdate_negative_test.yml | 3 +++ tests/templates/swupdate_reboot_without_confirm.yml | 3 +++ tests/templates/swupdate_same_uuid_steps.yml | 3 +++ tests/templates/swupdate_template.yml | 3 +++ wic/ebg-signed-sysparts.inc | 3 +++ wic/ebg-sysparts.inc | 3 +++ wic/hihope-rzg2m-efibootguard.wks.in | 3 +++ wic/qemu-arm64-efibootguard-secureboot.wks.in | 3 +++ wic/qemu-arm64-efibootguard.wks.in | 3 +++ wic/qemu-riscv64-efibootguard.wks.in | 3 +++ wic/x86-uefi-efibootguard-secureboot.wks.in | 3 +++ wic/x86-uefi-efibootguard.wks.in | 3 +++ 69 files changed, 203 insertions(+)conf/distro/debian-bullseye-backports.list +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# deb http://archive.debian.org/debian bullseye-backports main contrib non-freeconf/distro/debian-buster-backports.list +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# deb http://archive.debian.org/debian buster-backports main contrib non-freeconf/distro/preferences.ovmf-snakeoil.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Package: ovmf Pin: release n=buster-backports Pin-Priority: 801conf/distro/preferences.swupdate-bullseye-backports.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Package: dh-nodejs Pin: release n=bullseye-backports Pin-Priority: 801recipes-bsp/u-boot/files/ftpm-stmm.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### Enable OPTEE, fTPM and StMM CONFIG_TEE=y CONFIG_OPTEE=yrecipes-bsp/u-boot/files/no-grub-workaround.cfg +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# ### Disable grub workaround # CONFIG_EFI_GRUB_ARM32_WORKAROUND is not setrecipes-bsp/u-boot/files/qemu-extra.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### QEMU extra config CONFIG_MMC=y CONFIG_SUPPORT_EMMC_RPMB=yrecipes-bsp/u-boot/files/secure-boot.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### Secure boot config # CONFIG_BOOTSTD_DEFAULTS is not set # CONFIG_BOOTMETH_CROS is not setrecipes-bsp/u-boot/files/ti-extra.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### FTPM + RPMB + StandaloneMM setup CONFIG_OPTEE_SERVICE_DISCOVERY=y CONFIG_TPM=yrecipes-core/customizations/files/99-silent-printk.conf +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# kernel.printk = 3 4 1 3recipes-core/customizations/files/99-watchdog.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Manager] RuntimeWatchdogSec=60s ShutdownWatchdogSec=60srecipes-core/customizations/files/ssh-permit-root.conf +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# PermitRootLogin yesrecipes-core/home-fs/files/home.mount +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Unit] Description=Mount /home partition Before=local-fs.targetrecipes-core/home-fs/files/postinst +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -erecipes-core/immutable-rootfs/files/95-disable-package-updates.preset +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# disable apt-daily.timer disable apt-daily-upgrade.timer disable dpkg-db-backup.timerrecipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# L /var/lib/dpkg - - - - ${IMMUTABLE_DATA_DIR}/var/lib/dpkg d /var/log/audit 0700 root adm - d /var/lib/apt 0755 root root -recipes-core/immutable-rootfs/files/postinst +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -erecipes-core/journald-config/files/persistent-journal.conf +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# [Journal] Storage=persistentrecipes-core/kernel-panic/files/sysrq-panic.service +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Unit] Description=sysrq panicrecipes-core/ltp/files/debian/control.tmpl +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Source: ltp-full Section: embedded Priority: optionalrecipes-core/ltp/files/debian/rules +3
-0@@ -1,4 +1,7 @@ #!/usr/bin/make -f +# +# SPDX-License-Identifier: MIT +# export DEB_CFLAGS_MAINT_APPEND = -Wall -Wno-format-security export DEB_BUILD_MAINT_OPTIONS=hardening=-branchrecipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# L /home - - - - /var/home C /var/home - - - - ${IMMUTABLE_DATA_DIR}/homerecipes-core/security-customizations/files/postinst +2
-0@@ -3,6 +3,8 @@ # CIP Security, generic profile # Security Package configurations # +# SPDX-License-Identifier: MIT +# set -erecipes-core/security-customizations/files/ssh-pam-remote.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # Enable PAM configuration for Remote Session ChallengeResponseAuthentication yes KbdInteractiveAuthentication yesrecipes-core/security-customizations/files/ssh-remote-session-term.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # CR2.6: Remote session termination # Terminate remote session after inactive time periodrecipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# SWUPDATE_SURICATTA_ARGS="--server lua -u ${WFX_URL} -i $(cat /etc/machine-id)"recipes-core/swupdate-config/files/hwrevision.tmpl +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# cip-${MACHINE} ${MACHINE_HW_VERSION}recipes-core/swupdate-config/files/swupdate.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# globals : { bootloader = "ebg";recipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efibootguard.ini +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [image] chainhandler=rawrecipes-core/tmp-fs/files/postinst +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -erecipes-devtools/swupdate-signer/files/sign-swu-cms +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# in_file=$1 out_file=$2 inkey="/usr/share/swupdate-signing/swupdate-sign.key"recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.tmpl +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# PARTITIONS="${CRYPT_PARTITIONS}" CREATE_FILE_SYSTEM_CMD="${CRYPT_CREATE_FILE_SYSTEM_CMD}" SETUP_TIMEOUT="${CRYPT_SETUP_TIMEOUT}"recipes-initramfs/initramfs-crypt-hook/files/pwquality.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # we don't have a dictionary in the initramfs # this solves the error "Password generation failed - required entropy too low for settings" dictcheck = 0recipes-initramfs/initramfs-factory-reset-hook/files/factory-reset-script.tmpl +2
-0@@ -7,6 +7,8 @@ # Authors: # Quirin Gylstorff <[email protected]> # +# SPDX-License-Identifier: MIT +# . /usr/share/factory-reset/reset-env . /scripts/cip-initramfs-functionsrecipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl +3
-0@@ -1,3 +1,6 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# INITRAMFS_FACTORY_RESET_DEVICES="${INITRAMFS_FACTORY_RESET_DEVICES}" INITRAMFS_FACTORY_RESET_LUKS_FORMAT_TYPE="${INITRAMFS_FACTORY_RESET_LUKS_FORMAT_TYPE}"recipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl +2
-0@@ -7,6 +7,8 @@ # Jan Kiszka <[email protected]> # Quirin Gylstorff <[email protected]> # +# SPDX-License-Identifier: MIT +# ovl_storage_path="${INITRAMFS_OVERLAY_STORAGE_PATH}" ovl_lower_dirs="${INITRAMFS_OVERLAY_PATHS}"recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script +2
-0@@ -7,6 +7,8 @@ # Authors: # Clara Kowalsky <[email protected]> # +# SPDX-License-Identifier: MIT +# partition_fstype="$1" ovl_partition_device="$2"recipes-kernel/linux/files/no-module-signing.cfg +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# # CONFIG_SECURITY_LOCKDOWN_LSM is not set # CONFIG_MODULE_SIG is not setrecipes-kernel/linux/files/no-tpm-hwrng.cfg +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# # see https://lore.kernel.org/lkml/[email protected]/ # CONFIG_HW_RANDOM_TPM is not setrecipes-kernel/linux/files/preempt-rt.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # >= 5.10 CONFIG_EXPERT=y CONFIG_PREEMPT_RT=yrecipes-security/fail2ban-config/files/systemd-defaults.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [DEFAULT] syslog_backend = systemdscripts/deploy-cip-core.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/generate-sb-db-from-existing-certificate.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/generate_secure_boot_keys.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/start-efishell.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/submit_lava.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# # Copyright (C) 2024, Renesas Electronics Europe GmbH # Chris Paterson <[email protected]> # Sai Ashrith <[email protected]>scripts/update-linux-cip.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# REPO_ROOT=$(git rev-parse --show-toplevel) pushd "${REPO_ROOT}"/recipes-kernel/linux >/dev/null || exit 1scripts/update-ltp.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# REPO_ROOT=$(git rev-parse --show-toplevel) pushd "${REPO_ROOT}"/recipes-core/ltp > /dev/null || exittests/templates/IEC_template.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# IEC layer testing timeouts:tests/templates/secureboot_corrupt_rootfs_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install -y fdisk" - "rootfs_start_sector=$(fdisk -l -o Name,Start cip-core-image-security-cip-core-#distribution#-#architecture#.wic | awk -v name=systema '$0 ~ name {print $2}')"tests/templates/secureboot_negative_test.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# secure boot testing timeouts:tests/templates/secureboot_template.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# secure boot testing timeouts:tests/templates/secureboot_unsigned_bootloader_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install --yes guestfish sbsigntool" - "guestfish add cip-core-image-security-cip-core-#distribution#-#architecture#.wic : run : mount /dev/sda1 / : copy-out /EFI/BOOT/bootx64.efi ."tests/templates/secureboot_unsigned_kernel_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install --yes guestfish sbsigntool" - "guestfish add cip-core-image-security-cip-core-#distribution#-#architecture#.wic : run : mount /dev/sda2 / : copy-out /linux.efi ."tests/templates/swupdate-test-action-M-COM.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # TEST BLOCK 1 # Fail the job if software update application failed - test:tests/templates/swupdate_corrupt_swu_artifact_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - cpio -ivd --directory=/root/swu < /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swutests/templates/swupdate_corrupt_swu_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - dd if=/dev/zero of=/root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu bs=1M count=5tests/templates/swupdate_negative_test.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# software update testing timeouts:tests/templates/swupdate_reboot_without_confirm.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # qemu-swtpm.sock will be gone after soft reboot. # So the swtpm socket need to be started again for proper reboot # To start the swtpm daemon, first the existing one should be killedtests/templates/swupdate_same_uuid_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - cpio -ivd --directory=/root/swu < /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swutests/templates/swupdate_template.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# software update testing timeouts:wic/ebg-signed-sysparts.inc +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # default partition layout EFI Boot Guard usage, signed version # EFI partition containing efibootguard bootloader binarywic/ebg-sysparts.inc +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # default partition layout EFI Boot Guard usage # EFI partition containing efibootguard bootloader binarywic/hihope-rzg2m-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: RZ/G2M image with EFI Boot Guard and SWUpdate # long-description: Disk image for HiHope RZ/G2M board with EFI Boot Guard and SWUpdatewic/qemu-arm64-efibootguard-secureboot.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# include ebg-signed-sysparts.inc part --source rawcopy --sourceparams "file=${IMAGE_FULLNAME}.verity" --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_A}" --part-type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 --part-name systemawic/qemu-arm64-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: arm64 with EFI Boot Guard and SWUpdate # long-description: Disk image for arm64 machines with EFI Boot Guard and SWUpdatewic/qemu-riscv64-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: riscv64 with EFI Boot Guard and SWUpdate # long-description: Disk image for riscv64 machines with EFI Boot Guard and SWUpdatewic/x86-uefi-efibootguard-secureboot.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# include ebg-signed-sysparts.inc part --source rawcopy --sourceparams "file=${IMAGE_FULLNAME}.verity" --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_A}" --part-type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 --part-name systemawic/x86-uefi-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: x86 with EFI Boot Guard and SWUpdate # long-description: Disk image for x86 machines with EFI Boot Guard and SWUpdate
Quoted 9 lines
Quoted 5 lines
---
base-commit:e3158569eee297f1837a6d3fd7e0f1a0534c2b8b
change-id: 20260316-license-c5fcde3618d2Best regards,
Thanks, applied. Will follow up with fixing two more spots so that we are only left with files that cannot receive headers.
Quirin spotted that modifying hwrevision.tmpl is causing our red pipeline rigth now. I've dropped that changed and force-pushed the update.
Jan
Signature · 2 lines
Siemens AG, Foundational Technologies Linux Expert Center
Quoted 853 lines · Jan Kiszka
Quoted 852 lines · Jan Kiszka
Quoted 851 lines · Kamlesh Gurudasani
Add missing license headers to configuration, template, script, and wic partition layout files to make licensing consistent across the repository.
Command Used:
git ls-files | xargs grep -rL SPDX-License-IdentifierSigned-off-by Kamlesh Gurudasani <[email protected]>---
Changes in v2:
- added license to remaining files
- Link to v1: https://lore.kernel.org/r/[email protected]--- conf/distro/debian-bullseye-backports.list | 3 +++ conf/distro/debian-buster-backports.list | 3 +++ conf/distro/preferences.ovmf-snakeoil.conf | 3 +++ conf/distro/preferences.swupdate-bullseye-backports.conf | 3 +++ recipes-bsp/u-boot/files/ftpm-stmm.cfg | 3 +++ recipes-bsp/u-boot/files/no-grub-workaround.cfg | 3 +++ recipes-bsp/u-boot/files/qemu-extra.cfg | 3 +++ recipes-bsp/u-boot/files/secure-boot.cfg | 3 +++ recipes-bsp/u-boot/files/ti-extra.cfg | 3 +++ recipes-core/customizations/files/99-silent-printk.conf | 3 +++ recipes-core/customizations/files/99-watchdog.conf | 3 +++ recipes-core/customizations/files/ssh-permit-root.conf | 3 +++ recipes-core/home-fs/files/home.mount | 3 +++ recipes-core/home-fs/files/postinst | 3 +++ recipes-core/immutable-rootfs/files/95-disable-package-updates.preset | 3 +++ recipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl | 3 +++ recipes-core/immutable-rootfs/files/postinst | 3 +++ recipes-core/journald-config/files/persistent-journal.conf | 3 +++ recipes-core/kernel-panic/files/sysrq-panic.service | 3 +++ recipes-core/ltp/files/debian/control.tmpl | 3 +++ recipes-core/ltp/files/debian/rules | 3 +++ recipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl | 3 +++ recipes-core/security-customizations/files/postinst | 2 ++ recipes-core/security-customizations/files/ssh-pam-remote.conf | 3 +++ recipes-core/security-customizations/files/ssh-remote-session-term.conf | 3 +++ recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl | 3 +++ recipes-core/swupdate-config/files/hwrevision.tmpl | 3 +++ recipes-core/swupdate-config/files/swupdate.cfg | 3 +++ recipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efibootguard.ini | 3 +++ recipes-core/tmp-fs/files/postinst | 3 +++ recipes-devtools/swupdate-signer/files/sign-swu-cms | 3 +++ recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.tmpl | 3 +++ recipes-initramfs/initramfs-crypt-hook/files/pwquality.conf | 3 +++ recipes-initramfs/initramfs-factory-reset-hook/files/factory-reset-script.tmpl | 2 ++ recipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl | 3 +++ recipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl | 2 ++ recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script | 2 ++ recipes-kernel/linux/files/no-module-signing.cfg | 3 +++ recipes-kernel/linux/files/no-tpm-hwrng.cfg | 3 +++ recipes-kernel/linux/files/preempt-rt.cfg | 3 +++ recipes-security/fail2ban-config/files/systemd-defaults.conf | 3 +++ scripts/deploy-cip-core.sh | 3 +++ scripts/generate-sb-db-from-existing-certificate.sh | 3 +++ scripts/generate_secure_boot_keys.sh | 3 +++ scripts/start-efishell.sh | 3 +++ scripts/submit_lava.sh | 3 +++ scripts/update-linux-cip.sh | 3 +++ scripts/update-ltp.sh | 3 +++ tests/templates/IEC_template.yml | 3 +++ tests/templates/secureboot_corrupt_rootfs_steps.yml | 3 +++ tests/templates/secureboot_negative_test.yml | 3 +++ tests/templates/secureboot_template.yml | 3 +++ tests/templates/secureboot_unsigned_bootloader_steps.yml | 3 +++ tests/templates/secureboot_unsigned_kernel_steps.yml | 3 +++ tests/templates/swupdate-test-action-M-COM.yml | 3 +++ tests/templates/swupdate_corrupt_swu_artifact_steps.yml | 3 +++ tests/templates/swupdate_corrupt_swu_steps.yml | 3 +++ tests/templates/swupdate_negative_test.yml | 3 +++ tests/templates/swupdate_reboot_without_confirm.yml | 3 +++ tests/templates/swupdate_same_uuid_steps.yml | 3 +++ tests/templates/swupdate_template.yml | 3 +++ wic/ebg-signed-sysparts.inc | 3 +++ wic/ebg-sysparts.inc | 3 +++ wic/hihope-rzg2m-efibootguard.wks.in | 3 +++ wic/qemu-arm64-efibootguard-secureboot.wks.in | 3 +++ wic/qemu-arm64-efibootguard.wks.in | 3 +++ wic/qemu-riscv64-efibootguard.wks.in | 3 +++ wic/x86-uefi-efibootguard-secureboot.wks.in | 3 +++ wic/x86-uefi-efibootguard.wks.in | 3 +++ 69 files changed, 203 insertions(+)conf/distro/debian-bullseye-backports.list +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# deb http://archive.debian.org/debian bullseye-backports main contrib non-freeconf/distro/debian-buster-backports.list +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# deb http://archive.debian.org/debian buster-backports main contrib non-freeconf/distro/preferences.ovmf-snakeoil.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Package: ovmf Pin: release n=buster-backports Pin-Priority: 801conf/distro/preferences.swupdate-bullseye-backports.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Package: dh-nodejs Pin: release n=bullseye-backports Pin-Priority: 801recipes-bsp/u-boot/files/ftpm-stmm.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### Enable OPTEE, fTPM and StMM CONFIG_TEE=y CONFIG_OPTEE=yrecipes-bsp/u-boot/files/no-grub-workaround.cfg +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# ### Disable grub workaround # CONFIG_EFI_GRUB_ARM32_WORKAROUND is not setrecipes-bsp/u-boot/files/qemu-extra.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### QEMU extra config CONFIG_MMC=y CONFIG_SUPPORT_EMMC_RPMB=yrecipes-bsp/u-boot/files/secure-boot.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### Secure boot config # CONFIG_BOOTSTD_DEFAULTS is not set # CONFIG_BOOTMETH_CROS is not setrecipes-bsp/u-boot/files/ti-extra.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# ### FTPM + RPMB + StandaloneMM setup CONFIG_OPTEE_SERVICE_DISCOVERY=y CONFIG_TPM=yrecipes-core/customizations/files/99-silent-printk.conf +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# kernel.printk = 3 4 1 3recipes-core/customizations/files/99-watchdog.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Manager] RuntimeWatchdogSec=60s ShutdownWatchdogSec=60srecipes-core/customizations/files/ssh-permit-root.conf +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# PermitRootLogin yesrecipes-core/home-fs/files/home.mount +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Unit] Description=Mount /home partition Before=local-fs.targetrecipes-core/home-fs/files/postinst +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -erecipes-core/immutable-rootfs/files/95-disable-package-updates.preset +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# disable apt-daily.timer disable apt-daily-upgrade.timer disable dpkg-db-backup.timerrecipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# L /var/lib/dpkg - - - - ${IMMUTABLE_DATA_DIR}/var/lib/dpkg d /var/log/audit 0700 root adm - d /var/lib/apt 0755 root root -recipes-core/immutable-rootfs/files/postinst +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -erecipes-core/journald-config/files/persistent-journal.conf +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# [Journal] Storage=persistentrecipes-core/kernel-panic/files/sysrq-panic.service +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [Unit] Description=sysrq panicrecipes-core/ltp/files/debian/control.tmpl +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# Source: ltp-full Section: embedded Priority: optionalrecipes-core/ltp/files/debian/rules +3
-0@@ -1,4 +1,7 @@ #!/usr/bin/make -f +# +# SPDX-License-Identifier: MIT +# export DEB_CFLAGS_MAINT_APPEND = -Wall -Wno-format-security export DEB_BUILD_MAINT_OPTIONS=hardening=-branchrecipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# L /home - - - - /var/home C /var/home - - - - ${IMMUTABLE_DATA_DIR}/homerecipes-core/security-customizations/files/postinst +2
-0@@ -3,6 +3,8 @@ # CIP Security, generic profile # Security Package configurations # +# SPDX-License-Identifier: MIT +# set -erecipes-core/security-customizations/files/ssh-pam-remote.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # Enable PAM configuration for Remote Session ChallengeResponseAuthentication yes KbdInteractiveAuthentication yesrecipes-core/security-customizations/files/ssh-remote-session-term.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # CR2.6: Remote session termination # Terminate remote session after inactive time periodrecipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# SWUPDATE_SURICATTA_ARGS="--server lua -u ${WFX_URL} -i $(cat /etc/machine-id)"recipes-core/swupdate-config/files/hwrevision.tmpl +3
-0@@ -1 +1,4 @@ +# +# SPDX-License-Identifier: MIT +# cip-${MACHINE} ${MACHINE_HW_VERSION}recipes-core/swupdate-config/files/swupdate.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# globals : { bootloader = "ebg";recipes-core/swupdate-handler-roundrobin/files/swupdate.handler.efibootguard.ini +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [image] chainhandler=rawrecipes-core/tmp-fs/files/postinst +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -erecipes-devtools/swupdate-signer/files/sign-swu-cms +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# in_file=$1 out_file=$2 inkey="/usr/share/swupdate-signing/swupdate-sign.key"recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.env.tmpl +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# PARTITIONS="${CRYPT_PARTITIONS}" CREATE_FILE_SYSTEM_CMD="${CRYPT_CREATE_FILE_SYSTEM_CMD}" SETUP_TIMEOUT="${CRYPT_SETUP_TIMEOUT}"recipes-initramfs/initramfs-crypt-hook/files/pwquality.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # we don't have a dictionary in the initramfs # this solves the error "Password generation failed - required entropy too low for settings" dictcheck = 0recipes-initramfs/initramfs-factory-reset-hook/files/factory-reset-script.tmpl +2
-0@@ -7,6 +7,8 @@ # Authors: # Quirin Gylstorff <[email protected]> # +# SPDX-License-Identifier: MIT +# . /usr/share/factory-reset/reset-env . /scripts/cip-initramfs-functionsrecipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl +3
-0@@ -1,3 +1,6 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# INITRAMFS_FACTORY_RESET_DEVICES="${INITRAMFS_FACTORY_RESET_DEVICES}" INITRAMFS_FACTORY_RESET_LUKS_FORMAT_TYPE="${INITRAMFS_FACTORY_RESET_LUKS_FORMAT_TYPE}"recipes-initramfs/initramfs-overlay-hook/files/local-bottom.tmpl +2
-0@@ -7,6 +7,8 @@ # Jan Kiszka <[email protected]> # Quirin Gylstorff <[email protected]> # +# SPDX-License-Identifier: MIT +# ovl_storage_path="${INITRAMFS_OVERLAY_STORAGE_PATH}" ovl_lower_dirs="${INITRAMFS_OVERLAY_PATHS}"recipes-initramfs/initramfs-overlay-hook/files/overlay_recovery_action.script +2
-0@@ -7,6 +7,8 @@ # Authors: # Clara Kowalsky <[email protected]> # +# SPDX-License-Identifier: MIT +# partition_fstype="$1" ovl_partition_device="$2"recipes-kernel/linux/files/no-module-signing.cfg +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# # CONFIG_SECURITY_LOCKDOWN_LSM is not set # CONFIG_MODULE_SIG is not setrecipes-kernel/linux/files/no-tpm-hwrng.cfg +3
-0@@ -1,2 +1,5 @@ +# +# SPDX-License-Identifier: MIT +# # see https://lore.kernel.org/lkml/[email protected]/ # CONFIG_HW_RANDOM_TPM is not setrecipes-kernel/linux/files/preempt-rt.cfg +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # >= 5.10 CONFIG_EXPERT=y CONFIG_PREEMPT_RT=yrecipes-security/fail2ban-config/files/systemd-defaults.conf +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# [DEFAULT] syslog_backend = systemdscripts/deploy-cip-core.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/generate-sb-db-from-existing-certificate.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/generate_secure_boot_keys.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/start-efishell.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/sh +# +# SPDX-License-Identifier: MIT +# set -escripts/submit_lava.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# # Copyright (C) 2024, Renesas Electronics Europe GmbH # Chris Paterson <[email protected]> # Sai Ashrith <[email protected]>scripts/update-linux-cip.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# REPO_ROOT=$(git rev-parse --show-toplevel) pushd "${REPO_ROOT}"/recipes-kernel/linux >/dev/null || exit 1scripts/update-ltp.sh +3
-0@@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: MIT +# REPO_ROOT=$(git rev-parse --show-toplevel) pushd "${REPO_ROOT}"/recipes-core/ltp > /dev/null || exittests/templates/IEC_template.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# IEC layer testing timeouts:tests/templates/secureboot_corrupt_rootfs_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install -y fdisk" - "rootfs_start_sector=$(fdisk -l -o Name,Start cip-core-image-security-cip-core-#distribution#-#architecture#.wic | awk -v name=systema '$0 ~ name {print $2}')"tests/templates/secureboot_negative_test.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# secure boot testing timeouts:tests/templates/secureboot_template.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# secure boot testing timeouts:tests/templates/secureboot_unsigned_bootloader_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install --yes guestfish sbsigntool" - "guestfish add cip-core-image-security-cip-core-#distribution#-#architecture#.wic : run : mount /dev/sda1 / : copy-out /EFI/BOOT/bootx64.efi ."tests/templates/secureboot_unsigned_kernel_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - "apt-get update" - "apt install --yes guestfish sbsigntool" - "guestfish add cip-core-image-security-cip-core-#distribution#-#architecture#.wic : run : mount /dev/sda2 / : copy-out /linux.efi ."tests/templates/swupdate-test-action-M-COM.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # TEST BLOCK 1 # Fail the job if software update application failed - test:tests/templates/swupdate_corrupt_swu_artifact_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - cpio -ivd --directory=/root/swu < /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swutests/templates/swupdate_corrupt_swu_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - dd if=/dev/zero of=/root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu bs=1M count=5tests/templates/swupdate_negative_test.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# software update testing timeouts:tests/templates/swupdate_reboot_without_confirm.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # qemu-swtpm.sock will be gone after soft reboot. # So the swtpm socket need to be started again for proper reboot # To start the swtpm daemon, first the existing one should be killedtests/templates/swupdate_same_uuid_steps.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# - curl -v --trace-time http://$LAVA_DISPATCHER_IP/tmp/$LAVA_JOB_ID/downloads/common/cip-core-image-security-cip-core-#distribution#-#architecture#.swu --output /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swu - mkdir -p swu - cpio -ivd --directory=/root/swu < /root/cip-core-image-security-cip-core-#distribution#-#architecture#.swutests/templates/swupdate_template.yml +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# device_type: qemu job_name: #architecture# software update testing timeouts:wic/ebg-signed-sysparts.inc +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # default partition layout EFI Boot Guard usage, signed version # EFI partition containing efibootguard bootloader binarywic/ebg-sysparts.inc +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # default partition layout EFI Boot Guard usage # EFI partition containing efibootguard bootloader binarywic/hihope-rzg2m-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: RZ/G2M image with EFI Boot Guard and SWUpdate # long-description: Disk image for HiHope RZ/G2M board with EFI Boot Guard and SWUpdatewic/qemu-arm64-efibootguard-secureboot.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# include ebg-signed-sysparts.inc part --source rawcopy --sourceparams "file=${IMAGE_FULLNAME}.verity" --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_A}" --part-type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 --part-name systemawic/qemu-arm64-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: arm64 with EFI Boot Guard and SWUpdate # long-description: Disk image for arm64 machines with EFI Boot Guard and SWUpdatewic/qemu-riscv64-efibootguard.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: riscv64 with EFI Boot Guard and SWUpdate # long-description: Disk image for riscv64 machines with EFI Boot Guard and SWUpdatewic/x86-uefi-efibootguard-secureboot.wks.in +3
-0@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# include ebg-signed-sysparts.inc part --source rawcopy --sourceparams "file=${IMAGE_FULLNAME}.verity" --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_A}" --part-type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 --part-name systemawic/x86-uefi-efibootguard.wks.in +3
-1@@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: MIT +# # short-description: x86 with EFI Boot Guard and SWUpdate # long-description: Disk image for x86 machines with EFI Boot Guard and SWUpdate ---base-commit:
e3158569eee297f1837a6d3fd7e0f1a0534c2b8b
change-id: 20260316-license-c5fcde3618d2
Quoted 9 lines
Quoted 5 lines
Quoted 1 line
Best regards,
Thanks, applied. Will follow up with fixing two more spots so that we are only left with files that cannot receive headers.
Quirin spotted that modifying hwrevision.tmpl is causing our red pipeline rigth now. I've dropped that changed and force-pushed the update.
Two more files dropped (swupdate.cfg and swupdate.handler.efibootguard.ini) in the hope to get green lights again. Who expected funtional breakages from license tagged? :D
Jan
Signature · 2 lines
Siemens AG, Foundational Technologies Linux Expert Center