Skip to contentSkip to conversation

Assorted updates 05/24

PATCH New Scott Murray 1 participant 14 messages May 24

lore
Share & tools
lore
#0 lore raw

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 wrynose-next branch if you would like to check them out to test yourself. I intend to merge these to wrynose branch Tuesday evening (CEST, May 26) unless there are objections.

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
#1 lore raw

PATCH 1/13 firejail: fix COMPATIBLE_MACHINE setting

From: 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
index cf0190d..746f788 100644
@@ -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
#2 lore raw

PATCH 2/13 layer.conf: correct WARN_QA

In reply to Scott Murray

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
index c0fd7a7..3ea7c08 100644
@@ -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
#3 lore raw

PATCH 3/13 google-authenticator-libpam: update 1.0.9 -> 1.11

In reply to Scott Murray

From: "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
similarity index 85%
rename from recipes-security/google-authenticator-libpam/google-authenticator-libpam_1.09.bb
rename to recipes-security/google-authenticator-libpam/google-authenticator-libpam_1.11.bb
index 333caab..713f60f 100644
@@ -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
#4 lore raw

PATCH 4/13 parsec-service: Update Parsec service version.

In reply to Scott Murray

From: 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
deleted file mode 100644
index cef6bd8..0000000
@@ -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
similarity index 86%
rename from meta-parsec/recipes-parsec/parsec-service/parsec-service_1.4.1.bb
rename to meta-parsec/recipes-parsec/parsec-service/parsec-service_1.5.0.bb
index baa02fb..d88f1b2 100644
@@ -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
#5 lore raw

PATCH 5/13 meta-parsec: Do not run Parsec CI jobs on 32bit platforms.

In reply to Scott Murray

From: 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
index 701a65a..2156598 100644
@@ -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
deleted file mode 100644
index cef2818..0000000
@@ -1,6 +0,0 @@
-header:
-  version: 8
-  includes:
-    - kas-security-parsec.yml
-
-machine: qemuarm
kas/qemux86-parsec.yml deleted +0 -6
deleted file mode 100644
index 370947d..0000000
@@ -1,6 +0,0 @@
-header:
-  version: 8
-  includes:
-    - kas-security-parsec.yml
-
-machine: qemux86
Signature · 1 line
2.53.0
#6 lore raw

PATCH 6/13 parsec-service: assign PACKAGECONFIG in one line

In reply to Scott Murray

From: 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
index d88f1b2..c5f9978 100644
@@ -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
#7 lore raw

PATCH 7/13 parsec-service: do group membership modifications in useradd

In reply to Scott Murray

From: 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
index c5f9978..0268c0e 100644
@@ -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
#8 lore raw

PATCH 8/13 parsec-service: update TS group name

In reply to Scott Murray

From: 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
index 0268c0e..857a3c8 100644
@@ -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
#9 lore raw

PATCH 9/13 tpm2-tools: make efivar optional

In reply to Scott Murray

From: 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
index fec5e1c..e1a0c5d 100644
@@ -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
#10 lore raw

PATCH 10/13 arpwatch: fix typos

In reply to Scott Murray

From: Yi Zhao <[email protected]>

APRWATCH_FROM -> ARPWATCH_FROM
ARPWATH_REPLY -> ARPWATCH_REPLY
CONFFILE_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
index 3ab5993..bb9c2b5 100644
@@ -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
#11 lore raw

PATCH 11/13 aide-base.bbclass: correct STAGING_AIDE_DIR

In reply to Scott Murray

From: 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
index 36cc454..9d9472c 100644
@@ -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
#12 lore raw

PATCH 12/13 aide: fix pkg_postinst_ontarget shell script

In reply to Scott Murray

From: "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
index 9a94ce2..68e3bfa 100644
@@ -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
#13 lore raw

PATCH 13/13 samhain: upgrade 4.5.2 -> 4.5.3

In reply to Scott Murray

From: 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
index fc4e423..95413cb 100644
@@ -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