🏅 Sync 2026-09-07 22:51:35

This commit is contained in:
github-actions[bot] committed 2026-09-07 22:51:35 +08:00
1 parent 6e956beb69
commit 8ff254bfa0
3 files changed
+21 -8

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ LUCI_DEPENDS:=+luci-base +logd +jsonfilter
LUCI_PKGARCH:=all LUCI_PKGARCH:=all
PKG_VERSION:=0.1.38 PKG_VERSION:=0.1.38
PKG_RELEASE:=9 PKG_RELEASE:=10
# Reproducible build: honor SOURCE_DATE_EPOCH from the build environment (set by docker-sdk.sh / CI). # Reproducible build: honor SOURCE_DATE_EPOCH from the build environment (set by docker-sdk.sh / CI).
ifdef SOURCE_DATE_EPOCH ifdef SOURCE_DATE_EPOCH
+18 -5
View File
@@ -303,6 +303,8 @@ build_rules_map() {
if nft_list_ruleset >"$_rules_dump" 2>/dev/null; then if nft_list_ruleset >"$_rules_dump" 2>/dev/null; then
map_from_nft_stream labeled <"$_rules_dump" map_from_nft_stream labeled <"$_rules_dump"
map_from_nft_stream unlabeled <"$_rules_dump" map_from_nft_stream unlabeled <"$_rules_dump"
elif [ -z "$_enrich_error" ]; then
_enrich_error='nft_failed'
fi fi
rm -f "$_rules_dump" rm -f "$_rules_dump"
else else
@@ -315,6 +317,8 @@ build_rules_map() {
if run_with_timeout "$IPTABLES_TIMEOUT" iptables-save >"$_rules_dump" 2>/dev/null; then if run_with_timeout "$IPTABLES_TIMEOUT" iptables-save >"$_rules_dump" 2>/dev/null; then
map_from_iptables_save_stream labeled <"$_rules_dump" map_from_iptables_save_stream labeled <"$_rules_dump"
map_from_iptables_save_stream unlabeled <"$_rules_dump" map_from_iptables_save_stream unlabeled <"$_rules_dump"
elif [ -z "$_enrich_error" ]; then
_enrich_error='iptables_failed'
fi fi
rm -f "$_rules_dump" rm -f "$_rules_dump"
else else
@@ -326,6 +330,8 @@ build_rules_map() {
if run_with_timeout "$IPTABLES_TIMEOUT" ip6tables-save >"$_rules_dump" 2>/dev/null; then if run_with_timeout "$IPTABLES_TIMEOUT" ip6tables-save >"$_rules_dump" 2>/dev/null; then
map_from_iptables_save_stream labeled <"$_rules_dump" map_from_iptables_save_stream labeled <"$_rules_dump"
map_from_iptables_save_stream unlabeled <"$_rules_dump" map_from_iptables_save_stream unlabeled <"$_rules_dump"
elif [ -z "$_enrich_error" ]; then
_enrich_error='ip6tables_failed'
fi fi
rm -f "$_rules_dump" rm -f "$_rules_dump"
elif [ -z "$_enrich_error" ]; then elif [ -z "$_enrich_error" ]; then
@@ -335,6 +341,9 @@ build_rules_map() {
;; ;;
esac esac
if [ "$backend" = unknown ] && [ -z "$_enrich_error" ]; then
_enrich_error='no_backend'
fi
_rules_json="{\"backend\":\"$backend\",\"rules\":{$OUT}" _rules_json="{\"backend\":\"$backend\",\"rules\":{$OUT}"
if [ -n "$_enrich_error" ]; then if [ -n "$_enrich_error" ]; then
_rules_json="${_rules_json},\"error\":\"${_enrich_error}\"" _rules_json="${_rules_json},\"error\":\"${_enrich_error}\""
@@ -425,8 +434,12 @@ fetch_firewall_logs() {
input="$1" input="$1"
lines=$(poll_lines_from_input "$input") lines=$(poll_lines_from_input "$input")
# lines is numeric-clamped; stream/oneshot are fixed (not caller-controlled). # lines is numeric-clamped; stream/oneshot are fixed (not caller-controlled).
raw=$(ubus call log read "{\"lines\":$lines,\"stream\":false,\"oneshot\":true}" 2>/dev/null) \ # A dead logd must not look like an empty firewall table (#303): return a
|| raw='{"log":[]}' # structured error instead of filtering an empty fallback into {"log":[]}.
if ! raw=$(ubus call log read "{\"lines\":$lines,\"stream\":false,\"oneshot\":true}" 2>/dev/null); then
printf '%s' '{"log":[],"error":"log_read_failed"}'
return 0
fi
# Do not swallow a filter failure into a silent empty table (#220). # Do not swallow a filter failure into a silent empty table (#220).
# If the filter exits non-zero but still printed JSON, keep it. # If the filter exits non-zero but still printed JSON, keep it.
@@ -437,7 +450,7 @@ fetch_firewall_logs() {
out='{"log":[],"error":"filter_failed"}' out='{"log":[],"error":"filter_failed"}'
fi fi
fi fi
[ -n "$out" ] || out='{"log":[]}' [ -n "$out" ] || out='{"log":[],"error":"filter_empty"}'
printf '%s' "$out" printf '%s' "$out"
} }
@@ -591,14 +604,14 @@ resolve_addresses() {
OUT='' OUT=''
if ! command -v jshn >/dev/null 2>&1; then if ! command -v jshn >/dev/null 2>&1; then
printf '{"names":{}}' printf '{"names":{},"error":"jshn_missing"}'
return 0 return 0
fi fi
# shellcheck disable=SC1091 # shellcheck disable=SC1091
. /usr/share/libubox/jshn.sh . /usr/share/libubox/jshn.sh
json_load "$input" 2>/dev/null || { json_load "$input" 2>/dev/null || {
printf '{"names":{}}' printf '{"names":{},"error":"invalid_input"}'
return 0 return 0
} }
+2 -2
View File
@@ -3,11 +3,11 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=proot PKG_NAME:=proot
PKG_VERSION:=5.4.0 PKG_VERSION:=5.4.0
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/proot-me/proot.git PKG_SOURCE_URL:=https://github.com/proot-me/proot.git
PKG_SOURCE_VERSION:=704a4ab7a41cf5a8bc1f66b0ebdc58cafa72d88c PKG_SOURCE_VERSION:=53f3955e75074b44adcb15b7f1ff8215f55bf392
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/feeds/packages/lang/python/python3-version.mk include $(TOPDIR)/feeds/packages/lang/python/python3-version.mk