summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support')
-rw-r--r--meta-oe/recipes-support/libftdi/files/0001-CMake-bump-the-minimal-required-version-to-2.8.12.patch86
-rw-r--r--meta-oe/recipes-support/libftdi/files/0002-CMake-require-2.8.12-for-cmake_example.patch24
-rw-r--r--meta-oe/recipes-support/libftdi/files/0003-CMake-bump-the-minimal-required-version-to-3.5.patch34
-rw-r--r--meta-oe/recipes-support/libftdi/libftdi_1.5.bb3
-rw-r--r--meta-oe/recipes-support/libp11/libp11_0.4.13.bb1
-rwxr-xr-xmeta-oe/recipes-support/libusbgx/libusbgx/gadget-start6
-rw-r--r--meta-oe/recipes-support/udisks/udisks2/CVE-2025-6019.patch51
-rw-r--r--meta-oe/recipes-support/udisks/udisks2_2.10.1.bb1
8 files changed, 205 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libftdi/files/0001-CMake-bump-the-minimal-required-version-to-2.8.12.patch b/meta-oe/recipes-support/libftdi/files/0001-CMake-bump-the-minimal-required-version-to-2.8.12.patch
new file mode 100644
index 0000000000..544ea00c35
--- /dev/null
+++ b/meta-oe/recipes-support/libftdi/files/0001-CMake-bump-the-minimal-required-version-to-2.8.12.patch
@@ -0,0 +1,86 @@
1From 9b1419d46b156c3c61d30e761ee3636431187cc0 Mon Sep 17 00:00:00 2001
2From: Yegor Yefremov <yegorslists@googlemail.com>
3Date: Tue, 1 Aug 2023 11:53:35 +0200
4Subject: [PATCH] CMake: bump the minimal required version to 2.8.12
5
6The older CMake versions are deprecated.
7
8Remove support for CMake code compatible with CMake older than 2.8.8.
9
10Also move cmake_minimum_required() command before the project()
11command invocation.
12
13Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
14Upstream-Status: Backport [3861e7dc9e83f2f6ff4e1579cf3bbf63a6827105]
15---
16 CMakeLists.txt | 46 +++++++++++++++++++++-------------------------
17 1 file changed, 21 insertions(+), 25 deletions(-)
18
19diff --git a/CMakeLists.txt b/CMakeLists.txt
20index 3b0b87c..41ddf58 100644
21--- a/CMakeLists.txt
22+++ b/CMakeLists.txt
23@@ -1,3 +1,5 @@
24+cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
25+
26 # Project
27 project(libftdi1 C)
28 set(MAJOR_VERSION 1)
29@@ -12,7 +14,6 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "")
30 set(CMAKE_BUILD_TYPE RelWithDebInfo)
31 endif("${CMAKE_BUILD_TYPE}" STREQUAL "")
32 set(CMAKE_COLOR_MAKEFILE ON)
33-cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
34
35 add_definitions(-Wall)
36
37@@ -202,30 +203,25 @@ set ( LIBFTDI_VERSION_MINOR ${MINOR_VERSION} )
38
39 set ( LIBFTDI_USE_FILE ${CMAKE_INSTALL_PREFIX}/${LIBFTDI_CMAKE_CONFIG_DIR}/UseLibFTDI1.cmake )
40
41-if(CMAKE_VERSION VERSION_LESS 2.8.8)
42- configure_file ( cmake/LibFTDI1Config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/LibFTDI1Config.cmake @ONLY )
43- configure_file ( cmake/LibFTDI1ConfigVersion.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/LibFTDI1ConfigVersion.cmake @ONLY )
44-else ()
45- include(CMakePackageConfigHelpers)
46-
47- configure_package_config_file (
48- cmake/LibFTDI1Config.cmake.in
49- ${CMAKE_CURRENT_BINARY_DIR}/LibFTDI1Config.cmake
50- INSTALL_DESTINATION ${LIBFTDI_CMAKE_CONFIG_DIR}
51- PATH_VARS
52- LIBFTDI_USE_FILE
53- LIBFTDI_ROOT_DIR
54- LIBFTDI_INCLUDE_DIR
55- LIBFTDI_INCLUDE_DIRS
56- LIBFTDI_LIBRARY_DIRS
57- NO_CHECK_REQUIRED_COMPONENTS_MACRO
58- )
59- write_basic_package_version_file (
60- LibFTDI1ConfigVersion.cmake
61- VERSION ${LIBFTDI_VERSION_STRING}
62- COMPATIBILITY AnyNewerVersion
63- )
64-endif ()
65+include(CMakePackageConfigHelpers)
66+
67+configure_package_config_file (
68+ cmake/LibFTDI1Config.cmake.in
69+ ${CMAKE_CURRENT_BINARY_DIR}/LibFTDI1Config.cmake
70+ INSTALL_DESTINATION ${LIBFTDI_CMAKE_CONFIG_DIR}
71+ PATH_VARS
72+ LIBFTDI_USE_FILE
73+ LIBFTDI_ROOT_DIR
74+ LIBFTDI_INCLUDE_DIR
75+ LIBFTDI_INCLUDE_DIRS
76+ LIBFTDI_LIBRARY_DIRS
77+ NO_CHECK_REQUIRED_COMPONENTS_MACRO
78+)
79+write_basic_package_version_file (
80+ LibFTDI1ConfigVersion.cmake
81+ VERSION ${LIBFTDI_VERSION_STRING}
82+ COMPATIBILITY AnyNewerVersion
83+)
84
85
86 install ( FILES
diff --git a/meta-oe/recipes-support/libftdi/files/0002-CMake-require-2.8.12-for-cmake_example.patch b/meta-oe/recipes-support/libftdi/files/0002-CMake-require-2.8.12-for-cmake_example.patch
new file mode 100644
index 0000000000..a31a67df88
--- /dev/null
+++ b/meta-oe/recipes-support/libftdi/files/0002-CMake-require-2.8.12-for-cmake_example.patch
@@ -0,0 +1,24 @@
1From 579c08ec00d7cfd72071a86c67fb3b3c5fec5a9e Mon Sep 17 00:00:00 2001
2From: Yegor Yefremov <yegorslists@googlemail.com>
3Date: Thu, 31 Aug 2023 09:23:29 +0200
4Subject: [PATCH] CMake: require 2.8.12 for cmake_example
5
6Make CMake minimal version requirement consistent for the entire
7project.
8
9Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
10Upstream-Status: Backport [61a6bac98bbac623fb33b6153a063b6436f84721]
11---
12 examples/cmake_example/CMakeLists.txt | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/examples/cmake_example/CMakeLists.txt b/examples/cmake_example/CMakeLists.txt
16index fe203ed..264752d 100644
17--- a/examples/cmake_example/CMakeLists.txt
18+++ b/examples/cmake_example/CMakeLists.txt
19@@ -1,4 +1,4 @@
20-cmake_minimum_required ( VERSION 2.8 )
21+cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
22
23 project ( example C )
24
diff --git a/meta-oe/recipes-support/libftdi/files/0003-CMake-bump-the-minimal-required-version-to-3.5.patch b/meta-oe/recipes-support/libftdi/files/0003-CMake-bump-the-minimal-required-version-to-3.5.patch
new file mode 100644
index 0000000000..b541cb69f4
--- /dev/null
+++ b/meta-oe/recipes-support/libftdi/files/0003-CMake-bump-the-minimal-required-version-to-3.5.patch
@@ -0,0 +1,34 @@
1From e6d18a015907b22345bf8994110f68f0609949a9 Mon Sep 17 00:00:00 2001
2From: Yegor Yefremov <yegorslists@googlemail.com>
3Date: Tue, 12 Dec 2023 14:20:36 +0100
4Subject: [PATCH] CMake: bump the minimal required version to 3.5
5
6Older CMake versions are treated as deprecated.
7
8Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
9Upstream-Status: Backport [de9f01ece34d2fe6e842e0250a38f4b16eda2429]
10---
11 CMakeLists.txt | 2 +-
12 examples/cmake_example/CMakeLists.txt | 2 +-
13 2 files changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/CMakeLists.txt b/CMakeLists.txt
16index 41ddf58..c37887b 100644
17--- a/CMakeLists.txt
18+++ b/CMakeLists.txt
19@@ -1,4 +1,4 @@
20-cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
21+cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
22
23 # Project
24 project(libftdi1 C)
25diff --git a/examples/cmake_example/CMakeLists.txt b/examples/cmake_example/CMakeLists.txt
26index 264752d..cbdd2e4 100644
27--- a/examples/cmake_example/CMakeLists.txt
28+++ b/examples/cmake_example/CMakeLists.txt
29@@ -1,4 +1,4 @@
30-cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
31+cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
32
33 project ( example C )
34
diff --git a/meta-oe/recipes-support/libftdi/libftdi_1.5.bb b/meta-oe/recipes-support/libftdi/libftdi_1.5.bb
index 8c30eca0e7..6faab82ad5 100644
--- a/meta-oe/recipes-support/libftdi/libftdi_1.5.bb
+++ b/meta-oe/recipes-support/libftdi/libftdi_1.5.bb
@@ -14,6 +14,9 @@ DEPENDS = "libusb1 python3 swig-native"
14SRC_URI = "\ 14SRC_URI = "\
15 http://www.intra2net.com/en/developer/${BPN}/download/${BPN}1-${PV}.tar.bz2 \ 15 http://www.intra2net.com/en/developer/${BPN}/download/${BPN}1-${PV}.tar.bz2 \
16 file://CMakeLists-txt-fix-paths-when-FTDIPP-is-set.patch \ 16 file://CMakeLists-txt-fix-paths-when-FTDIPP-is-set.patch \
17 file://0001-CMake-bump-the-minimal-required-version-to-2.8.12.patch \
18 file://0002-CMake-require-2.8.12-for-cmake_example.patch \
19 file://0003-CMake-bump-the-minimal-required-version-to-3.5.patch \
17" 20"
18SRC_URI[sha256sum] = "7c7091e9c86196148bd41177b4590dccb1510bfe6cea5bf7407ff194482eb049" 21SRC_URI[sha256sum] = "7c7091e9c86196148bd41177b4590dccb1510bfe6cea5bf7407ff194482eb049"
19 22
diff --git a/meta-oe/recipes-support/libp11/libp11_0.4.13.bb b/meta-oe/recipes-support/libp11/libp11_0.4.13.bb
index 1731d350ae..807d079a05 100644
--- a/meta-oe/recipes-support/libp11/libp11_0.4.13.bb
+++ b/meta-oe/recipes-support/libp11/libp11_0.4.13.bb
@@ -19,6 +19,7 @@ UPSTREAM_CHECK_GITTAGREGEX = "libp11-(?P<pver>\d+(\.\d+)+)"
19inherit autotools pkgconfig 19inherit autotools pkgconfig
20 20
21EXTRA_OECONF = "--disable-static" 21EXTRA_OECONF = "--disable-static"
22EXTRA_OECONF:append:class-native = " --with-enginesdir=${RECIPE_SYSROOT_NATIVE}/usr/lib/engines-3"
22 23
23do_install:append () { 24do_install:append () {
24 rm -rf ${D}${docdir}/${BPN} 25 rm -rf ${D}${docdir}/${BPN}
diff --git a/meta-oe/recipes-support/libusbgx/libusbgx/gadget-start b/meta-oe/recipes-support/libusbgx/libusbgx/gadget-start
index e80cb2c340..4ef679888e 100755
--- a/meta-oe/recipes-support/libusbgx/libusbgx/gadget-start
+++ b/meta-oe/recipes-support/libusbgx/libusbgx/gadget-start
@@ -15,6 +15,10 @@ for i in $ENABLED_SCHEMAS; do
15 if [ -n "${configured_udc}" ] && [ -e "/sys/class/udc/${configured_udc}" ]; then 15 if [ -n "${configured_udc}" ] && [ -e "/sys/class/udc/${configured_udc}" ]; then
16 echo ${configured_udc} > /sys/kernel/config/usb_gadget/"$i"/UDC 16 echo ${configured_udc} > /sys/kernel/config/usb_gadget/"$i"/UDC
17 else 17 else
18 ls /sys/class/udc/ > /sys/kernel/config/usb_gadget/"$i"/UDC 18 detected_udc=$(ls /sys/class/udc/)
19 if [ -z "${detected_udc}" ]; then
20 exit 1
21 fi
22 echo "${detected_udc}" > /sys/kernel/config/usb_gadget/"$i"/UDC
19 fi 23 fi
20done 24done
diff --git a/meta-oe/recipes-support/udisks/udisks2/CVE-2025-6019.patch b/meta-oe/recipes-support/udisks/udisks2/CVE-2025-6019.patch
new file mode 100644
index 0000000000..2e94c8497f
--- /dev/null
+++ b/meta-oe/recipes-support/udisks/udisks2/CVE-2025-6019.patch
@@ -0,0 +1,51 @@
1From d0d04a381036b79df91616552706d515639bb762 Mon Sep 17 00:00:00 2001
2From: Tomas Bzatek <tbzatek@redhat.com>
3Date: Wed, 4 Jun 2025 15:26:46 +0200
4Subject: [PATCH] udiskslinuxfilesystemhelpers: Mount private mounts with
5 'nodev,nosuid'
6
7The private mount done in take_filesystem_ownership() should always
8default to 'nodev,nosuid' for security and 'errors=remount-ro' for
9selected filesystem types to handle an corrupted filesystem. This is
10consistent with mount options calculation for regular mounts.
11
12CVE: CVE-2025-6019
13Upstream-Status: Backport [ https://github.com/storaged-project/udisks/commit/5e7277debea926370e587408517560afe87d28c9 ]
14
15Signed-off-by: Changqing Li <changqing.li@windriver.com>
16---
17 src/udiskslinuxfilesystemhelpers.c | 10 +++++++++-
18 1 file changed, 9 insertions(+), 1 deletion(-)
19
20diff --git a/src/udiskslinuxfilesystemhelpers.c b/src/udiskslinuxfilesystemhelpers.c
21index 7c5fc037..9eb7742c 100644
22--- a/src/udiskslinuxfilesystemhelpers.c
23+++ b/src/udiskslinuxfilesystemhelpers.c
24@@ -123,6 +123,7 @@ take_filesystem_ownership (const gchar *device,
25
26 {
27 gchar *mountpoint = NULL;
28+ const gchar *mount_opts;
29 GError *local_error = NULL;
30 gboolean unmount = FALSE;
31 gboolean success = TRUE;
32@@ -151,8 +152,15 @@ take_filesystem_ownership (const gchar *device,
33 goto out;
34 }
35
36+ mount_opts = "nodev,nosuid";
37+ if (g_strcmp0 (fstype, "ext2") == 0 ||
38+ g_strcmp0 (fstype, "ext3") == 0 ||
39+ g_strcmp0 (fstype, "ext4") == 0 ||
40+ g_strcmp0 (fstype, "jfs") == 0)
41+ mount_opts = "nodev,nosuid,errors=remount-ro";
42+
43 /* TODO: mount to a private mount namespace */
44- if (!bd_fs_mount (device, mountpoint, fstype, NULL, NULL, &local_error))
45+ if (!bd_fs_mount (device, mountpoint, fstype, mount_opts, NULL, &local_error))
46 {
47 g_set_error (error, UDISKS_ERROR, UDISKS_ERROR_FAILED,
48 "Cannot mount %s at %s: %s",
49--
502.34.1
51
diff --git a/meta-oe/recipes-support/udisks/udisks2_2.10.1.bb b/meta-oe/recipes-support/udisks/udisks2_2.10.1.bb
index 85859cd968..cc0c19ec8e 100644
--- a/meta-oe/recipes-support/udisks/udisks2_2.10.1.bb
+++ b/meta-oe/recipes-support/udisks/udisks2_2.10.1.bb
@@ -20,6 +20,7 @@ RDEPENDS:${PN} = "acl"
20SRC_URI = " \ 20SRC_URI = " \
21 git://github.com/storaged-project/udisks.git;branch=2.10.x-branch;protocol=https \ 21 git://github.com/storaged-project/udisks.git;branch=2.10.x-branch;protocol=https \
22 file://0001-Makefile.am-Dont-include-buildpath.patch \ 22 file://0001-Makefile.am-Dont-include-buildpath.patch \
23 file://CVE-2025-6019.patch \
23" 24"
24SRCREV = "18c9faf089e306ad6f3f51f5cb887a6b9aa08350" 25SRCREV = "18c9faf089e306ad6f3f51f5cb887a6b9aa08350"
25 26