summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2025-08-01 12:07:08 +0200
committerSteve Sakoman <steve@sakoman.com>2025-08-20 07:37:19 -0700
commit83fac1162d8cfdfc95e1b0a90bade14a0dc966a6 (patch)
tree05dd63f57ac66118e87889383c779eb6256a47e2
parenteb487bba3e9b2653aa5edee1721642054686a9e0 (diff)
downloadpoky-83fac1162d8cfdfc95e1b0a90bade14a0dc966a6.tar.gz
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); | ^ ~~~~~~~~~~~~ (From OE-Core rev: 6d88a28ac7b6ff61808eb46e5c85dabd17c77f2e) Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-extended/pam/libpam/0002-pam-namespace-rebase.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-extended/pam/libpam/0002-pam-namespace-rebase.patch b/meta/recipes-extended/pam/libpam/0002-pam-namespace-rebase.patch
index ff5a8a4946..c57011da0b 100644
--- a/meta/recipes-extended/pam/libpam/0002-pam-namespace-rebase.patch
+++ b/meta/recipes-extended/pam/libpam/0002-pam-namespace-rebase.patch
@@ -714,7 +714,7 @@ diff --git a/modules/pam_namespace/pam_namespace.h b/modules/pam_namespace/pam_n
714index a991b4c..180e042 100644 714index a991b4c..180e042 100644
715--- a/modules/pam_namespace/pam_namespace.h 715--- a/modules/pam_namespace/pam_namespace.h
716+++ b/modules/pam_namespace/pam_namespace.h 716+++ b/modules/pam_namespace/pam_namespace.h
717@@ -44,21 +44,16 @@ 717@@ -44,21 +44,17 @@
718 #include <stdlib.h> 718 #include <stdlib.h>
719 #include <errno.h> 719 #include <errno.h>
720 #include <syslog.h> 720 #include <syslog.h>
@@ -728,7 +728,7 @@ index a991b4c..180e042 100644
728-#include <sys/resource.h> 728-#include <sys/resource.h>
729 #include <sys/mount.h> 729 #include <sys/mount.h>
730 #include <sys/wait.h> 730 #include <sys/wait.h>
731-#include <libgen.h> 731 #include <libgen.h>
732 #include <fcntl.h> 732 #include <fcntl.h>
733 #include <sched.h> 733 #include <sched.h>
734 #include <glob.h> 734 #include <glob.h>