Skip to content

Commit 9f3f6da

Browse files
Merge branch 'openwrt:main' into wax206
2 parents 4436cec + 557c174 commit 9f3f6da

100 files changed

Lines changed: 3555 additions & 5794 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

config/Config-build.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,15 @@ menu "Global build settings"
250250

251251
comment "Hardening build options"
252252

253+
config PKG_FANALYZER
254+
bool
255+
prompt "Enable gcc fanalyzer"
256+
default n
257+
help
258+
Add -fanalyzer to the CFLAGS. As a result of this option, a static analysis
259+
of the program flow is conducted, allowing interprocedural paths to be
260+
identified and warnings to be issued if problems are identified.
261+
253262
config PKG_CHECK_FORMAT_SECURITY
254263
bool
255264
prompt "Enable gcc format-security"

include/hardening.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ PKG_SSP ?= 1
99
PKG_FORTIFY_SOURCE ?= 1
1010
PKG_RELRO ?= 1
1111
PKG_DT_RELR ?= 1
12+
PKG_FANALYZER ?= 0
1213

1314
ifdef CONFIG_PKG_CHECK_FORMAT_SECURITY
1415
ifeq ($(strip $(PKG_CHECK_FORMAT_SECURITY)),1)
@@ -77,3 +78,8 @@ ifdef CONFIG_PKG_DT_RELR
7778
endif
7879
endif
7980

81+
ifdef CONFIG_PKG_FANALYZER
82+
ifeq ($(strip $(PKG_FANALYZER)),1)
83+
TARGET_CFLAGS += -fanalyzer
84+
endif
85+
endif

include/package-pack.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ endif
280280
)
281281
endif
282282

283-
$(INSTALL_DIR) $$(PDIR_$(1))/tmp
283+
$(INSTALL_DIR) $$(PDIR_$(1))
284284

285285
ifeq ($(CONFIG_USE_APK),)
286286
mkdir -p $$(IDIR_$(1))/CONTROL

package/network/utils/bpftool/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
include $(TOPDIR)/rules.mk
99

1010
PKG_NAME:=bpftool
11-
PKG_VERSION:=7.5.0
11+
PKG_VERSION:=7.6.0
1212
PKG_RELEASE:=1
1313

1414
PKG_SOURCE_URL:=https://github.com/libbpf/bpftool
15-
PKG_MIRROR_HASH:=1da7c08959e7819772145774322ffd876f3180065be1c3759336dca98ac9f666
15+
PKG_MIRROR_HASH:=7406a424375642fda35cae6eccaa8e27c21e4f132123c0207a83f763ef6fe899
1616
PKG_SOURCE_PROTO:=git
1717
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
1818

package/network/utils/bpftool/patches/002-includes.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/Makefile
22
+++ b/src/Makefile
3-
@@ -73,10 +73,10 @@ CFLAGS += -W -Wall -Wextra -Wno-unused-p
3+
@@ -72,10 +72,10 @@ CFLAGS += -Wno-missing-field-initializer
44
CFLAGS += $(filter-out -Wswitch-enum -Wnested-externs,$(EXTRA_WARNINGS))
55
CFLAGS += -DPACKAGE='"bpftool"' -D__EXPORTED_HEADERS__ \
66
-I$(or $(OUTPUT),.) \

package/system/apk/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ PKG_RELEASE:=2
55

66
PKG_SOURCE_URL=https://gitlab.alpinelinux.org/alpine/apk-tools.git
77
PKG_SOURCE_PROTO:=git
8-
PKG_SOURCE_DATE:=2025-10-07
9-
PKG_SOURCE_VERSION:=6ffc65c63004b8d991ead4ea0f3d80e05b06b977
10-
PKG_MIRROR_HASH:=388e0210247a49099f49e783ff3d0753bed26bbb91acec2dd2d5722aca5daf6f
8+
PKG_SOURCE_DATE:=2025-11-10
9+
PKG_SOURCE_VERSION:=2c027261492169783f6aaa2b7731a4e90dc7a5b0
10+
PKG_MIRROR_HASH:=177769a6b7a4b0a2117ed4326060eb08b19c1b930a8a92b7c25d2f56154f497e
1111

1212
PKG_VERSION=3.0.0_pre$(subst -,,$(PKG_SOURCE_DATE))
1313

package/system/apk/patches/0001-openwrt-move-layer-db-to-temp-folder.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Signed-off-by: Paul Spooren <mail@aparcar.org>
1010

1111
--- a/src/database.c
1212
+++ b/src/database.c
13-
@@ -1856,7 +1856,7 @@ const char *apk_db_layer_name(int layer)
13+
@@ -1937,7 +1937,7 @@ const char *apk_db_layer_name(int layer)
1414
{
1515
switch (layer) {
1616
case APK_DB_LAYER_ROOT: return "lib/apk/db";
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
From aa71510f843d5cce5f75b6abfa3a70caeacbe36d Mon Sep 17 00:00:00 2001
2+
From: Rosen Penev <rosenp@gmail.com>
3+
Date: Thu, 20 Nov 2025 18:26:52 -0800
4+
Subject: [PATCH] fix usage under LibreSSL > 3
5+
6+
crypto needs to be initialized as the context relies on it.
7+
8+
Fixes crash in EVP_DigestInit_ex being called with a NULL digest.
9+
10+
Signed-off-by: Rosen Penev <rosenp@gmail.com>
11+
---
12+
src/apk.c | 2 +-
13+
1 file changed, 1 insertion(+), 1 deletion(-)
14+
15+
--- a/src/apk.c
16+
+++ b/src/apk.c
17+
@@ -571,6 +571,7 @@ int main(int argc, char **argv)
18+
apk_argv[argc] = NULL;
19+
apk_argv[argc+1] = NULL;
20+
21+
+ apk_crypto_init();
22+
apk_ctx_init(&ctx);
23+
umask(0);
24+
setup_terminal();
25+
@@ -583,7 +584,6 @@ int main(int argc, char **argv)
26+
if (applet->parse) applet->parse(applet_ctx, &ctx, APK_OPTIONS_INIT, NULL);
27+
}
28+
29+
- apk_crypto_init();
30+
apk_io_url_init(&ctx.out);
31+
apk_io_url_set_timeout(60);
32+
apk_io_url_set_redirect_callback(redirect_callback);

package/system/apk/patches/999-small-scripts-tar.patch

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
diff --git a/doc/apk.8.scd b/doc/apk.8.scd
2-
index bd15fe75d7a4..cbac8c6c8b7b 100644
31
--- a/doc/apk.8.scd
42
+++ b/doc/apk.8.scd
5-
@@ -461,7 +461,8 @@ timeout 120
3+
@@ -462,7 +462,8 @@ timeout 120
64
*/lib/apk/db/installed*
75
Database of installed packages and their contents.
86

@@ -12,23 +10,19 @@ index bd15fe75d7a4..cbac8c6c8b7b 100644
1210
Collection of all package scripts from currently installed packages.
1311

1412
*/lib/apk/db/triggers*
15-
diff --git a/src/apk_database.h b/src/apk_database.h
16-
index 9f8670ac8ebb..10f1414c9e06 100644
1713
--- a/src/apk_database.h
1814
+++ b/src/apk_database.h
19-
@@ -202,6 +202,7 @@ struct apk_database {
15+
@@ -210,6 +210,7 @@ struct apk_database {
2016
unsigned int compat_depversions : 1;
2117
unsigned int sorted_names : 1;
2218
unsigned int sorted_installed_packages : 1;
2319
+ unsigned int scripts_tar : 1;
2420

2521
struct apk_dependency_array *world;
2622
struct apk_id_cache *id_cache;
27-
diff --git a/src/database.c b/src/database.c
28-
index cbe58ebbf885..cb1b709140af 100644
2923
--- a/src/database.c
3024
+++ b/src/database.c
31-
@@ -1255,8 +1255,11 @@ static int apk_db_read_layer(struct apk_database *db, unsigned layer)
25+
@@ -1338,8 +1338,11 @@ static int apk_db_read_layer(struct apk_
3226
}
3327

3428
if (!(flags & APK_OPENF_NO_SCRIPTS)) {
@@ -42,7 +36,7 @@ index cbe58ebbf885..cb1b709140af 100644
4236
if (!ret && r != -ENOENT) ret = r;
4337
}
4438

45-
@@ -2128,8 +2131,9 @@ static int apk_db_write_layers(struct apk_database *db)
39+
@@ -2214,8 +2217,9 @@ static int apk_db_write_layers(struct ap
4640
continue;
4741
}
4842
ld->installed = apk_ostream_to_file(ld->fd, "installed", 0644);

package/system/refpolicy/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
include $(TOPDIR)/rules.mk
77

88
PKG_NAME:=refpolicy
9-
PKG_VERSION:=2.20200229
10-
PKG_RELEASE:=3
9+
PKG_VERSION:=2.20250923
10+
PKG_RELEASE:=1
1111

1212
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13-
PKG_SOURCE_URL:=https://github.com/SELinuxProject/refpolicy/releases/download/RELEASE_2_20200229
14-
PKG_HASH:=dec854512ed00cd057408f330c2cea4de7a4405f7a147458f59c994bf578e4b0
13+
PKG_SOURCE_URL:=https://github.com/SELinuxProject/refpolicy/releases/download/RELEASE_2_20250923
14+
PKG_HASH:=e5b435c934048d01ca4415a1f2670a51e113f26f5d01ad4227c98fbe8dea8d5b
1515
PKG_INSTALL:=1
1616
PKG_BUILD_DEPENDS:=checkpolicy/host policycoreutils/host
1717

0 commit comments

Comments
 (0)