From bfb2f38e30d8e922644068f64162f3feb8c2cd9d Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Mon, 9 Mar 2026 09:03:23 +0100 Subject: [PATCH] libpam: re-add missing libgen include It was added by original commit for CVE-2025-6020-01.patch https://github.com/linux-pam/linux-pam/commit/475bd60c552b98c7eddb3270b0b4196847c0072e#diff-05f443e6acbe32a148a45648148739bf6f02f13acc5c20c6037bf933223d4d77 but removed here in the rebase, causing: ../../../Linux-PAM-1.5.3/modules/pam_namespace/pam_namespace.c:326:11: error: call to undeclared function 'dirname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 326 | parent = dirname(buf); | ^ ../../../Linux-PAM-1.5.3/modules/pam_namespace/pam_namespace.c:326:9: error: incompatible integer to pointer conversion assigning to 'char*' from 'int' [-Wint-conversion] 326 | parent = dirname(buf); | ^ ~~~~~~~~~~~~ Backport 6d88a28ac7b6ff61808eb46e5c85dabd17c77f2e from scarthgap. It's reproducible with clang-18 from kirkstone-clang18 branch of meta-clang. (From OE-Core rev: 6888cb09ad069cd937ac4498640fdd5bed2e7a51) Signed-off-by: Steve Sakoman Signed-off-by: Martin Jansa Signed-off-by: Yoann Congal Signed-off-by: Paul Barker --- meta/recipes-extended/pam/libpam/CVE-2025-6020-01.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-extended/pam/libpam/CVE-2025-6020-01.patch b/meta/recipes-extended/pam/libpam/CVE-2025-6020-01.patch index 4f5f780f9c..53ae2bd2ee 100644 --- a/meta/recipes-extended/pam/libpam/CVE-2025-6020-01.patch +++ b/meta/recipes-extended/pam/libpam/CVE-2025-6020-01.patch @@ -1528,7 +1528,7 @@ diff --git a/modules/pam_namespace/pam_namespace.h b/modules/pam_namespace/pam_n index b51f284..abd570d 100644 --- a/modules/pam_namespace/pam_namespace.h +++ b/modules/pam_namespace/pam_namespace.h -@@ -44,21 +44,16 @@ +@@ -44,21 +44,17 @@ #include #include #include @@ -1542,7 +1542,7 @@ index b51f284..abd570d 100644 -#include #include #include --#include + #include #include #include #include