Assorted updates 05/24
PATCH 1/13 firejail: fix COMPATIBLE_MACHINE setting
In reply to Scott MurrayFrom: Li Zhou <[email protected]>
Because "x86_64" and "arm64" aren't valid in bitbake OVERRIDES, they should be corrected to "x86-64" and "aarch64". On the other side, "x86_64" and "arch64" aren't valid MACHINE name.
So correct the way to "only allow x86-64 and arm64 to build":COMPATIBLE_MACHINE = "(-)" => disallow all machine first
COMPATIBLE_MACHINE:aarch64 = "(.*)" => when arch "aarch64" in OVERRIDES, allow all machines. COMPATIBLE_MACHINE:x86-64 = "(.*)" => when arch "x84-64" in OVERRIDES, allow all machines.
Fix 1dd076d3a76f ("firejail: only allow x86-64 and arm64 to build")
--- recipes-security/Firejail/firejail_0.9.72.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
recipes-security/Firejail/firejail_0.9.72.bb +3 -2
@@ -57,7 +57,8 @@ pkg_postinst_ontarget:${PN} () { ${libdir}/${BPN}/fseccomp memory-deny-write-execute ${libdir}/${BPN}/seccomp.mdwx } -COMPATIBLE_MACHINE:x86_64 = "x86_64" -COMPATIBLE_MACHINE:arm64 = "arch64" +COMPATIBLE_MACHINE = "(-)" +COMPATIBLE_MACHINE:aarch64 = "(.*)" +COMPATIBLE_MACHINE:x86-64 = "(.*)" RDEPENDS:${PN} = "bash"
Signature · 1 line
2.53.0
PATCH 7/13 parsec-service: do group membership modifications in useradd
In reply to Scott MurrayFrom: Ross Burton <[email protected]>
Instead of calling groupmems after creating the user, we can tell useradd to do the group membership when creating the user. There are several reasons for this:
1) Consolidation of the calls into a single call means creation is atomic, it either worked or it did not.
2) The existing logic doesn't work if both TPM and TS were enabled.
3) GROUPMEMS_PARAM is broken in oe-core master[1] and this will not be fixed as groupmems has been removed from shadow[2].
Instead, construct a list of groups that parsec needs to be a member of, and pass them to useradd.
[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=16277
[2] shadow 388ce70 "*/: groupmems(8): Remove program"
--- .../parsec-service/parsec-service_1.5.0.bb | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-)
meta-parsec/recipes-parsec/parsec-service/parsec-service_1.5.0.bb +16 -3
@@ -72,9 +72,22 @@ do_install () { inherit useradd USERADD_PACKAGES = "${PN}" GROUPADD_PARAM:${PN} = "-r parsec" -USERADD_PARAM:${PN} = "-r -g parsec -s /usr/sbin/nologin -d ${localstatedir}/lib/parsec parsec" -GROUPMEMS_PARAM:${PN} = "${@bb.utils.contains('PACKAGECONFIG_CONFARGS', 'tpm-provider', '-a parsec -g tss ;', '', d)}" -GROUPMEMS_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG_CONFARGS', 'trusted-service-provider', '-a parsec -g tee', '', d)}" +USERADD_PARAM:${PN} = "\ + --system \ + --gid parsec \ + --shell /usr/sbin/nologin \ + --home-dir ${localstatedir}/lib/parsec \ + ${@parsec_groups(d)} \ + parsec" + +def parsec_groups(d): + groups = [] + config = d.getVar("PACKAGECONFIG").split() + if "TPM" in config: + groups.append("tss") + if "TS" in config: + groups.append("teeclnt") + return "--groups " + ",".join(groups) if groups else "" FILES:${PN} += " \ ${sysconfdir}/parsec/config.toml \
Signature · 1 line
2.53.0
PATCH 8/13 parsec-service: update TS group name
In reply to Scott MurrayFrom: Ross Burton <[email protected]>
meta-arm recently changed the group name that is used by TS[1], so update the group name to match.
[1] meta-arm 595cb0f1a0 ("arm/trusted-services: fix udev management in libts")
--- .../recipes-parsec/parsec-service/parsec-service_1.5.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-parsec/recipes-parsec/parsec-service/parsec-service_1.5.0.bb +1 -1
@@ -86,7 +86,7 @@ def parsec_groups(d): if "TPM" in config: groups.append("tss") if "TS" in config: - groups.append("teeclnt") + groups.append("tee") return "--groups " + ",".join(groups) if groups else "" FILES:${PN} += " \
Signature · 1 line
2.53.0
PATCH 9/13 tpm2-tools: make efivar optional
In reply to Scott MurrayFrom: Peter Marko <[email protected]>
Previous commit made this a hard dependency because it's autodetected. Instead of that, make it configurable so it can be disabled (roughtly equivalent to behavior before that commit).
--- meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.7.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.7.bb +4 -1
@@ -4,7 +4,7 @@ LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=a846608d090aa64494c45fc147cc12e3" SECTION = "tpm" -DEPENDS = "tpm2-tss openssl curl efivar" +DEPENDS = "tpm2-tss openssl curl" SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz"
@@ -14,4 +14,7 @@ UPSTREAM_CHECK_URI = "https://github.com/tpm2-software/${BPN}/releases" inherit autotools pkgconfig bash-completion +PACKAGECONGIG ??= "efivar" +PACKAGECONFIG[efivar] = "--with-efivar,--without-efivar,efivar" + BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.53.0
PATCH 3/13 google-authenticator-libpam: update 1.0.9 -> 1.11
In reply to Scott MurrayFrom: "jason.lau" <[email protected]>
Changes from 1.09 to 1.10:
- Shorten syslog name to work with rsyslog (#172)
- Update config file with grace period in all cases (#193)
- Remove printing QR code using Google Charts URL (service shut down)
Changes from 1.10 to 1.11:
- Change secret key bits from 128 to 160 bits (#266, #271)
- Add support for black & white terminals (#268, #270)
- Fix grace_period for IPv6 link-local addresses (#265)
Also fix the .bb recipe:
- Fix typo: RDEPNEDS -> RDEPENDS
- Use new override syntax: RDEPENDS:pam-google-authenticator (replaces old underscore style RDEPENDS_pam-google-authenticator)
---
...tor-libpam_1.09.bb => google-authenticator-libpam_1.11.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename recipes-security/google-authenticator-libpam/{google-authenticator-libpam_1.09.bb => google-authenticator-libpam_1.11.bb} (85%)recipes-security/google-authenticator-libpam/google-authenticator-libpam_1.11.bb renamed from recipes-security/google-authenticator-libpam/google-authenticator-libpam_1.09.bb +2 -2
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" LICENSE = "Apache-2.0" SRC_URI = "git://github.com/google/google-authenticator-libpam.git;branch=master;protocol=https" -SRCREV = "962f353aac6cfc7b804547319db40f8b804f0b6c" +SRCREV = "016774b0b75ee8f5e80028998d386de762ba1697" DEPENDS = "libpam"
@@ -18,4 +18,4 @@ EXTRA_OECONF = "--libdir=${base_libdir}" PACKAGES += "pam-google-authenticator" FILES:pam-google-authenticator = "${base_libdir}/security/pam_google_authenticator.so" -RDEPNEDS_pam-google-authenticator = "libpam" +RDEPENDS:pam-google-authenticator = "libpam"
Signature · 1 line
2.53.0
PATCH 4/13 parsec-service: Update Parsec service version.
In reply to Scott MurrayFrom: Anton Antonov <[email protected]>
This update adds compatibility with clang 22.1 in oe-core.
---
...Fix-unnecessary-qualifications-error.patch | 50 -
.../parsec-service/parsec-service-crates.inc | 868 ++++++++++--------
...rvice_1.4.1.bb => parsec-service_1.5.0.bb} | 12 +-
3 files changed, 499 insertions(+), 431 deletions(-)
delete mode 100644 meta-parsec/recipes-parsec/parsec-service/files/0002-Fix-unnecessary-qualifications-error.patch
rename meta-parsec/recipes-parsec/parsec-service/{parsec-service_1.4.1.bb => parsec-service_1.5.0.bb} (86%)meta-parsec/recipes-parsec/parsec-service/files/0002-Fix-unnecessary-qualifications-error.patch deleted +0 -50
@@ -1,50 +0,0 @@ -From 86d4d2ca2f1e873a29f9f4d4bba99fedee19a144 Mon Sep 17 00:00:00 2001 -From: Gowtham Suresh Kumar <[email protected]> -Date: Thu, 29 Aug 2024 17:10:06 +0100 -Subject: [PATCH 2/4] Fix unnecessary qualifications error - -Signed-off-by: Gowtham Suresh Kumar <[email protected]> - -Upstream-Status: Backport -Signed-off-by: Armin Kuster <[email protected]> - ---- - src/front/domain_socket.rs | 9 +++++---- - 1 file changed, 5 insertions(+), 4 deletions(-) - -diff --git a/src/front/domain_socket.rs b/src/front/domain_socket.rs -index 9fb8a0c..a0effa5 100644 ---- a/src/front/domain_socket.rs -+++ b/src/front/domain_socket.rs -@@ -239,15 +239,16 @@ pub mod peer_credentials { - pub mod impl_linux { - use super::UCred; - use libc::{c_void, getsockopt, socklen_t, ucred, SOL_SOCKET, SO_PEERCRED}; -+ use std::io; -+ use std::mem::size_of; - use std::os::unix::io::AsRawFd; - use std::os::unix::net::UnixStream; -- use std::{io, mem}; - - pub fn peer_cred(socket: &UnixStream) -> io::Result<UCred> { -- let ucred_size = mem::size_of::<ucred>(); -+ let ucred_size = size_of::<ucred>(); - - // Trivial sanity checks. -- assert!(mem::size_of::<u32>() <= mem::size_of::<usize>()); -+ assert!(size_of::<u32>() <= size_of::<usize>()); - assert!(ucred_size <= u32::MAX as usize); - - let mut ucred_size = ucred_size as socklen_t; -@@ -266,7 +267,7 @@ pub mod peer_credentials { - &mut ucred_size, - ); - -- if ret == 0 && ucred_size as usize == mem::size_of::<ucred>() { -+ if ret == 0 && ucred_size as usize == size_of::<ucred>() { - Ok(UCred { - uid: ucred.uid, - gid: ucred.gid, --- -2.43.0 -
meta-parsec/recipes-parsec/parsec-service/parsec-service-crates.inc +494 -374
981 lines not on this page · raw message
meta-parsec/recipes-parsec/parsec-service/parsec-service_1.5.0.bb renamed from meta-parsec/recipes-parsec/parsec-service/parsec-service_1.4.1.bb +5 -7
@@ -11,9 +11,8 @@ SRC_URI += "crate://crates.io/parsec-service/${PV} \ file://parsec_init \ file://systemd.patch \ file://parsec-tmpfiles.conf \ - file://0002-Fix-unnecessary-qualifications-error.patch \ " -SRC_URI[parsec-service-1.4.1.sha256sum] = "06ad906fb13d6844ad676d4203a1096ae4efc87fe1abcea0481c507df56d8c98" +SRC_URI[parsec-service-1.5.0.sha256sum] = "819f1f658a1c62fee1b4986fe33232d5dc539b37ae0933981e02737ad7fb570f" B = "${CARGO_VENDORING_DIRECTORY}/${BP}"
@@ -21,12 +20,12 @@ PACKAGECONFIG ??= "PKCS11 MBED-CRYPTO" have_TPM = "${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', 'TPM', '', d)}" PACKAGECONFIG:append = " ${@bb.utils.contains('BBFILE_COLLECTIONS', 'tpm-layer', '${have_TPM}', '', d)}" -PACKAGECONFIG[ALL] = "-F all-providers -F cryptoki/generate-bindings -F tss-esapi/generate-bindings,,tpm2-tss libts,tpm2-tss libtss2-tcti-device libts" PACKAGECONFIG[TPM] = "-F tpm-provider -F tss-esapi/generate-bindings,,tpm2-tss,tpm2-tss libtss2-tcti-device" PACKAGECONFIG[PKCS11] = "-F pkcs11-provider -F cryptoki/generate-bindings," PACKAGECONFIG[MBED-CRYPTO] = "-F mbed-crypto-provider," PACKAGECONFIG[CRYPTOAUTHLIB] = "-F cryptoauthlib-provider," -PACKAGECONFIG[TS] = "-F trusted-service-provider,,libts,libts" +# Current version of Parsec is not compatible with the current version of Trusted Services +#PACKAGECONFIG[TS] = "-F trusted-service-provider,,libts protobuf-native,libts" export BINDGEN_EXTRA_CLANG_ARGS target = "${@d.getVar('TARGET_SYS').replace('-', ' ')}"
@@ -74,9 +73,9 @@ do_install () { inherit useradd USERADD_PACKAGES = "${PN}" GROUPADD_PARAM:${PN} = "-r parsec" -USERADD_PARAM:${PN} = "-r -g parsec -s /bin/false -d ${localstatedir}/lib/parsec parsec" +USERADD_PARAM:${PN} = "-r -g parsec -s /usr/sbin/nologin -d ${localstatedir}/lib/parsec parsec" GROUPMEMS_PARAM:${PN} = "${@bb.utils.contains('PACKAGECONFIG_CONFARGS', 'tpm-provider', '-a parsec -g tss ;', '', d)}" -GROUPMEMS_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG_CONFARGS', 'trusted-service-provider', '-a parsec -g teeclnt', '', d)}" +GROUPMEMS_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG_CONFARGS', 'trusted-service-provider', '-a parsec -g tee', '', d)}" FILES:${PN} += " \ ${sysconfdir}/parsec/config.toml \
@@ -92,4 +91,3 @@ require parsec-service-crates.inc # upstream to fix this. # https://github.com/parallaxsecond/parsec/issues/645 INSANE_SKIP:${PN}-dbg += "buildpaths" -
Signature · 1 line
2.53.0
PATCH 5/13 meta-parsec: Do not run Parsec CI jobs on 32bit platforms.
In reply to Scott MurrayFrom: Anton Antonov <[email protected]>
--- .gitlab-ci.yml | 12 ------------ kas/qemuarm-parsec.yml | 6 ------ kas/qemux86-parsec.yml | 6 ------ 3 files changed, 24 deletions(-) delete mode 100644 kas/qemuarm-parsec.yml delete mode 100644 kas/qemux86-parsec.yml
.gitlab-ci.yml +0 -12
@@ -67,12 +67,6 @@ qemux86-musl: script: - kas build --target security-build-image kas/$CI_JOB_NAME.yml 2>&1 | tee $CI_PROJECT_DIR/log/qemux86_musl_security_image.txt -qemux86-parsec: - extends: .parsec - needs: ['qemux86'] - script: - - kas build --target security-parsec-image kas/$CI_JOB_NAME.yml 2>&1 | tee $CI_PROJECT_DIR/log/qemux86_parsec_security_image.txt - qemux86-test: extends: .test needs: ['qemux86']
@@ -99,12 +93,6 @@ qemuarm: script: - kas build --target security-build-image kas/$CI_JOB_NAME.yml 2>&1 | tee $CI_PROJECT_DIR/log/qemuarm_security_image.txt -qemuarm-parsec: - extends: .parsec - needs: ['qemuarm'] - script: - - kas build --target security-parsec-image kas/$CI_JOB_NAME.yml 2>&1 | tee $CI_PROJECT_DIR/log/qemuarm_parsec_security_image.txt - qemuarm64: extends: .base script:
kas/qemuarm-parsec.yml deleted +0 -6
@@ -1,6 +0,0 @@ -header: - version: 8 - includes: - - kas-security-parsec.yml - -machine: qemuarm
kas/qemux86-parsec.yml deleted +0 -6
@@ -1,6 +0,0 @@ -header: - version: 8 - includes: - - kas-security-parsec.yml - -machine: qemux86
Signature · 1 line
2.53.0
PATCH 6/13 parsec-service: assign PACKAGECONFIG in one line
In reply to Scott MurrayFrom: Ross Burton <[email protected]>
By :appending the TPM option we make it impossible for distros to simply assign to PACKAGECONFIG.
--- .../recipes-parsec/parsec-service/parsec-service_1.5.0.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta-parsec/recipes-parsec/parsec-service/parsec-service_1.5.0.bb +1 -2
@@ -16,9 +16,8 @@ SRC_URI[parsec-service-1.5.0.sha256sum] = "819f1f658a1c62fee1b4986fe33232d5dc539 B = "${CARGO_VENDORING_DIRECTORY}/${BP}" -PACKAGECONFIG ??= "PKCS11 MBED-CRYPTO" have_TPM = "${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', 'TPM', '', d)}" -PACKAGECONFIG:append = " ${@bb.utils.contains('BBFILE_COLLECTIONS', 'tpm-layer', '${have_TPM}', '', d)}" +PACKAGECONFIG ??= "PKCS11 MBED-CRYPTO ${@bb.utils.contains('BBFILE_COLLECTIONS', 'tpm-layer', '${have_TPM}', '', d)}" PACKAGECONFIG[TPM] = "-F tpm-provider -F tss-esapi/generate-bindings,,tpm2-tss,tpm2-tss libtss2-tcti-device" PACKAGECONFIG[PKCS11] = "-F pkcs11-provider -F cryptoki/generate-bindings,"
Signature · 1 line
2.53.0
cover Assorted updates 05/24
My apologies for the delay in getting this out, this patch series rolls up the contributed patches from the past few weeks. These changes are queued on the master-next branch if you would like to check them out to test yourself. I intend to merge these to master branch Tuesday evening (CEST, May 26) unless there are objections.
Note that there is one known issue with latest meta-oe that has blocked getting clean CI runs that likely will impact anyone using the dm-verity bbclass. The root cause seems to be a new packaging conflict between lvm2 and libdevmapper after the recent upgrade in meta-oe, but I have not had time to try to dig into it and come up with a clean fix. I plan to look at that if time permits while I am at Embedded Recipes this coming week.
Scott
Changes:
Anton Antonov (2):
parsec-service: Update Parsec service version.
meta-parsec: Do not run Parsec CI jobs on 32bit platforms.
Bin Cao (1):
samhain: upgrade 4.5.2 -> 4.5.3
Li Zhou (3):
firejail: fix COMPATIBLE_MACHINE setting
layer.conf: correct WARN_QA
aide-base.bbclass: correct STAGING_AIDE_DIR
Peter Marko (1):
tpm2-tools: make efivar optional
Ross Burton (3):
parsec-service: assign PACKAGECONFIG in one line
parsec-service: do group membership modifications in useradd
parsec-service: update TS group name
Yi Zhao (1):
arpwatch: fix typos
jason.lau (2):
google-authenticator-libpam: update 1.0.9 -> 1.11
aide: fix pkg_postinst_ontarget shell script
.gitlab-ci.yml | 12 -
classes/aide-base.bbclass | 2 +-
kas/qemuarm-parsec.yml | 6 -
kas/qemux86-parsec.yml | 6 -
...Fix-unnecessary-qualifications-error.patch | 50 -
.../parsec-service/parsec-service-crates.inc | 868 ++++++++++--------
...rvice_1.4.1.bb => parsec-service_1.5.0.bb} | 30 +-
meta-tpm/conf/layer.conf | 2 +-
.../recipes-tpm2/tpm2-tools/tpm2-tools_5.7.bb | 5 +-
recipes-ids/aide/aide_0.19.3.bb | 4 +-
recipes-ids/samhain/samhain.inc | 4 +-
recipes-scanners/arpwatch/arpwatch_3.3.bb | 8 +-
recipes-security/Firejail/firejail_0.9.72.bb | 5 +-
...bb => google-authenticator-libpam_1.11.bb} | 4 +-
14 files changed, 533 insertions(+), 473 deletions(-)
delete mode 100644 kas/qemuarm-parsec.yml
delete mode 100644 kas/qemux86-parsec.yml
delete mode 100644 meta-parsec/recipes-parsec/parsec-service/files/0002-Fix-unnecessary-qualifications-error.patch
rename meta-parsec/recipes-parsec/parsec-service/{parsec-service_1.4.1.bb => parsec-service_1.5.0.bb} (78%)
rename recipes-security/google-authenticator-libpam/{google-authenticator-libpam_1.09.bb => google-authenticator-libpam_1.11.bb} (85%)Signature · 1 line
2.53.0
PATCH 2/13 layer.conf: correct WARN_QA
From: Li Zhou <[email protected]>
Fix the typo "tmp-layer" in "WARN_QA:append".
The right name for this layer in OVERRIDES is layer-tpm-layer by checking "bitbake -e <recipe_name> | grep ^OVERRIDES=".
--- meta-tpm/conf/layer.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-tpm/conf/layer.conf +1 -1
@@ -27,4 +27,4 @@ networking-layer:${LAYERDIR}/dynamic-layers/meta-networking/recipes-*/*/*.bbappe addpylib ${LAYERDIR}/lib oeqa -WARN_QA:append:tmp-layer = " patch-status missing-metadata" +WARN_QA:append:layer-tpm-layer = " patch-status missing-metadata"
Signature · 1 line
2.53.0
PATCH 10/13 arpwatch: fix typos
In reply to Scott MurrayFrom: Yi Zhao <[email protected]>
APRWATCH_FROM -> ARPWATCH_FROMARPWATH_REPLY -> ARPWATCH_REPLYCONFFILE_FILES -> CONFFILES:${PN}
--- recipes-scanners/arpwatch/arpwatch_3.3.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-scanners/arpwatch/arpwatch_3.3.bb +4 -4
@@ -18,8 +18,8 @@ inherit autotools-brokensep update-rc.d useradd ARPWATCH_UID ?= "arpwatch" ARPWATCH_GID ?= "arpwatch" -APRWATCH_FROM ?= "root " -ARPWATH_REPLY ?= "${ARPWATCH_UID}" +ARPWATCH_FROM ?= "root " +ARPWATCH_REPLY ?= "${ARPWATCH_UID}" # many configure tests are failing with gcc-14 CFLAGS += "-Wno-error=implicit-int -Wno-error=implicit-function-declaration"
@@ -27,7 +27,7 @@ BUILD_CFLAGS += "-Wno-error=implicit-int -Wno-error=implicit-function-declaratio PACKAGECONFIG ??= "" -PACKAGECONFIG[email] = "-with-watcher=email=${APRWATCH_FROM} --with-watchee=email=${ARPWATH_REPLY}, , postfix, postfix postfix-cfg" +PACKAGECONFIG[email] = "--with-watcher=email=${ARPWATCH_FROM} --with-watchee=email=${ARPWATCH_REPLY}, , postfix, postfix postfix-cfg" CONFIGUREOPTS = " --build=${BUILD_SYS} \ --host=${HOST_SYS} \
@@ -78,7 +78,7 @@ USERADD_PARAM:${PN} = "--system -g ${ARPWATCH_GID} --home-dir \ ${localstatedir}/spool/${BPN} \ --no-create-home --shell /bin/false ${BPN}" -CONFFILE_FILES = "${sysconfdir}/${PN}.conf" +CONFFILES:${PN} = "${sysconfdir}/${PN}.conf" FILES:${PN} = "${bindir} ${sbindir} ${prefix}/etc/rc.d \ ${sysconfdir} /var/lib/arpwatch"
Signature · 1 line
2.53.0
PATCH 11/13 aide-base.bbclass: correct STAGING_AIDE_DIR
In reply to Scott MurrayFrom: Li Zhou <[email protected]>
Fix the typo "aida" to "aide" in STAGING_AIDE_DIR.
--- classes/aide-base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
classes/aide-base.bbclass +1 -1
@@ -2,7 +2,7 @@ # Copyright 2022 Armin Kuster <[email protected]> # -STAGING_AIDE_DIR ?= "${TMPDIR}/work-shared/${MACHINE}/aida" +STAGING_AIDE_DIR ?= "${TMPDIR}/work-shared/${MACHINE}/aide" AIDE_INCLUDE_DIRS ?= "/lib" AIDE_SKIP_DIRS ?= "/lib/modules/.\*"
Signature · 1 line
2.53.0
PATCH 12/13 aide: fix pkg_postinst_ontarget shell script
In reply to Scott MurrayFrom: "jason.lau" <[email protected]>
- Fix conditional checks for AIDE_SCAN_POSTINIT and AIDE_RESCAN_POSTINIT:
'[ 0 ]' always evaluates to true since it's a non-empty string. Use string comparison '= "1"' instead.
- Fix invalid use of '&&' inside '[ ]' test brackets. Use separate test expressions joined by shell '&&'.
(reworked for 0.19.3, fixed indentation)
--- recipes-ids/aide/aide_0.19.3.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-ids/aide/aide_0.19.3.bb +2 -2
@@ -62,10 +62,10 @@ CONF_FILE = "${sysconfdir}/aide.conf" FILES:${PN} += "${libdir}/${PN} ${sysconfdir}/aide.conf" pkg_postinst_ontarget:${PN} () { - if [ ${AIDE_SCAN_POSTINIT} ]; then + if [ "${AIDE_SCAN_POSTINIT}" = "1" ]; then ${bindir}/aide -i fi - if [ ${AIDE_RESCAN_POSTINIT} && -e ${libdir}/aide/aide.db.gz ]; then + if [ "${AIDE_RESCAN_POSTINIT}" = "1" ] && [ -e ${libdir}/aide/aide.db.gz ]; then ${bindir}/aide -C fi }
Signature · 1 line
2.53.0
PATCH 13/13 samhain: upgrade 4.5.2 -> 4.5.3
In reply to Scott MurrayFrom: Bin Cao <[email protected]>
Update samhain-client, samhain-server, and samhain-standalone to 4.5.3.
Release notes: https://www.la-samhna.de/samhain/archive.html
--- recipes-ids/samhain/samhain.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-ids/samhain/samhain.inc +2 -2
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.la-samhna.de/samhain/" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=8ca43cbc842c2336e835926c2166c28b" -PV = "4.5.2" +PV = "4.5.3" SRC_URI = "https://la-samhna.de/archive/samhain_signed-${PV}.tar.gz \ file://${INITSCRIPT_NAME}.init \
@@ -22,7 +22,7 @@ SRC_URI = "https://la-samhna.de/archive/samhain_signed-${PV}.tar.gz \ file://0001-Format-test-output-to-match-Automake-standards.patch \ " -SRC_URI[sha256sum] = "0b5d3534fd60ecf45dfd79bd415e81f7a56eba7f1755771735e204f334033578" +SRC_URI[sha256sum] = "e7837adfde3d59a23c59e1bf3ebacdf71bce018619194cfad938cd30cbb9d15b" UPSTREAM_CHECK_URI = "https://www.la-samhna.de/samhain/archive.html" UPSTREAM_CHECK_REGEX = "samhain_signed-(?P<pver>(\d+(\.\d+)+))\.tar"
Signature · 1 line
2.53.0
Hello,
Could you also pick following patch to both master-next and wrynose-next?
May 5 - https://lists.yoctoproject.org/g/yocto-patches/message/3915 - [meta-security][PATCH] tpm2-pkcs11: upgrade 1.9.1 -> 1.9.2
Peter
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Scott Murray via lists.yoctoproject.org
Sent: Sunday, May 24, 2026 2:15 PM
To: [email protected]
Subject: [yocto-patches] [meta-security][PATCH 00/13] Assorted updates 05/24
My apologies for the delay in getting this out, this patch series rolls up the contributed patches from the past few weeks. These changes are queued on the master-next branch if you would like to check them out to test yourself. I intend to merge these to master branch Tuesday evening (CEST, May 26) unless there are objections.
Note that there is one known issue with latest meta-oe that has blocked getting clean CI runs that likely will impact anyone using the dm-verity bbclass. The root cause seems to be a new packaging conflict between lvm2 and libdevmapper after the recent upgrade in meta-oe, but I have not had time to try to dig into it and come up with a clean fix. I plan to look at that if time permits while I am at Embedded Recipes this coming week.
Scott
Changes:
Anton Antonov (2):
parsec-service: Update Parsec service version.
meta-parsec: Do not run Parsec CI jobs on 32bit platforms.
Bin Cao (1):
samhain: upgrade 4.5.2 -> 4.5.3
Li Zhou (3):
firejail: fix COMPATIBLE_MACHINE setting
layer.conf: correct WARN_QA
aide-base.bbclass: correct STAGING_AIDE_DIR
Peter Marko (1):
tpm2-tools: make efivar optional
Ross Burton (3):
parsec-service: assign PACKAGECONFIG in one line
parsec-service: do group membership modifications in useradd
parsec-service: update TS group name
Yi Zhao (1):
arpwatch: fix typos
jason.lau (2):
google-authenticator-libpam: update 1.0.9 -> 1.11
aide: fix pkg_postinst_ontarget shell script
.gitlab-ci.yml | 12 -
classes/aide-base.bbclass | 2 +-
kas/qemuarm-parsec.yml | 6 -
kas/qemux86-parsec.yml | 6 -
...Fix-unnecessary-qualifications-error.patch | 50 -
.../parsec-service/parsec-service-crates.inc | 868 ++++++++++--------
...rvice_1.4.1.bb => parsec-service_1.5.0.bb} | 30 +-
meta-tpm/conf/layer.conf | 2 +-
.../recipes-tpm2/tpm2-tools/tpm2-tools_5.7.bb | 5 +-
recipes-ids/aide/aide_0.19.3.bb | 4 +-
recipes-ids/samhain/samhain.inc | 4 +-
recipes-scanners/arpwatch/arpwatch_3.3.bb | 8 +-
recipes-security/Firejail/firejail_0.9.72.bb | 5 +-
...bb => google-authenticator-libpam_1.11.bb} | 4 +-
14 files changed, 533 insertions(+), 473 deletions(-)
delete mode 100644 kas/qemuarm-parsec.yml
delete mode 100644 kas/qemux86-parsec.yml
delete mode 100644 meta-parsec/recipes-parsec/parsec-service/files/0002-Fix-unnecessary-qualifications-error.patch
rename meta-parsec/recipes-parsec/parsec-service/{parsec-service_1.4.1.bb => parsec-service_1.5.0.bb} (78%)
rename recipes-security/google-authenticator-libpam/{google-authenticator-libpam_1.09.bb => google-authenticator-libpam_1.11.bb} (85%)Signature · 11 lines
2.53.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#4006): https://lists.yoctoproject.org/g/yocto-patches/message/4006 Mute This Topic: https://lists.yoctoproject.org/mt/119465712/4454441 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13703729/4454441/683413657/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
Quoted 4 lines · Peter
Hello,
Could you also pick following patch to both master-next and wrynose-next?
May 5 - https://lists.yoctoproject.org/g/yocto-patches/message/3915 - [meta-security][PATCH] tpm2-pkcs11: upgrade 1.9.1 -> 1.9.2
Thanks for catching this, I did miss pulling it into my patch queue. I have added it now, and will push it with the rest if the wrynose CI run looks good (which I expect it will).
Thanks,
Scott
Quoted 74 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Scott Murray via lists.yoctoproject.org
Sent: Sunday, May 24, 2026 2:15 PM
To: [email protected]
Subject: [yocto-patches] [meta-security][PATCH 00/13] Assorted updates 05/24My apologies for the delay in getting this out, this patch series rolls up the contributed patches from the past few weeks. These changes are queued on the master-next branch if you would like to check them out to test yourself. I intend to merge these to master branch Tuesday evening (CEST, May 26) unless there are objections.
Note that there is one known issue with latest meta-oe that has blocked getting clean CI runs that likely will impact anyone using the dm-verity bbclass. The root cause seems to be a new packaging conflict between lvm2 and libdevmapper after the recent upgrade in meta-oe, but I have not had time to try to dig into it and come up with a clean fix. I plan to look at that if time permits while I am at Embedded Recipes this coming week.
Scott
Changes:
Anton Antonov (2):
parsec-service: Update Parsec service version.
meta-parsec: Do not run Parsec CI jobs on 32bit platforms.Bin Cao (1):
samhain: upgrade 4.5.2 -> 4.5.3Li Zhou (3):
firejail: fixCOMPATIBLE_MACHINEsetting
layer.conf: correctWARN_QA
aide-base.bbclass: correctSTAGING_AIDE_DIRPeter Marko (1):
tpm2-tools: make efivar optionalRoss Burton (3):
parsec-service: assign PACKAGECONFIG in one line
parsec-service: do group membership modifications in useradd
parsec-service: update TS group nameYi Zhao (1):
arpwatch: fix typosjason.lau (2):
google-authenticator-libpam: update 1.0.9 -> 1.11
aide: fixpkg_postinst_ontargetshell script.gitlab-ci.yml | 12 - classes/aide-base.bbclass | 2 +- kas/qemuarm-parsec.yml | 6 - kas/qemux86-parsec.yml | 6 - ...Fix-unnecessary-qualifications-error.patch | 50 - .../parsec-service/parsec-service-crates.inc | 868 ++++++++++-------- ...rvice_1.4.1.bb => parsec-service_1.5.0.bb} | 30 +- meta-tpm/conf/layer.conf | 2 +- .../recipes-tpm2/tpm2-tools/tpm2-tools_5.7.bb | 5 +- recipes-ids/aide/aide_0.19.3.bb | 4 +- recipes-ids/samhain/samhain.inc | 4 +- recipes-scanners/arpwatch/arpwatch_3.3.bb | 8 +- recipes-security/Firejail/firejail_0.9.72.bb | 5 +- ...bb => google-authenticator-libpam_1.11.bb} | 4 +- 14 files changed, 533 insertions(+), 473 deletions(-) delete mode 100644 kas/qemuarm-parsec.yml delete mode 100644 kas/qemux86-parsec.yml delete mode 100644 meta-parsec/recipes-parsec/parsec-service/files/0002-Fix-unnecessary-qualifications-error.patch rename meta-parsec/recipes-parsec/parsec-service/{parsec-service_1.4.1.bb => parsec-service_1.5.0.bb} (78%) rename recipes-security/google-authenticator-libpam/{google-authenticator-libpam_1.09.bb => google-authenticator-libpam_1.11.bb} (85%)