* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 4fd907b33cb24d831be24dc0ec645f17a74a4907
@ 2026-11-28 14:40 Michael Tremer
0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2026-11-28 14:40 UTC (permalink / raw)
To: ipfire-scm
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 180143 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via 4fd907b33cb24d831be24dc0ec645f17a74a4907 (commit)
via e79b0d997e53c9f27e10f77a24b34bca8c882004 (commit)
via 8d0c8435fdfb980bae3791316ecbcde96e76a53c (commit)
via 26d205286206ec2c8560f69e4100b5ffa9ce4e81 (commit)
via e0c42afb3abb3cd2b3fd11cbe44f13507f195e0f (commit)
via 073d70fc32d301f126cae1a20c634d3996bf7a62 (commit)
via fdad52f7bd2bb814b0e116468899648a2f903935 (commit)
via 4df3f085865047ab2469768621476688a65a83c0 (commit)
via 1d51fc226b43fa2c662f5136b3f822ddcf59d624 (commit)
via 39d237f331c82f66763ecc205ecff4c7d17c86f4 (commit)
via 23827a57d62a62c51a43831ad6635542ce05b765 (commit)
via b63365dc77fcf7c07ecaf158ad30d7d30e1bca72 (commit)
via c16860c662ce55753bb0763bd897616778b061c4 (commit)
via 86a4617b09b4c2431ef25aaa7c50fa81339f0337 (commit)
via c5fedf6a4694536bc5661fb03e5f338b2ff373e3 (commit)
via 8c23a4bb4734058b5fe12ecbfdd8a8db80e8a528 (commit)
via 5b1c4ec3f63f205aea25347ed8451f38953314b4 (commit)
via abd09d73d71a58c1c7798bbec0df856b64229803 (commit)
via a093ef688101ef0fbf54adebf1a0df036fa932ab (commit)
via 067e68d8b3b006d9adc09816a91070ba4f2208ed (commit)
via e48e3f8336977ed7433fd4dba63bd552f2629043 (commit)
via 2882a76e9d03eab4137b14f8869f29c69dbc49dc (commit)
via f686ea01aafadea18e2a2dc272100b841eda2e01 (commit)
via de0eac78aaca3d3b04607574aff4ca6894a15e6e (commit)
via 5b82b418e0b388f0a75064268cc536522b138439 (commit)
via 7b13517d21368e8404bb35c31909146238a4f6ac (commit)
via 750a3b445b32f445ff42e8ba72adf86981c9060b (commit)
via 2a5408537c2b34ec73fcfeda10abfa6dc3aba84d (commit)
via 0742ada707629bd1707f98dd21e6a450f8216ced (commit)
via 06c3dac9c4e9ae6d0106e174477516ab2bc62fe9 (commit)
via bd0aaec8ee45ffa7f54f4147ddd14ee1e5057bb6 (commit)
via 060751672ee4c86f76995999988130e0837583d8 (commit)
via 43d2e0c6936c47f06f39f620b19d9394c40f8386 (commit)
via f2ea279a17bb2d20ad40803bf2b536bab86584c5 (commit)
via 506f85af4a2d5cb26f924ab2ebda48989aef55ea (commit)
via 86135887529d860ac5bbe11259cead7258b717d8 (commit)
from 1016819fc3e74bc35ad72939c6acc96e6f744bb7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4fd907b33cb24d831be24dc0ec645f17a74a4907
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Fri Nov 27 14:50:35 2026 +0000
core208: Regenerate the DHCP configuration
The event handlers have changed so that dhcpd passes the lease time.
The leases database is migrated before the resolver is restarted.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit e79b0d997e53c9f27e10f77a24b34bca8c882004
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Fri Nov 27 14:50:35 2026 +0000
core208: Ship the leases database changes
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 8d0c8435fdfb980bae3791316ecbcde96e76a53c
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Fri Nov 27 14:50:35 2026 +0000
knot-resolver: Do not serve leases that have ended
The leases database did not know when a lease ends, so a record was
served until dhcpd ran its expiry event or the database was cleaned up
when dhcpd was started. After a subnet had been changed or removed,
dhcpd would not run any expiry events for its leases, and stale records
could be served for a long time.
dhcpd now passes the lease time when a lease is committed and the time
when the lease ends is stored in the database. The resolver ignores any
leases that have ended. Databases that have been created before are
migrated automatically.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 26d205286206ec2c8560f69e4100b5ffa9ce4e81
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Fri Nov 27 14:50:35 2026 +0000
dhcp-lease: Truncate the WAL when cleaning up the database
SQLite reuses the WAL from the start after a checkpoint, but never
shrinks it. The WAL is now checkpointed and truncated when the database
is cleaned up, waiting briefly for any readers to finish.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit e0c42afb3abb3cd2b3fd11cbe44f13507f195e0f
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Fri Nov 27 14:50:35 2026 +0000
knot-resolver: Do not answer reverse lookups from leases if DHCP is disabled
If DHCP is disabled on all zones, nothing removes any leftover records
from the leases database. Those must not be served.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 073d70fc32d301f126cae1a20c634d3996bf7a62
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Thu Nov 26 19:08:13 2026 +0000
knot-resolver: Look up all reverse queries in the leases database
Reverse lookups were only answered from the leases database for the
GREEN and BLUE subnets. Leases handed out from any additional subnets
in dhcpd.conf.local were never found, and the resolver answered with
NXDOMAIN from its built-in empty zones for private address ranges.
All reverse lookups are now checked against the leases database first.
If an address is unknown, the query falls through and is resolved
normally.
The leases module also reset its prepared statements only before the
next lookup, which kept a read transaction open after every successful
lookup. This prevented the WAL from ever being reset, so it kept
growing. Statements are now reset straight after they have been read.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit fdad52f7bd2bb814b0e116468899648a2f903935
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:11 2026 +0100
core208: Ship zstd
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit 4df3f085865047ab2469768621476688a65a83c0
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:10 2026 +0100
core208: Ship screen
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit 1d51fc226b43fa2c662f5136b3f822ddcf59d624
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:09 2026 +0100
core208: Ship libffi
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit 39d237f331c82f66763ecc205ecff4c7d17c86f4
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:08 2026 +0100
core208: Ship harfbuzz
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit 23827a57d62a62c51a43831ad6635542ce05b765
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:07 2026 +0100
core208: Ship glib
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit b63365dc77fcf7c07ecaf158ad30d7d30e1bca72
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:06 2026 +0100
core208: Ship flex
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit c16860c662ce55753bb0763bd897616778b061c4
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Sat Nov 28 12:11:25 2026 +0100
libmpg123: Update PROG to libmpg123
- A previous fix to the dependency name in the lame lfs from mpg123 to libmpg123 was
not enough to fix the problem of installing minidlna as the entyry for PROG had also
been put as mpg123.
- User on forum detected this with update to CU206 so would be good to get this fix in
CU207
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit 86a4617b09b4c2431ef25aaa7c50fa81339f0337
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:21 2026 +0100
zstd: Update to version 1.6.0
- Update from version 1.5.7 to 1.6.0
- Update of rootfile
- 1 CVE fix
- Changelog
1.6.0
Zstandard doesn't escape the tidal wave of bug hunting currently sweeping
the industry.
This release comes mid-way through an effort that was initially meant to
bring you the next version of Zstandard. Instead, it was refocused on
answering the avalanche of reports received in the past few weeks.
Thankfully, most of them are minor (or duplicates), but one of them is
going to be published as a CVE, and that is why we are publishing this
early release today.
We'll continue working on the initially intended scope of Zstandard v1.6.x
in the coming weeks. In the meantime, updating to v1.6.0 is highly recommended.
edit: CVE published, this is CVE-2026-124851
fix: streaming decompression of malformed data could expose uninitialized memory
(#5023)
fix: multithreaded compression with ZSTD_CCtx_refPrefix() could rarely emit a
valid frame encoding wrong data, depending on thread timing (#5012)
fix: out-of-bounds read and write in the DDict hash table when using
ZSTD_d_refMultipleDDicts (#4731)
fix: use-after-free of a ZSTD_DCtx_refPrefix() prefix after ZSTD_DCtx_reset()
following a malformed frame header (#4848)
fix: out-of-bounds read with ZSTD_c_stableInBuffer after an abandoned frame or a
changed input buffer, reported by @IlyaGrebnov (#4943)
fix: multithreaded compression use-after-free when freeing or resetting a
context during an abandoned frame (#4871)
fix: multithreaded streaming compression accepted a wrong pledged source size,
producing corrupted frames (#4931)
fix: prepared dictionary decompression now rejects matches into formatted
dictionary headers (#4991)
fix: on a static DCtx, ZSTD_DCtx_loadDictionary() and ZSTD_DCtx_refPrefix()
return ZSTD_error_memory_allocation for nonempty dictionaries (#4914)
fix: wild reads when compressing with large dictionaries whose repcodes point
into discarded content (#4915)
fix: memory corruption in ZSTD_compressSequences() and
ZSTD_compressSequencesAndLiterals() with small dst, overflowing lengths, or
some invalid sequences (#4918, #4989, #5004)
fix: out-of-bounds write with ZSTD_c_targetCBlockSize and ZSTD_compress2() into
a dst smaller than ZSTD_compressBound() (#4981)
fix: high compression levels read uninitialized statistics with some
dictionaries (#4978)
fix: 32-bit multithreaded compression with large windows (#4946, #4948)
fix: 32-bit builds rejected valid dictionary IDs above 4294967176 (#4976)
fix: excessive memory usage with long distance matching and small windows (#4626)
fix: CDict and DDict creation and size estimation reject dictionary sizes that
overflow (#4912)
fix: crash when a custom allocator fails (#4613), data race when resizing a
thread pool (#4601)
fix: legacy decoders: out-of-bounds reads, wrong streaming output, and offset
validation (#4555, #4815, #4816, #4817, #4913, #4955, #4957)
api: legacy format support is now disabled by default (#4554)
api: experimental ZSTD_d_refMultipleDDicts requires an exact dictionary ID
match: a missing nonzero ID returns ZSTD_error_dictionary_wrong instead of
falling back to the current dictionary (#4929)
api: disabling experimental ZSTD_d_refMultipleDDicts releases every dictionary
reference of its set (#4929)
api: removed the deprecated experimental functions ZSTD_copyCCtx() and
ZSTD_copyDCtx() (#4960)
api: promoted ZSTD_getFrameHeader() and ZSTD_FrameHeader to the stable API (#2471)
api: promoted ZSTD_createDDict_byReference(),
ZSTD_DCtx_loadDictionary_advanced(), and ZSTD_CCtx_loadDictionary_advanced()
to the stable API, along with ZSTD_dictContentType_e and
ZSTD_dictLoadMethod_e (#4283, #3723)
api: ZSTD_decompressDCtx(), ZSTD_decompress_usingDict() and
ZSTD_decompress_usingDDict() reset an unfinished streaming session, as
documented (#4975)
api: ZSTD_DCtx_loadDictionary() returns ZSTD_error_dictionary_corrupted for a
corrupted dictionary, instead of ZSTD_error_memory_allocation (#4925)
api: ZSTD_compressSequencesAndLiterals() enforces its documented limits on block
size and litBufCapacity (#4741, #4782)
api: ZSTD_decompressContinue() returns ZSTD_error_stage_wrong when not preceded
by ZSTD_decompressBegin() (#4937)
api: new experimental ZSTD_isDeterministicBuild() (#4331)
perf: faster decompression on AArch64 (#4413, #4414, #4418, #4509), by
@arpadpanyik-arm
perf: faster compression on AArch64 with SVE2 (#4411), by @arpadpanyik-arm
perf: faster ZSTD_compressSequencesAndLiterals() on AArch64 with Neon and SVE2
(#4429, #4440), by @arpadpanyik-arm, and on RISC-V with RVV (#4399), by
@zijianli1234
perf: faster row match finder on RISC-V with RVV (#4481), by @w1m024
cli: new --patch-apply command, equivalent to -d --patch-from (#4350)
cli: -B# renamed --jobsize=#, and benchmark --blocksize=# renamed --split=#; old
names remain supported (#4329)
cli: --filelist= supports process substitution (#4349)
cli: size arguments accept G, GB and GiB suffixes (#4609), by @Integral-Tech
cli: --memory= also limits .xz and .lzma decompression (#4903)
cli: benchmark mode uses 1 thread by default (#4475)
cli: warn when multiple threads are requested for decompression (#4335)
cli: safer file handling: no output through symbolic links (#4906), -r no longer
follows links and junctions on Windows (#4905), better same-file detection
on Windows (#4884), robust to concurrent renames (#4962, #4999, #5003, #5009)
cli: --output-dir-flat fails on output filename collisions before processing
(#4974), by @daniellerozenblit
cli: fix zstd -l infinite loop on a large skippable frame (#4833)
cli: fix --memlimit-decompress= parsing (#4916), --adapt bounds (#4982),
--patch-from with an empty file (#4896), --check with --format=lz4 (#5011)
cli: fix ZSTD_NBTHREADS=0 (#4334),
cli: fix decode-only benchmark of multiple files (#4714, #4945)
cli: zstdgrep exits 0 when any of several files matches (#4967)
zdict: fix out-of-bounds reads with small training sets (#4690, #4710, #4922),
and COVER results no longer depend on memory addresses (#4765)
contrib: seekable_format: fix out-of-bounds reads, infinite loops and error
recovery on malformed seek tables (#4712, #4717, #4902, #4941, #4942, #4958)
contrib: zlibWrapper: no longer writes an empty gzip member after Z_FINISH (#4818)
build: ZSTD_LEGACY_SUPPORT defaults to 0 in all build systems (#4554, #4781)
build: root CMakeLists.txt wrapper (#4491)
build: cmake: C++ only required for tests (#4357), ASM only enabled when needed
(#4504), separate export groups (#4494), static API visibility applied to
the shared library (#4789), Android build (#4447)
build: fix cmake with clang-cl (#4810, #4972),
build: fix meson on Windows (#4322), duplicate LC_RPATH on macOS 15.4+ (#4371),
Swift module map (#4531), musl (#4336), OpenBSD and NetBSD (#4463)
build: meson calls meson.override_dependency() (#4472), by @bgilbert
build: Windows release binaries support lz4 (#4327), and new Windows ARM64
binaries (#4465)
portability: RISC-V 64-bit detection (#4525)
doc: clarified Block_Maximum_Size in the format specification
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit c5fedf6a4694536bc5661fb03e5f338b2ff373e3
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:20 2026 +0100
screen: Update to version 5.0.3
- Update from version 5.0.1 to 5.0.3
- Update of rootfile
- Changelog
5.0.3
* Fixes:
- encoding fixes
- restore rendition attribute modifiers (bug #67154)
- Fix uninitialized buffer with padding escapes
- Fix off-by-one in resize CheckMaxSize guard
- manpage: correct rendition syntax and examples
- security: add SocketPath size check
5.0.2
* Add %* escape to output caret character literal ("^")
* Add portable PAM conversation callback prototype (for Solaris)
* Fixes:
- type in screen on big-endian systems
- UTF-8 combining sequences
- typos
- buffer overflow in SendCmdMessage()
- detaching fail with empty terminfo and leave the session
attached
- eliminates the TOCTOU race
- manpage fixes
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit 8c23a4bb4734058b5fe12ecbfdd8a8db80e8a528
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:19 2026 +0100
postfix: Update to version 3.11.8
- Update from version 3.11.7 to 3.11.8
- No change in rootfile
- Changelog
3.11.8
Incompatible changes due to bugfixes
Postfix 3.11.8, 3.10.15, 3.9.16, 3.8.22, 3.7.24, 3.6.22, 3.5.29:
[TLS protocol syntax change] Relevant if your configuration contains
">=" or "<=" followed by SPACE. To avoid breaking configurations,
Postfix will now treat ">= SPACE protocol-name" as ">=protocol-name, and
"<= SPACE protocol-name" as "<=protocol-name". The forms "<=" or ">="
(i.e. not attached to a protocol name) were treated as "<=0x0" or
">=0x0" (i.e. no upper or lower bound) and are now treated as syntax
errors. Solution: look for "<=" or ">=" followed by SPACE and correct
the syntax.
[SMTP client DNS total time limit] Relevant if you are sending mail
over very slow network connections to domains with a huge number
of SMTP server IP addresses. The Postfix SMTP client now enforces
a 100-second time limit on SMTP server IP address lookups per
delivery request. This reduces the impact from denial of service
attacks in which a hostile DNS operator returns up to 100 MX host
names and deliberately lets each address lookup request time out.
[:include: /path/to/file read permission] Relevant if your root-owned
aliases file contains ":include:/path/to/file", where "/path/to/file" is a
symlink or hardlink to a file with a different owner than the "/path/to"
directory. The Postfix local delivery agent will now defer delivery if
the "/path/to" owner has no permission to read "/path/to/file".
Workaround: make /path/to/file world-readable.
Major changes - database
[Incompat 20260220] The alias_maps and alias_database parameter
default values have changed from hash:/path/to/aliases (or
dbm:/path/to/aliases) to $default_database_type:/path/to/aliases.
This simplifies the migration away from Berkeley DB.
[Infrastructure 20260219] Support to migrate a Postfix configuration
that uses Berkeley DB hash: or btree: tables, to a configuration
that uses lmdb: or a combination of cdb: and lmdb:. This is needed
for (Linux) OS distributions that have removed Berkeley DB support.
See NON_BERKELEYDB_README for manual and automatic migration support.
Postfix already supports CDB and LMDB for more than 10 years. It
may be a good idea to do the migration before you need to upgrade
to an OS distribution that no longer supports Berkeley DB.
[Infrastructure 20251226] Tooling to help with the migration away
from Berkeley DB.
The new parameter default_cache_db_type controls the default database
type for address_verify_map, postscreen_cache_map, and
smtp_sasl_auth_cache_name, previously hard-coded as 'btree'.
[Feature 20250321] Safety: the SQLite client now logs a warning
when a query uses double quotes instead of the Postfix-recommended
single quotes. Only the recommended form is protected against SQL
injection.
[Feature 20250509] Support to run all memcache lookup keys through
an OpenSSL digest function. This prevents a database access error
when lookup keys may exceed the memcache server's key length limit
(usually, 250 bytes).
[Feature 20250624] Support for a new "debug:" pseudo lookup table.
Specify debug:maptype:mapname to encapsulate a maptype:mapname
lookup table and log all access. This builds on existing but unused
code to log table access. Contributed by Richard Hansen.
[Infrastructure 20250626] Overhauled in-memory lookup table life-cycle
management; overhauled sharing/isolation for proxied lookup tables.
Major changes - deprecation
[Feature 20250609] smtp_tls_enforce_peername and lmtp_tls_enforce_peername
are now officially deprecated. Postfix will log a warning until the
features are deleted. See DEPRECATION_README for a summary of
deprecated and deleted features.
[Feature 20251027] This adds 12 more deprecation warnings for
parameters that have been renamed in the past, and that still provide
a backwards-compatible default value for their replacement. The
parameters deprecated by this change are: authorized_verp_clients,
fallback_relay, lmtp_per_record_deadline, postscreen_blacklist_action,
postscreen_dnsbl_ttl, postscreen_dnsbl_whitelist_threshold,
postscreen_whitelist_interfaces, smtpd_client_connection_limit_exceptions,
smtp_per_record_deadline, tlsproxy_client_level, tlsproxy_client_policy,
virtual_maps.
[Feature 20251028] Deprecate the smtp_cname_overrides_servername
and lmtp_cname_overrides_servername parameters, and delete documentation
that has been obsolete since Postfix 2.11.
Major changes - logging
[Feature 20250910] TLS feature policy status summary in delivery
status logging. This shows the desired and actual TLS security level
enforcement status and, if a message requests REQUIRETLS, the
REQUIRETLS policy enforcement status. For a list of examples see
https://www.postfix.org/postconf.5.html#smtp_log_tls_feature_status
[Feature 20251216] After a delivery failure, the bounce daemon
logged "<old-queue-id>: sender non-delivery notification: <new-queue-id>"
only if the notification was queued successfully. The bounce daemon
now always logs this, making Postfix behavior easier to understand.
Visible changes for logfile analyzers:
- The bounce daemon now logs "<old-queue-id>: sender non-delivery
notification: <new-queue-id>" BEFORE the cleanup daemon logs activity
with "<new-queue-id>". Previously, the bounce daemon logged the
old<=>new queue ID connection later, which made logfile analysis
more difficult.
- The bounce daemon now logs a logfile record "<old-queue-id>:
sender notification failed to <address>: <reason>" when the
notification was not queued. In some cases it will log "<old-queue-id>:
sender notification failed to <address>" (without the reason). In
those cases the failure reason was already logged by lower-level
code, but without the queue ID.
Major changes - management tool integration
[Feature 20251124] Basic JSON output support with "postconf
-j|-jM|-jF|-jP", "postalias -jq|-js", "postmap -jq|-js", and
"postmulti -jl". No support is planned for JSON input support.
Major changes - milter support
[Feature 20251208] Improved Milter error handling for messages that
arrive over a long-lived SMTP connection, by changing the default
milter_default_action from "tempfail" to the new "shutdown" action
(i.e. disconnect the remote SMTP client).
This avoids a worst-case scenario where after a single Milter error,
Postfix would tempfail all messages that the client sends over a
long-lived connection, even if the Milter error was only temporary.
Major changes - mime support
[Feature 20251104] New non_empty_end_of_header_action parameter
with the cleanup(8) server action when a primary message header is
terminated with a non-empty line:
1) fix_quietly: Insert an empty line before the offending text (the
backwards-compatible default),
2) add_header: Insert a MIME-Error: header before inserting an empty
line, or
3) reject: Log a "mime-error" and reject the message.
Note that the 'empty line' separator is not used for DKIM signature
checks. Therefore, adding a missing separator does not break DKIM.
Major changes - mta-sts
[Feature 20250906] Workaround for an interface mis-match between
the Postfix SMTP client and MTA-STS policy plugins. This introduces
a new parameter "smtp_tls_enforce_sts_mx_patterns" (default: "yes").
The MTA-STS plugin configuration needs to enable TLSRPT support,
so that it forwards STS policy attributes to Postfix. This works
even if Postfix TLSRPT support is disabled at build time or at
runtime.
With the above two configurations, the Postfix SMTP client will
connect to an MX host only if its name matches any STS policy MX
host pattern, and will match a server certificate against the MX
hostname. Otherwise, the old behavior stays in effect: connect to
any MX host listed in DNS, and match a server certificate against
any STS policy MX host pattern.
This code was published first in Postfix 3.11, and later back-ported
to Postfix 3.10.5.
Major changes - portability
[Feature 20241201] Support for the C23 built-in bool type. Older
Postfix releases have been updated with a makedefs script that
disables C23 built-in bool support.
Major changes - postqueue
[Feature 20251218] the postqueue (and mailq) command now also lists
recipients in bounce logfiles (in JSON output, this uses a new
object member 'bounce_reason' instead of the existing 'delay_reason').
Such recipients have already been deleted from the message queue
file, but they are still pending the creation of a non-delivery
status notification message that will be returned to the sender.
Major changes - relocated_maps
[Feature 20250608] Specify "relocated_prefix_enable = no" to disable
the hard-coded prefix "5.1.6 User has moved to " that is by default
prepended to all relocated_maps lookup results. This setting requires
that the table contains responses with both custom enhanced status
code (X.Y.Z) and text. For details, see "man 5 relocated" or
https://www.postfix.org/relocated.5.html .
Major changes - requiretls
[Feature 20241111] Support for the REQUIRETLS verb in SMTP. This,
and everything that was added later through 2025, is described in
REQUIRETLS_README.
[Feature 20250120] After a certificate check fails, or a remote
SMTP server does not announce REQUIRETLS support, the Postfix SMTP
client will override the RFC 8689 5.x.x. status and treat it as a
soft error, until there are no more alternate MX servers to try.
[Feature 20250827] New parameter requiretls_redact_dsn (default:
yes) to redact bounce messages as described in RFC 8689 section 5,
so that they don't need REQUIRETLS support on every hop in the
return path.
[Feature 20250827] smtp_requiretls_policy and lmtp_requiretls_policy
for responsible REQUIRETLS policy enforcement. REQUIRETLS must be
enforced with care, because at this time most domains do not publish
DANE or MTA-STS policies, and most MTAs and content filters do not
support REQUIRETLS.
[Feature 20250916] support for a "Require-TLS-ESMTP: yes" header
to propagate an ESMTP REQUIRETLS request through a FILTER_README
or SMTPD_PROXY_README style content filter. This header is detected
or added by the cleanup daemon and by the before-proxy-filter Postfix
SMTP server. This feature is enabled by default with
"requiretls_esmtp_header = yes". The Require-TLS-ESMTP header will
be visible to local and remote recipients. This feature can safely
be disabled when a configuration does not use REQUIRETLS, or does
not use FILTER_README or SMTPD_PROXY_README style content filters.
Major changes - smtp server
[Feature 20250801] smtpd_reject_filter_maps support to selectively
replace a reject response from the Postfix SMTP server, or from a
program that replies through the Postfix SMTP server.
Major changes - smtputf8
[Feature 20250122] New Postfix sendmail command option "-O smtputf8"
to request that deliveries over SMTP use the SMTPUTF8 extension.
This reuses logic that was introduced for REQUIRETLS.
[Feature 20250824] When a message needs to be delivered with SMTPUTF8,
but a remote server does not support it, the Postfix SMTP client
may now try alternate servers instead of returning the message
immediately. This reuses code that was implemented for REQUIRETLS.
Major changes - tls support
[Feature 20250623] This changes the Postfix SMTP client
smtp_tls_security_level default value to "may" if Postfix was built
with TLS support, and the compatibility_level is 3.11 or higher.
There is no change to the default lmtp_tls_security_level value.
It remains empty, because there is no default TLS security level
that makes sense for connections over UNIX-domain and loopback TCP
and non-loopback TCP sockets.
There also is no equivalent change for Postfix SMTP server TLS
security levels, because changing smtpd_tls_security_level is not
sufficient. Server-side TLS requires that at least one private key
and corresponding public-key certificate chain are configured.
[Feature 20251029] Debugging: depending on OpenSSL build options,
"posttls-finger -L ssl-debug" will decode TLS handshake messages.
[Feature 20251102] Post-quantum cryptography support: with OpenSSL
3.5 and later, change the tls_eecdh_auto_curves default value to
avoid problems with network infrastructure that mis-handles TLS
hello messages larger than one (Ethernet) TCP segment. This problem
is more generally known as "protocol ossification".
Major changes - tlsrpt
[Incompat 20250601] the default smtp_tlsrpt_skip_reused_handshakes
setting was changed from "yes" to "no". The new default is enabled
with compatibility level >= 3.11.
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit 5b1c4ec3f63f205aea25347ed8451f38953314b4
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:18 2026 +0100
libmicrohttpd: Update to version 1.0.11
- Update from version 1.0.10 to 1.0.11
- No change in rootfile
- Changelog
1.0.11
This is a bugfix release, fixing a minor bug
and improving performance,cutting get_req_headers()
from ~22 to ~5 instructions per header-byte value
(on x86-64).
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit abd09d73d71a58c1c7798bbec0df856b64229803
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:17 2026 +0100
libffi: Update to version 3.8.2
- Update from version 3,8,1 to 3.8.2
- Update of rootfile
- 17 GHSA security fixes
- Changelog
3.8.2
x86-64: reject vector types under the Win64 ABIs on non-Windows
builds, as documented (GHSA-v9rw-6cxm-q6rf).
CRIS: reject vector types (GHSA-j9pv-w354-7fg2).
aarch64: reserve enough stack for large by-value structs mixed
with 16-byte-aligned arguments (GHSA-wc36-xxj4-cxh5).
Pass by-value aggregates aligned beyond the stack alignment
correctly on x86-64, i386, ARM, MIPS, m88k and AArch64
(GHSA-rwpw-56v4-44r3).
powerpc64 ELFv2: fix closures overwriting the caller's frame
with float structs and _Complex arguments
(GHSA-p8c7-j6j7-h7vg), and stop padding IBM long double
aggregates (GHSA-34hv-975q-7p7w).
RISC-V, LoongArch: fix one-float structs passed after the FP
argument registers run out (GHSA-2xrh-7r9c-rwmf).
Static trampolines: make the temporary code-table file
immutable, so a forked child cannot rewrite its parent's
closures (GHSA-7qx4-vhpx-x6qm).
i386: fix ffi_raw_call argument placement and refuse raw
closures with in-memory results (GHSA-qgq7-fxgw-wrp4,
GHSA-64xf-g9qc-vf93).
MIPS: fix O32 closures returning _Complex long long
(GHSA-xh8m-x7vg-ww5m) and N32/N64 complex arguments at the
end of the argument registers (GHSA-p8w7-v539-c775).
Refuse oversized signatures instead of truncating them
(GHSA-qpm4-52vm-3xff, GHSA-j4q2-5r23-67rj,
GHSA-76jh-g582-v8x4).
SPARC: fix ffi_call with a NULL rvalue for large struct results
(GHSA-v569-599f-q4hr).
AIX: make struct layout independent of prior ffi_prep_cif calls
(GHSA-f45x-cg8q-3q9w).
LoongArch: do not write to the result buffer of a void call
(#1083).
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit a093ef688101ef0fbf54adebf1a0df036fa932ab
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:16 2026 +0100
harfbuzz: Update to version 15.2.0
- Update from version 15.1.0 to 15.2.0
- Update of rootfile
- Changelog
15.2.0
Performance and hardening:
Make GSUB and GPOS lookups, AAT kerning, and UTF decoding faster.
Raise the default work limits for shaping, rendering, and subsetting. Very
complex fonts exceeded the old limits.
Fix various crashes, hangs, and high memory use with malformed fonts.
New features:
Add a font constructor that does not install default font functions, for
clients that install their own font functions.
Add an API to get the JSTF extender glyphs of a script.
Support bitmap glyphs in CBDT format 19.
Shaping:
Fix per-syllable GSUB lookups that matched a glyph 15 syllables later,
for example in long Myanmar text.
Fix GPOS marks that attached to an earlier base when a ranged feature did
not apply to the nearest base, a regression from 7.0.0.
Fix precomposed characters that stayed decomposed in text with no marks, in
the Indic, Khmer, Myanmar, and USE shapers.
A global feature request now overrides earlier ranged requests for the same
feature. Before, the ranged request kept its value and could disable
unrelated features.
An unsupported character followed by a variation selector now gets the
not-found glyph set on the buffer, instead of always getting glyph 0.
Fix fallback mark positioning to use the x offset of the base.
Fix cross-stream kerning from the kern table. The reset value caused a
large shift. The offset used the scale of the wrong axis.
Fix missing unsafe-to-break flags in text with cross-stream kerning from
kern or kerx.
Apply the kern table in vertical text when the client requests vkrn and
GPOS does not have it.
Fix missing unsafe-to-break flags with HB_BUFFER_CLUSTER_LEVEL_GRAPHEMES.
Script-specific shaping:
The Indic shaper no longer applies init to a first syllable that follows
a letter or mark in the pre-context.
The USE shaper no longer uses a space as the base of a dependent vowel.
The vowel now gets a dotted circle.
The USE shaper now ends a word at spaces and symbols when it selects
isol, init, medi, and fina forms.
The Khmer shaper now moves only one Coeng Ro before the base, and only
when it is the first or second coeng of the syllable.
A Hangul tone mark at the start of the text now gets only one dotted circle.
An archaic trailing jamo after a Hangul syllable now gets the
unsafe-to-break flag at the character cluster levels.
Dotted circles for Hangul tone marks and prohibited vowel sequences now
keep their advance in fonts without GDEF.
Prohibited vowel sequences now get a dotted circle also when a default
ignorable, such as ZWJ, is between the vowels.
The Hebrew shaper now composes presentation forms in fonts that have
mark only under the DFLT script.
The Arabic shaper now centers stch tiles on short words and exact fits.
AAT shaping:
Fix trak tracking in vertical text, where positive tracking decreased
the spacing.
Apply the pair and class kerning of kerx together with GPOS when GPOS
has no kerning feature. Before, HarfBuzz did not apply kerx in such
fonts.
A later request for a feature now overrides earlier requests, as in
OpenType shaping.
Other shapers and font functions:
Update HarfRust to 0.16.1. The HarfRust shaper now uses the not-found glyph
set on the buffer.
Fix vertical advances of trak fonts with the CoreText font functions.
Fix the CoreText face loader, which could select the wrong face of a font
collection, or a named instance.
Fix vertical glyph origins with the FreeType font functions in fonts with
vertical bearings that are not centered, a regression from 15.1.0.
hb_ft_font_create() no longer loads a second FreeType face when FreeType
provides the default font functions.
Core library:
The deprecated hb_font_set_face() now does nothing. To use another face,
create a new font with hb_font_create().
Fix scaled glyph extents, which could be smaller than the glyph. The
extents now round outward on both axes, after scaling. The extents of
fractional outlines can grow by one unit.
Empty glyphs now have zero extents. Before, they could have a negative
width and a positive height.
Fix hb_style_get_value():
The OS/2 optical size is now in points, not in twentieths of a point.
The slant angle from fvar or STAT now includes the synthetic slant.
The function now skips STAT values that are for older sibling fonts.
Fix hb_face_collect_unicodes(), which missed most code points of cmap
format 13 subtables.
Fix the position of nested glyf components that use anchor points.
hb_buffer_get_glyph_positions() now returns zero positions for items that
the client added after the first call. Before, those positions could be
uninitialized or old.
Subsetting:
Subsetting now keeps glyph IDs if it keeps a table whose glyph IDs it
cannot change, such as an AAT, Graphite, SVG, or bitmap table. Before,
such a table referred to the wrong glyphs.
Subsetting now keeps hinting in fonts that require it for correct
rendering, even with HB_SUBSET_FLAGS_NO_HINTING.
Subsetting now removes the .notdef outline from CFF and CFF2 fonts,
as it does from glyf fonts, unless the client sets
HB_SUBSET_FLAGS_NOTDEF_OUTLINE.
Fix subsets that did not keep all glyphs produced by context rules with
many lookups, or by Indic features.
Fix subsets that did not keep the MATH data of glyphs that GSUB
produces.
Fix subsetting CFF2 fonts with FDSelect format 4, which kept only the
first Font DICT. Glyphs of other Font DICTs had wrong or no outlines.
Keep cmap subtables with the Microsoft Symbol encoding when subsetting.
Before, a font with only such subtables lost its cmap table.
Fix various subsetting problems, mostly for CFF, CFF2, and variable
fonts. Subsetting is also faster.
Rendering libraries:
Fix the BGRA byte order of the raster library on big-endian systems.
Fix color glyphs with many clipped layers, such as Bitcount Ink glyphs,
which exceeded the work limit of the raster library.
hb_raster_draw_render() now returns NULL when a glyph exceeds the work
limit, instead of an empty image.
Fix invalid PDF output of the vector library for translucent backgrounds.
Fix PNG images with an alpha channel in the PDF output of the vector
library, which wrote the alpha as a color channel.
Fix the PDF output of the vector library, which did not use the colors
from hb_vector_paint_set_custom_palette_color().
Fix a use-after-free in the GPU and vector libraries when the client
recycles a blob and keeps a sub-blob of it.
Fix the GPU library, which did not reset the group depth after a paint with
open groups. Later hb_gpu_paint_encode() calls that use groups then
returned NULL.
Fix color glyphs that the Cairo integration rendered blank, such as the
Spain flag of Noto Color Emoji, a regression from 15.1.0.
Tools, documentation, and build:
Fix hb-info --list-names repeating one string for every language of a
name.
Fix various documentation problems.
Fix various build and CI problems.
New API:
+hb_font_create_without_funcs_or_fail()
+hb_ot_layout_get_extender_glyphs()
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit 067e68d8b3b006d9adc09816a91070ba4f2208ed
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:15 2026 +0100
haproxy: Update to version 3.4.9
- Update from version 3.4.8 to 3.4.9
- No change in rootfile
- 1 major security fix (no CVE or other ID)
- Changelog
3.4.9
This release contains one major fix for the HTTP/3 stack, described
first. The rest is mostly a maintenance release with a very large number of
bug fixes (70 medium and 129 minor ones). Most of them were found by
automated code review (AI code reports) and were never observed in the
field; they are only mentioned globally at the end of this announcement.
The sections below focus on the issues that were encountered on real
deployments or that change a documented behaviour, along with a couple of
new settings that may be useful to administrators.
* h3: A worker could crash on an incomplete HTTP/3 DATA frame.
When a DATA frame was received without its payload (only the frame
header), the HTTP/3 demultiplexer could set an internal "buffer full" flag
with no data to read, violating an internal consistency check that
deliberately kills the process to detect unnecessary wakeups. The bug was
introduced in 3.4.5 by the fix that made empty DATA frames report the end
of the message, and exists down to 2.6; upgrading is the only
fix. Reported by AndyAnh174.
* New setting "tune.h2.fe.enabled" to disable HTTP/2 on frontends.
This global setting provides a simple emergency switch to stop serving
HTTP/2 to clients in case of trouble in the H2 stack. When set to "off",
"h2" is dropped from the ALPN of all bind lines and crt-list entries, the
H2 preface upgrade is refused, and "proto h2" binds are closed. Previously
there was no single place to do this, as it required editing every bind
line. A companion fetch "h2_enabled" reports whether HTTP/2 may currently
be used on a frontend.
* New setting "unresolvable-server-fqdn" to tolerate broken DNS names.
A recent fix made HAProxy refuse to start when a server name contains a
DNS label longer than 63 characters, a configuration that has in fact
never worked but used to fail silently. Orchestrated deployments may take
a while to fix this, so the new global directive makes HAProxy warn and
put the offending server in maintenance mode instead of refusing to
start. It is only a workaround and must not be left enabled permanently.
* Compression: fixed incompatibility with large buffers and changed how
compression directions are enabled.
The SLZ compression was not designed for "tune.bufsize.large" sizes
introduced in 3.4 and could misbehave with large buffers; the code was
simplified and now works with any buffer size (only 3.4 is affected).
In addition, compression is now enabled per direction based on the
algorithms: previously "compression algo-req" alone also enabled response
compression; now "algo-req" only enables the request direction and
"algo"/"algo-res" the response one, unless a direction is explicitly
set. Configurations that relied on the implicit response direction while
declaring only a request algorithm must now be adjusted.
* H1/HTX: fixed response corruption with data filters and Lua.
The H1 multiplexer could emit more data than announced in a chunk when a
data filter (Lua or the compression filter for instance) was applied to a
request, sending unframed bytes to the server; the stream is now closed
with an error in this case. In the HTX storage, a defragmentation could
merge a data block into one being processed by the compression filter:
with a Lua filter appending data to a response, the appended data could be
emitted uncompressed in the middle of the compressed stream and corrupt
the response. Both issues are 3.4 regressions. Finally, a backend tunnel
established with a 101 response could be killed when the client
half-closed its connection.
* H2/FCGI/SPOP: fixed leaked backend connections and stalls under buffer
pressure.
When the last stream of a backend H2 or FCGI connection was detached while
the mux buffer was busy, the connection could be left out of the idle
list: it was then never reused nor released, holding a file descriptor
until the server closed it. Under memory pressure, when buffers could not
be allocated, the H2, FCGI and SPOP multiplexers could also stop making
progress and wait forever instead of retrying when a buffer became
available again. Several timeout fixes complete the series: idle backend
H2 connections now have their timeout refreshed before being parked (they
could be closed prematurely or linger), FCGI connections with pending data
are no longer parked as idle after a client abort, and SPOP connections
with active streams are no longer subject to the connection timeout. An H2
tunnel to a backend is no longer aborted on informational responses (1xx).
* QUIC: fixed two 100% CPU spins and stream limit enforcement.
A QUIC listener that could not accept anymore (maxconn or rate limit
reached) kept its accept tasklet spinning, using 100% of a thread until
the listener was resumed. During a soft-stop, QUIC connections whose
handshake completed after the listener was unbound were neither accepted
nor refused: the client waited until its timeout while the stopping
process burned a thread; they are now refused immediately. In addition,
HAProxy could advertise more streams than configured via MAX_STREAMS
frames; the configured "stream.max-total" and bidi streams limits are now
enforced, including on the frontend side.
* DNS/resolvers: fixed connection leaks with unresponsive TCP
nameservers.
With a DNS-over-TCP nameserver, every 4 queries that expired without a
response leaked the session and its connection, without limit: the
sessions were never reused nor released. A nameserver closing a connection
in the middle of a response is also now detected, instead of waiting ~20s
for data that will never come. On the configuration side, servers sharing
an SRV record with different resolvers sections are now rejected, as this
silently ignored the second section's settings and could corrupt its
internal lists. The per-nameserver "timeout" counter reported by "show
resolvers" and Prometheus was never incremented since its introduction in
1.6; it now counts again the nameservers that did not answer in time.
* Peers/stick-tables: fixed table sync with multiple peers sections on
reload.
With more than one "peers" section, a soft-stop only synchronized the
first section: the others never pushed their tables to the new process and
their entries were lost on each reload. String keys longer than the
table's key length were also sharded on their full length while the peers
use the truncated key, so such entries were pushed to the wrong peers. In
addition, the CLI command "set table <table>" without any key or data
argument silently cleared the whole table instead of reporting a usage
error. A received key longer than a buffer is now trimmed instead of
corrupting the message.
* Lua: fixed unsafe coroutines and lost responses with filters.
The wrapper around coroutine.create() could let a coroutine outlive the
Lua context that created it, causing undefined behaviour ranging from
use-after-free to memory disclosure. When several Lua filters were
chained, or when a filter held data back, the new HTTPMessage.closed()
method and the fixed HTTPMessage.eom()/may_recv()/Channel.may_recv()
functions now reason about the data visible to the current filter instead
of the whole channel, so a filter no longer sees a closed input while data
it waits for is still held upstream. Finally, a close was no longer
propagated while a filter was waiting on a channel: a complete response
held by a Lua filter could previously be lost when the server closed
early.
* JWT: fixed lock contention and crashes with dynamic certificate
updates.
The jwt_verify and jwt_decrypt converters now rely on a dedicated
certificate tree instead of looking keys up in the general certificate
store. Previously the store's lock, which is held for the whole duration
of CLI certificate operations, was also taken for each JWT verification,
so replacing certificates over the CLI could block JWT verifications for a
long time and a concurrent update could lead to a crash. Binary HMAC
secrets are no longer truncated at the first NUL byte, and the ECDSA
signature length is now enforced.
* SSL/kTLS: fixed lost responses with kTLS servers and dropped crt-store
settings in the CLI.
With "ktls" enabled on a server closing its connection right after the
response, the remaining records could be considered fully read on a short
read, and the response was lost, resulting in a 502; dropped kTLS records
are also now trimmed properly.
On the CLI side, adding a certificate declared in a crt-store section to a
crt-list with "add ssl crt-list" silently dropped the settings of the
store's "load" line, notably "ocsp-update on", so no OCSP update was ever
scheduled for these certificates. The crt-store settings are now kept and
compared with the line, as at boot, and a failed or interrupted commit no
longer leaves the transaction inconsistent.
* ACME: fixed DNS-01 renewals for wildcard certificates.
A certificate covering both a domain and its wildcard requires two TXT
records at the same _acme-challenge name, but only the first one was read,
so one authorization never matched and the renewal timed out. All TXT
records are now matched. The DNS-01 pre-check also now takes the resolvers
lock when linking its requests, which could previously race with the
resolver task.
* Cache: fixed the handling of the Age header.
Responses carrying "Age: 0", as commonly emitted by an upstream cache or
CDN, were never stored, so all requests for them reached the servers. The
max-age lifetime is now reduced by the response's Age as required by RFC
9111: previously a response received with "max-age=3" and "Age: 2" was
kept fresh for its full 3 seconds and served stale. The Age header is also
kept in the forwarded response, null lifetimes are recognized whatever
their spelling, and null qvalues with decimals in Accept-Encoding no
longer disable caching of compressed variants.
* http: fixed an open redirect with a "/" redirect prefix.
With "redirect prefix /" (or a server configured with "redir /"), a
request for "//evil.example/x" produced "Location: //evil.example/x",
which browsers resolve to another host, turning a rule meant to keep the
client on the same site into an open redirect. A "/." prefix is now
inserted when nothing precedes a path starting with "//" or "/\".
* Config, maps and ACLs: fixed several parsing issues reported in the
field.
An invalid character in a proxy name (e.g. "frontend inv@lid") was
reported as an alert but the configuration was then accepted and the
process started anyway; such configurations are now rejected. Lines longer
than 16KB in map and ACL files were silently split into several entries,
without any warning. Matching a regex against an empty string,
e.g. "req.body" on a request without a body, crashed the process with the
default regex engine. A map or ACL file pattern longer than 4095 bytes
could match on a truncated prefix instead of the full string.
* All the other fixes: as announced above, the large majority of the
remaining commits address defects found by automated code reports
(AI-assisted code review), which were not reported by users and in most
cases could only be triggered by malformed configuration keywords or
protocol violations. They include out-of-bounds reads in the MySQL, LDAP
and SPOP health-check parsers, stricter validation of many fetch and
converter arguments (payload, stick counters, varints, DNS fields),
HTTP/2, HTTP/3 and FastCGI protocol conformance checks, memory leaks and
crashes on error paths of the QUIC stack, the SPOE filter, the SSL CLI and
the CLI in general. They are all listed in the changelog below.
Complete changelog :
BUG/MINOR: promex: don't loop forever when a module skips a time series
BUG/MINOR: http-ana: call the http_reset filter callback on L7 retries
BUG/MINOR: ssl/ckch: fix an invalid free() in the domains/ips error paths
BUG/MINOR: tools: ha_freearray() must also free the array
BUG/MINOR: quic: fix "show quic" filtered connection
BUG/MINOR: mux_quic: fix MAX_STREAMS limit
BUG/MINOR: mux_quic: fix overflow on avail_streams
BUG/MINOR: debug: fix "debug dev fd" crash on unknown address families
BUG/MINOR: mux_quic: remove dangling qc->qcc ref on MUX init failure
BUG/MINOR: h3: close connection on response start-line alloc failure
BUG/MINOR: h3: fix error code on incomplete request
BUG/MINOR: quic: remove CID on BE conn alloc failure
BUG/MINOR: h3: prevent missing request FIN on empty trailers
BUG/MEDIUM: mux_quic: ensure FIN is reported after Rx data transfer
BUG/MINOR: quic: reject invalid stream ID after MUX closure
BUG/MEDIUM: quic: limit reject after MUX closure to once per stream
BUG/MINOR: h3: skip content-length check on backend bodyless responses
BUG/MINOR: h3: reject CANCEL_PUSH on backend side
BUG/MINOR: hq-interop: skip zero-copy with large buffers
BUG/MINOR: ncbuf/test: remove list dependency for standalone tests
BUG/MINOR: ncbuf/test: remove unnecessary delay in random insert
BUG/MINOR: qmux: prevent pacing BUG_ON() on send syscall zero return
BUG/MINOR: h3: reject reserved HTTP/2 frame types
REGTESTS: tcp-check-ssl: also support errno reporting on second test
BUG/MAJOR: h3: prevent demux full BUG_ON() crash with incomplete DATA
BUG/MEDIUM: hlua: make coroutine.create() safe under haproxy (new attempt)
BUG/MINOR: ssl/ckch: free the new instance when ckch_inst_rebuild() fails
BUG/MINOR: chunk: Allow large chunks uses from large const buffers
MEDIUM: flt-http-comp: Enable compression directions from algorithms
MINOR: flt-http-comp: Use compression options as filter config
BUG/MINOR: flt-http-comp: Enable implicit filters independently per
direction
MEDIUM: stream: Hold a reference on the frontend during stream_free()
MINOR: applet: Add a destroy callback to the applets
BUG/MEDIUM: spoe: Let an agent outlive its applets during a backend
deletion
OPTIMIZE: stream: Stop holding a reference on the frontend during
stream_free()
BUG/MINOR: mux-h1: wake the connection up when a pending error can be sent
BUG/MINOR: hlua/filters: Track the payload phase per channel
BUG/MEDIUM: hlua/filters: make HTTPMessage.eom/may_recv relative to the
filter's data
MINOR: hlua/filters: Add HTTPMessage.closed() to check if input is closed
BUG/MINOR: hlua/filters: Restrict HTTPMessage.set_eom/unset_eom to
visible data
BUG/MEDIUM: hlua/filters: Make Channel.may_recv relative to the filter's
data
DOC: config: Fix documentation about dot character in variable names
DOC: configuration: Clarify wait-for-body doc for the response side
BUG/MEDIUM: mux-h2: consider the send list as pending data for the timeout
BUG/MEDIUM: mux-h2: refresh the connection timeout before parking it idle
BUG/MEDIUM: mux-fcgi: arm the connection timeout only when data remains
BUG/MEDIUM: mux-fcgi: detect an early connection error during the
handshake
BUG/MEDIUM: mux-fcgi: ignore conn->owner when deciding if a connection is
dead
MINOR: mux-fcgi: don't add a closed connection to an idle list on detach
BUG/MEDIUM: mux-h2: also consider the fctl_list as pending data for the
timeout
BUG/MINOR: mjson: fix out-of-bounds reads on malformed JSON paths
BUG/MEDIUM: resolvers: skip the data of ignored additional records
BUG/MINOR: resolvers: reject a null or negative resolve_retries value
BUG/MINOR: resolvers: reject null "timeout resolve" and "timeout retry"
values
BUG/MINOR: resolvers: preserve nameserver identity on "clear counters all"
BUG/MINOR: resolvers: don't dump a nameserver twice in "show resolvers"
BUG/MINOR: resolvers: Always init a new resolution's list element
BUG/MINOR: resolvers: count nameserver timeouts
BUG/MEDIUM: resolvers: reject servers sharing an SRV record with
different resolvers
BUG/MINOR: resolvers: check the SRV expiration date again under the lock
BUG/MEDIUM: resolvers: properly skip root-named authority and additional
records
BUG/MINOR: resolvers: compute a name's wire length by walking its labels
BUG/MINOR: tcpcheck: fix out-of-bounds reads on short MySQL error packets
BUG/MEDIUM: mux-spop: do not enforce the timeout on connections with
streams
MINOR: mux-spop: ignore conn->owner when deciding if a connection is dead
BUG/MEDIUM: mux-spop: refresh the connection timeout before parking it
idle
MINOR: mux-spop: don't add a closing connection to an idle list on detach
BUG/MINOR: cache: do not refuse to store responses with "Age: 0"
BUG/MINOR: cache: do not remove the Age header from the forwarded response
BUG/MINOR: cache: recognize null qvalues with decimals in Accept-Encoding
BUG/MINOR: cache: do not eat the request while waiting for a buffer
BUG/MINOR: cache: reduce the max-age lifetime by the response's Age
BUG/MINOR: cache: compare the Age to the heuristic lifetime when none is
given
BUG/MINOR: cache: do not ignore null lifetimes not written as "max-age=0"
REGTESTS: cache: cover the object lifetime with a single script
BUG/MEDIUM: filters: Don't propagate a close while a filter waits on a
channel
BUG/MEDIUM: mux-h2: put BE conn back in idle list after deferred shut
BUG/MEDIUM: mux-fcgi: put BE conn back in idle list after deferred shut
BUG/MINOR: cache: skip already resolved filters when resolving caches
BUG/MINOR: tcpcheck: fix out-of-bounds reads on truncated LDAP bind
responses
BUG/MINOR: tcpcheck: fix out-of-bounds reads on truncated SPOP hello
frames
BUG/MINOR: tcpcheck: fix out-of-bounds read on the MySQL server version
BUG/MINOR: vars: fix missing string termination in get var on too long
values
BUG/MINOR: lua: channel: append() must insert data at the end, not at the
start
BUG/MINOR: payload: distcc_body must not sample unreceived buffer bytes
BUG/MEDIUM: stconn: Do not install an applet on a busy stream connector
BUG/MEDIUM: stconn: Only forward kip hint on streams committed to forward
data
BUG/MEDIUM: mux-h1: never forward more data than announced in a chunk
BUG/MINOR: resolvers: warn about ignored arguments on datagram nameservers
BUG/MEDIUM: mux-h1: Don't shortcut h1_process() while a stream is attached
REGTESTS: tcp-check-ssl: tolerate an errno info in the SSL handshake
failure
BUG/MEDIUM: payload: reject out-of-range payload and payload_lv arguments
BUG/MINOR: payload: also encode an absolute payload_lv offset2
MINOR: tools: add read_line_to_mem() to read a line into a growing buffer
BUG/MINOR: pattern: don't rely on the trash size to read pattern files
BUG/MINOR: peers: forget the appctx when the peer session init fails
BUG/MINOR: peers: don't lose the peer's version when the hello is
fragmented
BUG/MINOR: peers: reject over-long varints in intdecode()
BUG/MINOR: peers: account incoming sessions in the per-thread applet
counters
BUG/MINOR: peers: compare the received expiration date as unsigned
BUG/MINOR: peers: don't use remote table definitions from a previous
session
BUG/MINOR: peers: forget the remote table when ignoring an unknown key
type
BUG/MINOR: quic: fix the header protection key length dump with AWS-LC
BUG/MINOR: fd: allow fd_write_frag_line() to run before fdtab allocation
BUG/MINOR: quic: reject RETIRE_CONNECTION_ID for a CID not sent to the
peer
BUG/MEDIUM: quic: do not keep 0-RTT packets which cannot be decrypted
BUG/MINOR: quic-be: do not register the connection before the quic_conn
is initialized
BUG/MINOR: quic: initialize the members read by quic_conn_release() first
BUG/MEDIUM: peers: bound stick-table update messages
BUG/MEDIUM: peers: bound stick-table switch messages
BUG/MINOR: peers: bound stick-table acknowledge messages
BUG/MINOR: quic/ssl: report SSL_CTX allocation failure
BUG/MINOR: quic: fix uninitialized read of pkt->rs.delivered in ACK
processing (BBR)
BUG/MINOR: sample: fix host_only and port_only on empty input
BUG/MINOR: sample: reject a \0 byte in raw string fetches
BUG/MINOR: http-ana: don't emit a network-path Location for a "/"
redirect prefix
BUG/MINOR: log: don't let an LF in a forwarded message create new events
BUG/MEDIUM: sample: parse json_query integers within the token length
BUG/MINOR: mjson: bound the exponent in mystrtod()
BUG/MINOR: acme: exact domain match in acme_challenge_ready()
BUG/MINOR: hlua: unlock Patref before add_bulk type error BUG/MEDIUM: mux-fcgi:
avoid out-of-bounds path decoding DOC: minor: update VTest2 URL everywhere
BUG/MINOR: thread: don't turn reversed thread ranges into "even" BUG/MINOR:
cfgparse-listen: reject negative capture lengths BUG/MINOR: stick-table: reject
negative stick counter IDs in sc-* actions BUG/MINOR: connection: check the
NetScaler CIP header length against
received data
BUG/MINOR: connection: check the IP header length in NetScaler CIP
BUG/MINOR: server: free the sample expression when it is not usable on a
server
BUG/MINOR: httpclient/lua: fix stack overread when copying the headers
BUG/MINOR: httpclient/lua: raise an error on too many request headers
BUG/MINOR: tcpcheck: check the number of "hdr" in http-check send
BUG/MINOR: stick-table: reject invalid gpc/gpt array indexes
BUG/MINOR: sample: do not parse compressed gRPC messages in ungrpc
BUG/MINOR: net_helper: check the TCP option length before reading its
value
BUG/MINOR: net_helper: accept an Ethernet header ending with the protocol
BUG/MINOR: resolvers: reject DNS messages without the QR bit
BUG/MINOR: mux-spop: match the AGENT-HELLO and AGENT-DISCONNECT keys
exactly
BUG/MINOR: mqtt: reject invalid CONNECT flags and MQTT 3.1.1 CONNACK
return codes
BUG/MINOR: mux-h2: reject non-numeric values in the tune.h2 keywords
BUG/MEDIUM: threads: don't read lock history entries that don't fit in
ulong
BUG/MEDIUM: stick-tables: compute the shard of string keys on the stored
key
BUG/MEDIUM: stick-tables/cli: "set table" without key must not clear the
table
BUG/MEDIUM: peers: make the soft-stop "dont_stop" state per peers section
BUG/MEDIUM: htx: never merge the next DATA block into the referenced one
on defrag
BUG/MEDIUM: mux-h2: don't abort a tunnel attempt on interim responses
REGTESTS: http-messaging: check that 1xx don't abort H2 backend tunnels
BUG/MEDIUM: dns: release the session slot of expired TCP queries
BUG/MINOR: dns: detect the server's shutdown on a partial TCP response
MINOR: peers: move message length constants to peers-t.h
BUG/MEDIUM: stick-table: fix the peers overhead in proto_size
BUG/MEDIUM: peers: trim received string keys to fit in a buffer
BUG/MINOR: mux-quic: fix QMux Rx buffer leak on MUX init failure
BUG/MEDIUM: quic: never advertise more streams than configured
BUG/MEDIUM: mux-quic: cap elastic MAX_STREAMS to stream.max-total
BUG/MINOR: hlua: wait for the request in HTTP applets
BUG/MINOR: h3: reject interim responses ending the stream
BUG/MEDIUM: xprt_qmux: apply the configured bidi streams limit on FE
BUG/MEDIUM: stick-tables: update the bucket's next_exp before releasing
its lock
BUG/MEDIUM: mux-h2: don't stall on a failed rxbuf alloc without stream
BUG/MEDIUM: mux-fcgi: let the buffer callback allocate despite the queue
BUG/MEDIUM: mux-spop: let the buffer callback allocate despite the queue
BUG/MINOR: map: split "add map/acl" payload keys on line breaks
BUG/MEDIUM: quic: refuse handshakes completed after the listener unbind
BUG/MEDIUM: mux-h2: reject non-101 2xx responses to Extended CONNECT
BUG/MEDIUM: ssl: trim dropped kTLS records from the end of the buffer
BUG/MEDIUM: rawsock: don't take a short kTLS read for the end of data
BUG/MEDIUM: mjson: stop the lookup when the matched element ends
BUG/MEDIUM: mjson: decode the escaped slash in strings
BUG/MEDIUM: quic: do not spin on the accept tasklet of a blocked listener
DOC: config: mention the nesting limit of the json_query() converter
BUG/MEDIUM: ssl/cli: reset the transaction on interrupted CA/CRL commits
BUG/MEDIUM: ssl/cli: restore the store conf on "add ssl crt-list" error
BUG/MINOR: ssl/ckch: copy the origin of the conf in ckchs_dup()
BUG/MEDIUM: ssl/cli: keep the crt-store conf on "add ssl crt-list"
BUG/MINOR: ssl/cli: don't clear the jwt flag on "add ssl crt-list"
BUG/MINOR: ssl/cli: fix ckch_conf leaks in "add ssl crt-list"
BUG/MINOR: jwt: don't truncate binary HMAC secrets at the first NULL byte
BUG/MINOR: jws: fix ECDSA_SIG leak in jws_b64_signature()
BUG/MINOR: jwe: only accept exact "alg" and "enc" names in JWE tokens
BUG/MINOR: jwe: reject non-empty encrypted keys with "dir" and "ECDH-ES"
BUG/MINOR: jwe: only match the exact "ALL" word in
jwt.decrypt_{alg,enc}_list
BUG/MINOR: jwt: enforce the ECDSA signature length in jwt_verify
MINOR: jwt: Add rwlock to jwt_cert_tree
BUG/MEDIUM: jwt: Use only JWT cert tree for jwt_verify
BUG/MEDIUM: jwt: Use JWT cert tree for jwt_decrypt
BUG/MINOR: httpclient/cli: fix NULL dereference when the response has no
header
BUG/MINOR: ocsp: fix NULL dereference when the OCSP responder sends no
header
BUG/MINOR: jwt: Create jwt tree entry even for new empty certificates
BUG/MEDIUM: jwt: Add refcount to jwt tree entry
BUG/MINOR: jwt: Do not keep ckch_store if jwt tree entry creation failed
BUG/MINOR: h2: reject :protocol pseudo-header in H2 responses
BUG/MINOR: quic-be: fix Initial token length check on backend connections
DOC: configuration: document library compatibility for TLS keywords
BUG/MINOR: errors: reset diagnostic buffers after thread cleanup
DOC: configuration: clarify normalize-uri version availability
BUG/MINOR: ssl: skip the cipher workaround with AWS-LC API 38 and newer
BUG/MINOR: ech: keep CLI success messages alive until printed
BUG/MINOR: ssl/cli: use the right list member in "add ssl crt-list"
release
BUG/MEDIUM: acme: take the resolvers lock when linking/unlinking DNS
requesters
BUG/MEDIUM: acme: match DNS challenges against all TXT records
BUG/MEDIUM: acme: distinguish wildcard CLI and Lua acknowledgements
DOC: management: document ACME challenge readiness acknowledgements
BUG/MINOR: ssl: append OCSP base64 newline to the output buffer
BUG/MINOR: resolvers: display the template name instead of "server
'(null)'"
MEDIUM: server: add a global setting "unresolvable-server-fqdn"
DEBUG: support reading set-dumpable from HAPROXY_FORCE_DUMPABLE
BUG/MINOR: cfgparse-listen: don't lose the errors reported while creating
a proxy
DOC: config: add missing acme.scheduler in the global index
DOC: config: add missing entry for health checks
BUG/MINOR: ist: make ist_find_range() accept non-zero min boundaries
BUG/MEDIUM: mux-h2: always return already allocated buffers in
h2_get_buf()
BUG/MEDIUM: mux-h2: permit the buffer callback to allocate despite the
queue
BUG/MEDIUM: mux-h2: wake the connection up after a delayed mbuf allocation
BUG/MEDIUM: mux-h2: serve all pending buffer allocations in the buffer
callback
BUG/MINOR: mux-h2: unblock the demux when destroying the stream it was
blocked on
BUG/MEDIUM: mux-h2: don't send RST_STREAM for backend streams whose
HEADERS were not sent
BUG/MEDIUM: mux-h2: also emit the HPACK dynamic table size update on
requests
BUG/MINOR: mux-h2: also emit the HPACK Dynamic Table Size Update before
trailers
BUG/MINOR: mux-h2: only convert GET upgrade requests to Extended CONNECT
BUG/MINOR: acl: check the presence of an argument to "-u"
BUG/MINOR: server: don't report dyncookie collision on same IP servers
SCRIPTS: create-release: do not match the word "version" isolated
BUG/MEDIUM: compression: fix incompatibility between compression and
large-buffers
DEV: sse-latency: add a latency measuring tool for SSE response streams
DEV: sse-latency: add a parameter after the content-type
MINOR: ssl: add alpn_remove_token() to drop a protocol from an ALPN string
MINOR: global: add tune.options2 to host new GTUNE2_* flags
MINOR: global: add tune.h2.fe.enabled to disable HTTP/2 on frontends
MINOR: sample: add h2_enabled to report whether H2 may be used on
frontends
REGTEST: ssl: test tune.h2.fe.enabled and h2_enabled on two instances
BUG/MINOR: intops: reject varints that do not fit in 64 bits in
decode_varint()
BUG/MEDIUM: pattern: check for non-empty string before matching regexes
BUG/MINOR: pattern: do not index too large strings using the tree
CLEANUP: mux-h2: clarify that bptr is not NULL when calling to
h2_get_buf()
REGTESTS: converter: serve the two sha2 requests on one connection
BUG/MINOR: resolvers: validate TXT RDATA before reading
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit e48e3f8336977ed7433fd4dba63bd552f2629043
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:14 2026 +0100
glib: Update to version 2.91.0
- Update from version 2.90.1 to 2.91.0
- Update of rootfile
- 1 CVE fix in 1.90.2 - also mentions various security fixes but no info given
- Changelog
2.91.0
* Add `g_get_process_executable_dir()` helper API (#31, work by Emmanuel Fleury)
* Use libffi call plan machinery from 3.7.0 if available, to speed up libffi
dispatches (#4002, work by Christian Hergert)
* Depend on MINGW-w64 ≥ 12.0.0 to simplify build on MinGW-w64 (#4065, work by
otaxhu)
* Use `posix_spawn()` in more cases with `closefrom()` file actions (#4096, work
by Christian Hergert)
* Fix DST offset in Europe/Dublin time zone when using slim TZif files (#4114,
work by Philip Withnall)
* Add new APIs to support XDG Intents in `GAppInfo` (!4797, work by Ignacy
Kuchciński and Sebastian Wick)
* Add `G_SAVE_ERRNO` macro to save and restore `errno` in a scope (!5302, work
by Simon McVittie)
* Add `G_MOUNT_MOUNT_READ_ONLY` flag to request read-only mounting (!5320, work
by SnoutFirst)
* Add `G_DISABLE_CLEANUP` macro to force disabling GLib’s cleanup macros, for
code bases which can’t use them (!5371, work by Christian Hergert)
* Handle the `org.freedesktop.Notifications.ActivationToken` signal in
notifications (!5384, work by Alessandro Astone)
* Require Windows ≥ 10 and deprecate UWP-only apps (!5415, work by otaxhu)
* Bugs fixed:
- #31 Binary relocatability API for glib (Emmanuel Fleury)
- GNOME/gtksourceview#341 Changes in symlinked file cannot be saved (Christian
Hergert)
- #3298 glib-compile-resources crashes on Linux 4.19 (Leo Conforti)
- #3996 G_REGEX_OPTIMIZE flag violates GRegex threadsafety guarantee (Samy)
- #4002 Use libffi call plan machinery from 3.7.0 (Christian Hergert)
- #4003 (#YWH-PGM9867-266) SUID Path Traversal on GLib GDesktopAppInfo through
g_app_info_create_from_commandline() in glib/gio/gdesktopappinfo.c via
`application_name` allows root-owned file creation outside
XDG_DATA_HOME/applications directory (Samy)
- #4026 gpoll-win32: recursive poll_rest call incorrectly discards msg_fd
(otaxhu)
- #4039 g_build_filename does not consider the path separator following a
drive letter in the first element on Windows (John Thacker)
- #4049 g_inet_address_new_from_string() doesn't accept all hostnames that
pass g_hostname_is_ip_address()
- #4050 kqueue monitor race can leave stale `ev.udata` and trigger UAF
- #4061 g_timeout_add_seconds on 32-bit time_t has a conversion bug which
hangs event loop on ppoll() EINVAL (Jonah Petri)
- #4065 Define a minimum required version for MINGW-w64 on meson
- #4069 g_file_copy() reports no progress on FreeBSD: copy_file_range() copies
the whole file in one call (Sam Sheridan)
- #4072 Leak in fdo-notification-backend (Philip Withnall)
- #4073 Implement g_get_process_executable_dir() on FreeBSD (Philip Withnall)
- #4074 Implement g_get_process_executable_dir() on Hurd
- #4089 Local DoS through SCM_RIGHTS FD accumulation in GDBus
- #4090 UBSan alignment warning in glocalfile (Philip Withnall)
- #4091 -Wsign-conversion warning on arm64 OpenBSD in GString tests
- #4093 GZlibCompressor: unsetting file-info keeps the old gzip header;
deflate() reads the freed file name (heap-use-after-free) (Pu Cheng)
- #4095 gdbusconnection: use-after-free in property calls to unregistered
objects and to subtrees
- #4096 Add support for posix_spawn_file_actions_addclosefrom_np to gspawn-
posix.c
- #4101 Potential use-after-free in GDBusObjectManagerClient signal delivery
during cross-thread teardown (Nieves Montero Fernandez)
- #4107 Unchecked `SignalNode.n_params` narrowing silently changes a
registered GLib signal signature (IMZGforever)
- #4108 Limit D-Bus introspection XML nesting to prevent stack-exhaustion
crashes (Nieves Montero Fernandez)
- #4109 GDBusWorker eagerly allocates up to 128 MiB from an authenticated
peer’s message header (Nieves Montero Fernandez)
- #4112 g_binding_group_dup_source() is annotated (transfer none) but returns
a new reference (vbxf)
- #4114 gtimezone: explicit zero DST offset in POSIX TZ string is treated as
absent (breaks Europe/Dublin) (Philip Withnall)
- #4117 GDBusObjectManagerClient crashes on malformed D-Bus variant payloads
(Nieves Montero Fernandez)
- #4125 msys2-clang64 CI fails with mingw-w64-clang-x86_64-python3 target not
found pacman error
- #4127 spawn tests fail under valgrind (Christian Hergert)
- !4797 Add support for XDG Intents
- !5302 macros: Add G_SAVE_ERRNO to save and restore errno in a scope
- !5320 gio: Add G_MOUNT_MOUNT_READ_ONLY flag
- !5321 Meson: Define O_CLOEXEC as O_NOINHERIT on Windows
- !5322 array: Handle GArrays adding their own elements
- !5324 gstdio.h: Adjust check for __GI_SCANNER__
- !5341 docs: Note where synchronous calls keep their completion bookkeeping
- !5350 Port internal application spawning to async GTask
- !5367 gregex: Avoid match-info overhead for boolean searches
- !5371 glib/macros: Add macro to disable cleanup attribute
- !5378 Simplify locking when adding interfaces
- !5384 gfdonotificationbackend: Activate window with the activation-token
- !5390 build: Mark timer test as failing on 32-bit x86
- !5391 build: Post-release version bump
- !5395 gtimezone: Fix leak of TimeZoneKeyName buffer on Windows
- !5398 Update Slovenian translation
- !5399 gmessages: Fix an unused variable warning
- !5400 win32: Fix g_get_process_executable_dir() path resolution
- !5403 glib.supp: Mark a TLS variable as not really a leak again
- !5407 gvariant: Fix transfer annotations for floating values
- !5408 Update Georgian translation
- !5409 gdir: Annotate directory exhaustion as nullable
- !5410 gvalue: Annotate reset result as borrowed
- !5414 Update Portuguese translation
- !5415 win32: require Windows 10+ and deprecate UWP-only apps
- !5416 Minor fixes to GDesktopAppInfo
- !5417 gfileenumerator: Annotate nullable iteration outputs
- !5419 Do not use recvmmsg and sendmmsg on AIX and IBM i
- !5420 girepository: Disable fatal warnings for some g-ir-scanner calls
- !5421 gactiongroup: Annotate nullable query outputs
- !5424 glocalfile: Move file system types to a const array
- !5425 Update Slovenian translation
- !5427 Win32 file monitor: 'renamed_file' leaks on every reported rename
- !5428 Implement g_get_process_executable_dir() on OpenBSD
- !5432 gloadableicon: Annotate nullable content types
- !5433 giochannel: Annotate nullable line output
- !5435 gdesktopappinfo: Fix small leak on error paths
- !5436 gdesktopappinfo: Check for relatively symlinked mimeapps.list
- !5439 Update Slovenian translation
- !5440 gsocket: Annotate nullable sender addresses
- !5441 gsettingsbackend: Annotate nullable flattened path
- !5442 gutf8: Annotate UCS-4 conversion results as arrays
- !5444 gthread: Use thread_switch for g_thread_yield on GNU Hurd
- !5446 tests: Add a performance regression test for g_thread_yield()
- !5451 Remove all tab characters from source files
- !5453 Avoid setting TCP_NODELAY on AF_UNIX sockets.
- !5454 OpenBSD: account for IP_RECVTOS not being available
- !5455 g_unix_fd_query_path: return NULL on OpenBSD
- !5456 Use g_strconcat for Concatenating Strings in Loops
- !5458 gkeyfile: Fix -Wsign-conversion warnings
- !5461 gquark: Fix data race in G_DEFINE_QUARK
- !5462 gdesktopappinfo: Fix a minor leak in an unlikely branch
- !5463 Update Slovenian translation
- !5464 tests: Fix tab in string literal in gdatetime tests
- !5465 Check size_t using specific pointer warning
- !5466 gdesktopappinfo: Quote field codes for the quotes they are in
- !5468 gcharset: Reformat docs and clarify locale format in documentation
- !5469 gwin32inputstream: Read a Windows file stream from where it is, not
from its start
- !5470 gdbus: Support EXTERNAL and same-user checks for Windows AF_UNIX peers
- !5472 glocalfileinfo: Handle g_checksum_new() returning NULL
- !5477 Add British English translation
- !5478 gpoll-win32: Avoid redundant recursive poll when last handle is ready
- !5479 gio/gresource: use gvdb_table_list_with_hash() for enumeration
- !5480 gdocumentportal: Percent-encode document portal URIs
- !5481 Update Romanian translation
- !5483 gdbusmessage: write headers directly into message blobs
- !5484 gthreadpool: synchronize idle registration with wakeups
- !5485 gdbus: Check the permissions of the D-Bus keyring directory on Windows
- !5487 tests: Fix Windows CI test failures
- !5491 tests: Fix assert-msg-test on UCRT and module-test in static-only
builds
- !5492 gprintf: Write Windows console output with an explicit length
- !5493 gutf8: Fix resync after invalid bytes before non-BMP characters
- !5495 gdbusobjectproxy: Fix getter annotation for g-connection
- !5502 fuzzing: Add fuzz tests for GDesktopAppInfo and
_g_win32_expand_application_parameters()
- !5504 gdbusauth: Don't wait forever when the client rejects the server's
data
- !5505 gdbusdaemon: Fix use after free and leaks when the daemon is destroyed
- !5506 gbitlock: fix GOTO_ASM clobber
- !5507 ci: Temporarily disable msys2-clang64 CI
- !5516 gappinfo: Update GAppInfoMonitor documentation
- !5517 CI: Drop ccache for MSYS2-MINGW32 job
- !5519 gdbusprivate, gspawn-posix: Add a couple of assertions to help the
static analyser
- !5520 gwin32appinfo: Fail to expand a command line with an empty program
name
- !5532 Update Slovenian translation
- !5533 gscanner: Free the current and peeked token values when switching
input
- !5534 gzlibcompressor: Fail a flush into a too small buffer with NO_SPACE
- !5535 grand: Avoid signed overflow computing the range in g_rand_int_range()
- !5541 Update Slovenian translation
- !5543 gzlibcompressor: Simplify g_zlib_compressor_set_file_info()
- !5544 giowin32-private: Mark an assertion variable as unused
- Georgian (Ekaterine Papava)
- Romanian (Antonio Marin)
- Slovenian (Martin)
2.90.2
* Various security fixes
* Bugs fixed:
- #4032 (CVE-2026-102038) Windows Argument Injection in GWin32AppInfo via
Post-Quote Backslash Rewriting (Ana Bobillo)
- #4071 Stack buffer overflow in GRegex (Benjamin Otte)
- #4078 Deadlock getting various singletons during
`GNetworkMonitorNetlink.can_reach_async()` with `GProxyResolverGnome`
(Thomas Hebb)
- #4100 GDBus client authentication can exhaust memory on unterminated peer
input (Nieves Montero Fernandez)
- #4102 gdbus-auth test intermittently fails with socket error (Nieves Montero
Fernandez)
- #4110 Buffer overflow in g_unix_socket_address_to_native (Benjamin Otte)
- #4128 gdbus-server-auth test uses uninitialised memory under valgrind
(Philip Withnall)
- !5396 Backport !5395 “gtimezone: Fix leak of TimeZoneKeyName buffer on
Windows” to glib-2-90
- !5402 Backport !5399 “gmessages: Fix an unused variable warning” to
glib-2-90
- !5411 Update Portuguese translation
- !5430 Backport !5427 “win32: Fix leak of the new name in file monitor
renames” to glib-2-90
- !5437 Backport !5436 “gdesktopappinfo: Check for relatively symlinked
mimeapps.list” to glib-2-90
- !5443 Backport !5438 and !5447 “gdbusauth: bound client authentication line
length” to glib-2-90
- !5445 Backport !5444 “gthread: Only use nanosleep for g_thread_yield on
select kernels” to glib-2-90
- !5459 Backport !5453 “Avoid setting TCP_NODELAY on AF_UNIX sockets.” to
glib-2-90
- !5460 Backport !5418 “gnetworkmonitornetlink: Avoid deadlock by creating
enumerator directly in can_reach_async()” to glib-2-90
- !5474 Backport !5473 “unixsocketaddress: Don't use strcpy()” to glib-2-90
- !5476 Update British English translation
- !5494 Update Indonesian translation
- !5496 Backport !5493 “gutf8: Fix resync after invalid bytes before non-BMP
characters” to glib-2-90
- !5498 Backport !5426 “gdbus: bound received UNIX FDs and reject unnegotiated
passing” to glib-2-90
- !5499 Backport !5480 “gdocumentportal: Percent-encode document portal URIs”
to glib-2-90
- !5500 Backport !5423 “gregex: Fix thinko in branch condition” to glib-2-90
- !5501 Backport !5449 and !5466: gwin32appinfo and gdesktopappinfo: Various
field codes quoting fixes to glib-2-90
- !5509 Backport !5507 “ci: Temporarily disable msys2-clang64 CI” to glib-2-90
- !5510 Backport !5506 “gbitlock: fix GOTO_ASM clobber” to glib-2-90
- !5514 Backport !5512 “gdbusconnection: use-after-free in property calls to
unregistered objects and to subtrees” to glib-2-90
- !5515 Backport !5513 “test-msys2.sh: Adapt for change in package name
(python3 => python)” to glib-2-90
- !5518 Backport !5517 “CI: Drop ccache for MSYS2-MINGW32 job” to glib-2-90
- !5538 Update Portuguese translation
* Translation updates:
- English (United Kingdom) (Bruce Cowan)
- Indonesian (Herpiko Dwi Aguno)
- Portuguese (Hugo Carvalho)
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit 2882a76e9d03eab4137b14f8869f29c69dbc49dc
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:13 2026 +0100
freeradius: Update to version 3.2.11
- Update from version 3.2.10 to 3.2.11
- Update of rootfile
- Under Feature Improvements the changelog mentions Many security fixes and also that all
previous 3.2 versions are deprecated and should not be used.
- Changelog
3.2.11
Configuration Updates
Add notes on the security of CHAP-Password and MS-CHAP-* If you send these
attributes over RADIUS/UDP, then any observer can crack those passwords in
milliseconds on a laptop.
PEAP / SoH functionality has been removed. It was removed from Windows over 10
years ago, and is no longer relevant.
Removed all code and configuration related to trustrouter (abfab) That project
was marked as end of life a few years ago.
Add example of using socat to test radclient + UDP to the server over TLS. See
sites-available/tls, and look for "socat".
Add per-section "do_xlat" and "is_json" config items to rlm_rest see
mods-available/rest for details.
Don't needlessly hex encode Chargeable-User-Identity. This may change the CUI
values in existing configurations if the policy is updated.
Default value for EAP TLS buffer_size reduced from 64k to 4k, which should save
memory with a large number of EAP conversations.
Feature Improvements
Many security fixes * All previous versions of 3.2 are deprecated, and should
not be used.
Implement "track_home_server" in home_server_pool configuration, see proxy.conf.
The previous (and not working) "affinity_id" configuration has been removed.
Implement EAP-PSK. See mods-available/eap for configuration The PSK must be in
"PSK-Password", and must be 16 octets in length.
Add $VALUE{filename} which reads a value from one line of a file.
Add $FILE{filename} which reads a value from the entire contents of a file.
Update DPSK module to read VLANs from the CSV file, and to export
&reply:Pairwise-Master-Key.
Clean up and normalize log messages and debug output. These changes make the
messages easier to read, and easier to understand.
Add significantly more stats for outgoing proxy sockets.
Use wildcard socket for outgoing UDP proxy sockets in more cases This helps to
significantly lower the number of active sockets.
Add TLS-* attributes for use in Autz-Type New-TLS-Connection Fixes #5979.
Performance improvements for "update" sections. The differences are most
noticable when there are many attributes (30+).
Docker fixups for 32-bit ARM systems.
rlm_python3 is now marked as thread-safe, which should help to improve performance.
Update dictionary.wifialliance. Patch from Stefan Paetow.
Warn at startup if certificates are not in date. Patch from Terry Burton.
Bug Fixes
Skip TLS PSK checks when OpenSSL does not support PSK Fixes #5874.
Updated to help build with OpenSSL 4.0 alpha.
Improve performance of State handling when tracking many EAP packets.
Fix overflow on relayed DHCP packets. Issue found by A. Ramos.
Fix more corner cases in RadSec when sockets have errors.
Tweaked module messages to be more consistent, so that messages associated with
a request are printed with the correct request ID.
Fix race conditions when adding or deleting multiple dynamic TLS clients.
Ethernet addresses which are cast to int64 are now in the low bits of the
number, instead of the high bits.
Remove redundant talloc_free in LDAP. Fixes #5927.
Add printing of prepend operator. Fixes #5928.
Failed TCP / TLS connections no longer mark the home server as "dead" Existing
connections (if any) continue to be used. New connection are blocked for
"connect_fail_interval" or "certificate_fail_interval".
Handle race condition in "new proxy socket", which fixes a long-standing issue
where it would open a socket, send packets, and then (rarely) ignore the replies.
Fix secret suppression in rlm_python3.
rlm_sql_sqlite no longer leaks the database handle and its file descriptor when
a query fails with an error which causes a reconnect, such as a read-only
database. The error from the database is now logged, with its file name.
Set "secret" flag for dynamic clients, too.
For dynamic home servers, make realm_dir filenames and SNI checks case insensitive.
Avoid filesort when processing radacct on MySQL / MariaDB.
Fix simul_verify_query for SQLite, which looked up the wrong user. Patch from
Terry Burton. PR #6000.
Update "consistent-keyed-balance" to be more even. There are still some
differences between home servers, but the differences are not substantial.
Fix OCSP checks for certificates containing Authority Info Access.
Clean up memory on OSCP failure. Fixes #5973.
Don't use require_ma for CoA / Disconnect packets, as it's not necessary.
Many fixes and tweaks for reverse CoA, which is now running in production Patches
from CyB0rgg.
Don't require Message-Authenticator in Status-Server replies. Fixes #6006.
Fix generation of Acct-Unique-Session-Id in some cases. Fixes #5981.
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit f686ea01aafadea18e2a2dc272100b841eda2e01
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Fri Nov 27 15:33:12 2026 +0100
flex: Update to version 2.7.10
- Update from version 2.6.15 to 2.7.10
- No change in rootfile
- Changelog
2.7.10
scanner
A scanner whose <<EOF>> rule has the action '|', so that it shares
the action of the rule after it, can be generated again. Flex 2.7.9
stopped with the m4 error "end of file in string" on such a rule.
(#906)
A scanner generated with -F or -CF no longer reads past the end of
its transition table when its input contains a NUL character.
(#628, #908)
2.7.9
scanner
The #line directive that switches back to the generated file after
each rule action now comes before the code that ends the rule, such
as YY_BREAK, so that code is no longer attributed to the scanner
file. Two more directives that pointed into the scanner file are
gone: the one before the case label of a rule whose action is '|',
and a repeated directive after the default rule. (#903)
2.7.8
scanner
A scanner generated in C mode and compiled as C++ no longer defines
a struct named yy_buffer_state, so it can be linked into the same
program as a scanner generated with %option c++ without two
different definitions of that struct. The C scanner's struct is now
named yy_c_buffer_state in that case. A scanner compiled as C is
unchanged, as are YY_BUFFER_STATE and yybuffer in both languages.
Code that names struct yy_buffer_state directly in a C scanner
compiled as C++ must use yy_c_buffer_state, or the typedefs, instead.
(#831)
2.7.7
scanner
The #line directives in a generated scanner now switch back to the
generated file after each rule action, as Bison does, and the
default rule no longer gets a #line directive of its own. Before,
the code flex adds between actions, and the default rule, were
attributed to lines of the scanner file, some of which did not
exist. Compiler messages and coverage tools such as lcov 2.1 and
later then pointed at the wrong lines or failed. (#903)
2.7.6
scanner
A scanner no longer defines _POSIX_C_SOURCE and _POSIX_SOURCE ahead
of the program's own code, and no longer includes <assert.h> for
that purpose. Flex 2.6.5 to 2.7.5 did, which on systems whose
headers hide declarations when those macros are set removed names
the program uses: fileno_unlocked, which stopped GCC's Modula-2
scanner from compiling, and SO_REUSEPORT, which stopped a program
that includes boost asio. A strict ISO C mode still gets its own
declaration of fileno. (#900, #901)
2.7.5
scanner
Flex no longer writes outside its own buffers when a quoted %option
value or a #line file name in the scanner file starts with a NUL
byte. A NUL byte further inside such a value now cuts the value
there and no longer also drops the character before it. (#725)
2.7.4
build
Regenerating the build files now needs libtool 2.4.7 or newer. The
first release whose configure script works on macOS 12 and later is
2.4.7, and flex had asked only for 2.2. The release tarballs are now
made with libtool 2.6.2, the current release. The release check now
stops if it finds a configure script made by an older libtool; its
earlier test looked for text that no released libtool writes. (#888)
scanner
A program that declares struct yyguts_t itself, before the scanner,
and supplies its own yyscan_t by defining YY_TYPEDEF_YY_SCANNER_T,
compiles again with a prefixed reentrant scanner. Flex 2.7.3 put the
prefix in the name of that structure, which made the program's
declaration a different type from the scanner's, and doxygen would
not build. Flex now leaves the name alone when the program defines
YY_TYPEDEF_YY_SCANNER_T. A program that wants a prefixed name there
can declare struct <prefix>guts_t. (#895)
A reentrant C scanner can again set the member yy_flex_debug_r of
its state structure, as it could with flex 2.6.4. Flex 2.6.5 renamed
it to yyflexdebug_r, which stopped csound from building. The new
name yyflexdebug, and the function yyset_debug(), still work. (#896)
2.7.3
build
The release tarballs are now made with libtool 2.4.7, which has the
fix that lets the configure script work on macOS 12 and later. The
configure script in the 2.7.2 tarball was made with libtool 2.4.6
and does not. The release check now stops if it finds the old
script. (#888)
scanner
A reentrant scanner made with a prefix now puts the prefix in the
name of its state structure, yyguts_t, as it does for its other
names. Before, two such scanners with different extra types, built
as C++ and linked into one program, made the compiler warn that
yyguts_t violates the One Definition Rule. Code that writes struct
yyguts_t keeps working. (#877)
A scanner file could run commands while flex was running by putting
m4 macros in the file name of a #line directive, and so could the
name of the input file given on the command line. Flex now rejects
the sequences [[ and ]] in those names. A single bracket is still
allowed. (#879)
A scanner no longer writes into memory it has freed when a rule's
action calls input() at the end of the buffer, which can move the
buffer, and then calls yyless(). (#889)
A scanner whose error handler does not end the program, because it
uses longjmp() or throws an exception, no longer writes in front of
its start-condition stack after yy_pop_state() is called on an
empty stack. Before, the stack position was left below zero, and
the next yy_push_state() wrote at that position. (#887)
A batch scanner (-B) with compressed tables now matches a NUL byte
that cannot extend the current token on its own. Since flex 2.6.5,
the NUL was swallowed into the previous token. (#885)
2.7.2
scanner
A scanner made with -Cf or -CF, without -Ce and without -7 or -8,
now handles input bytes above 127. Before, flex made such a scanner
7-bit, so its tables had no entries for those bytes, and a scanner
given one read memory past its tables and could skip input or crash.
These scanners are now 8-bit unless -7 is given, so their tables
are larger. Building flex with -DDEFAULT_CSIZE=128 restores the old
default. (#880)
2.7.1
scanner
A scanner whose yytext is a pointer, which is the default, no longer
reports a wrong yyleng, or reads memory in front of its input
buffer, when a rule's action calls yymore() and then uses unput()
to push back more characters than the rule matched. The next token
now starts with the pushed-back characters, as no yymore() text is
left to keep. (#874)
2.7.0
scanner
A C++ scanner now stops the build with one message, naming the flex
version that generated it, when the FlexLexer.h it finds is from
another version of flex, as a copy kept in a project's own sources
can be. Before, the compiler reported many errors about members the
class did not have, such as yy_hold_ptr. FlexLexer.h now carries the
version of flex it comes from for this check. A FlexLexer.h from
flex 2.6.17 or earlier has no version and is refused as well;
replace it with the one from this flex. (#872)
2.6.17
scanner
A scanner no longer writes to memory in front of its input buffer
when a rule's action uses unput() to push back more characters than
the rule matched and then calls input() or yyinput() far enough to
read past the end of the buffer. Flex 2.6.16 did this on every later
call to input() or yyinput() in that action, which could corrupt
memory. (#873)
2.6.16
scanner
After a rule's action has called input() or yyinput(), yytext as a
string ends where the token ends, as it did with flex 2.6.4. Flex
2.6.14 made it run on over the characters that had been read, so a
program that copied yytext after reading ahead, such as the
gobject-introspection comment scanner, got those characters twice.
The characters read are still left as they were in a buffer that
the program supplied, and yyleng is unchanged. (#870)
The C++ class yyFlexLexer in FlexLexer.h has one more member for
this, so a C++ program should be rebuilt, along with every library
of its own that includes FlexLexer.h, when it moves to this release.
yyless() after input() or yyinput() gives back the right text and
no longer writes a stale character over the end of the token. Before,
the program's own buffer could be changed and the next token could
start with the wrong character, as with flex 2.6.4.
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
commit de0eac78aaca3d3b04607574aff4ca6894a15e6e
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Fri Nov 27 14:45:44 2026 +0000
make.sh: Warn when building as root
Everything can be built without any root privileges now. Building as root
is still possible, but it is not necessary any more and it gives the build
environment more privileges than it requires.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 5b82b418e0b388f0a75064268cc536522b138439
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Thu Nov 26 17:00:10 2026 +0000
ncurses: Do not install into the host when building the toolchain
The pkgconfig directory, the manual pages and libcursesw.so were using
hardcoded paths in /usr instead of the prefix. When building the
toolchain, which is not done in the chroot, this installs files into
the host system (when run as root) or makes the build fail (when it
cannot write there).
For the regular build, PREFIX is /usr and nothing changes.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 7b13517d21368e8404bb35c31909146238a4f6ac
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Thu Nov 26 16:51:40 2026 +0000
build: Mount the ramdisk on /usr/src for each command
Bring back the ramdisk option, which avoids that all sources are being
extracted to disk. Since every command is now running in its own mount
namespace, the tmpfs is mounted on /usr/src for each of them and simply
disappears when the command terminates.
Everything that needs to survive between two commands is bind-mounted
from the host (the cache, logs, ccache and images). The only exception
was the list of files from before the installation of a package, which
is used to find what a package has installed. Move it into the log
directory.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 750a3b445b32f445ff42e8ba72adf86981c9060b
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Thu Nov 26 16:34:11 2026 +0000
build: Make the sources available when building the toolchain
The first stages of the toolchain are not built in the chroot, but they
still read the sources, patches, etc. from /usr/src of the build
directory, where they have been mounted by prepareenv() earlier.
Mount them in the mount namespace of these commands, too, using the same
function that sets up the chroot.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 2a5408537c2b34ec73fcfeda10abfa6dc3aba84d
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Thu Nov 26 16:25:11 2026 +0000
build: Make the toolchain available without a symlink in /
While building the toolchain, everything is linked against the final
location of the toolchain in /tools_<arch>. So far, we have created a
symlink in the root directory of the host for that, which only root can
do and which leaks out of the build.
Instead, commands that do not run in the chroot get a new root directory
in their mount namespace: A tmpfs that contains all directories of the
host (bind-mounted) and symlinks, plus the toolchain at its final path.
Nothing changes on the host.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 0742ada707629bd1707f98dd21e6a450f8216ced
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Thu Nov 26 09:45:29 2026 +0000
stage2: Do not ship /dev/console and /dev/null in the images
These device nodes are a relic from before we had dracut, which mounts
devtmpfs on /dev and therefore creates all of them automatically.
They also cannot be created when building without root privileges,
because mknod is not permitted in a user namespace.
The /dev directory itself is still being created for the images.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 06c3dac9c4e9ae6d0106e174477516ab2bc62fe9
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Wed Nov 25 17:57:13 2026 +0000
fuse: Do not let the install script call mknod
The install script of libfuse creates /dev/fuse using mknod, which is not
permitted in a user namespace. In the build environment, /dev is
temporary and never part of the package, so this achieved nothing
anyways.
Disable this behaviour (which also skips chown and chmod of fusermount3)
and make fusermount3 setuid by hand to retain the previous result.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit bd0aaec8ee45ffa7f54f4147ddd14ee1e5057bb6
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Wed Nov 25 15:20:07 2026 +0000
build: Do not restore the owners of extracted source tarballs
Tarballs contain the UID and GID of whoever has created them, which
cannot be mapped into the user namespace. Extracting them fails with
"Cannot change ownership to uid ...: Invalid argument".
Tell tar not to restore any ownership when running make. To not clash
with that, rename TAR_OPTIONS in lfs/Config which is only used when
creating archives, and would otherwise override the environment.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 060751672ee4c86f76995999988130e0837583d8
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Wed Nov 25 15:06:07 2026 +0000
build: Allow building without root privileges
Run all commands in a user namespace in which we are root and our range
of subordinate UIDs and GIDs is mapped to all other users, so that the
build environment can chown files, extract the toolchain, etc.
make.sh now checks for entries in /etc/subuid and /etc/subgid, as well
as newuidmap, instead of insisting on being run as root. If we are root,
no user namespace is used.
Files that belong to subordinate IDs cannot be removed by the user from
the outside, therefore "clean" removes the build directories from within
a user namespace, too.
Non-chroot commands start in the base directory rather than $HOME, as
the latter might not be accessible from within the user namespace.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 43d2e0c6936c47f06f39f620b19d9394c40f8386
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Wed Nov 25 15:06:07 2026 +0000
build: Set up the build environment in a namespace for each command
Until now, make.sh has mounted the build environment once in its own
mount namespace (which required re-executing itself) and has then called
chroot for each command. This is rather fragile because a failed build
could leave mounts behind.
Instead, execute() now creates a new set of namespaces for every command
and tools/execute.sh sets up the filesystem of the build environment
inside of it: /proc, /dev, /dev/pts, /dev/shm, /tmp, /sys, the sources
and the directories for logs, ccache and images. Afterwards, it removes
the filesystem of the host from the mount namespace using pivot_root, so
that there is no way back. Everything disappears when the last process
exits, so there is nothing left to clean up.
This removes exec_in_namespace() and cleanrd() as well as the
mountpoints in prepareenv(). The QEMU helper is now mounted by the setup
script, and configure gets a new --config-rw option because the
configuration can no longer be remounted from the outside.
Each command now gets a fresh /tmp.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit f2ea279a17bb2d20ad40803bf2b536bab86584c5
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Wed Nov 25 15:03:42 2026 +0000
make.sh: Bind-mount the device nodes instead of creating them
mknod is not permitted in a user namespace. Bind-mounting the devices
from the host onto empty files works for root and for unprivileged
users alike and still only exposes what we have listed.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 506f85af4a2d5cb26f924ab2ebda48989aef55ea
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Wed Nov 25 15:03:42 2026 +0000
make.sh: check-web-ui: Install the script into /root
/tmp is a tmpfs that we are about to replace for every command that is
run in the build environment. Anything that is placed there from the
outside will be gone by the time the command is launched.
The home directory is part of the build environment and persistent.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 86135887529d860ac5bbe11259cead7258b717d8
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Wed Nov 25 15:03:42 2026 +0000
make.sh: Run tar for the toolchain through execute()
This makes sure that the toolchain is extracted and packed in the same
environment as everything else, which is required once we are running in
a user namespace where the ownership of files is being mapped.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
config/knot-resolver/config.lua | 94 +----
config/knot-resolver/dhcp-lease | 135 +++++--
config/knot-resolver/leases.lua | 88 +++--
config/knot-resolver/leases.schema | 9 +-
config/rootfiles/common/glib | 16 +-
config/rootfiles/common/harfbuzz | 14 +-
config/rootfiles/common/libffi | 2 +-
config/rootfiles/common/riscv64/stage2 | 2 -
config/rootfiles/common/screen | 3 +-
config/rootfiles/common/stage2 | 2 -
config/rootfiles/common/zstd | 2 +-
config/rootfiles/core/208/filelists/files | 4 +
.../{oldcore/106 => core/208}/filelists/flex | 0
.../{oldcore/118 => core/208}/filelists/glib | 0
.../{oldcore/163 => core/208}/filelists/harfbuzz | 0
.../{oldcore/155 => core/208}/filelists/libffi | 0
.../{oldcore/104 => core/208}/filelists/screen | 0
.../{oldcore/149 => core/208}/filelists/zstd | 0
config/rootfiles/core/208/update.sh | 7 +
config/rootfiles/packages/freeradius | 15 +-
html/cgi-bin/dhcp.cgi | 6 +-
lfs/Config | 18 +-
lfs/flex | 4 +-
lfs/freeradius | 6 +-
lfs/fuse | 6 +
lfs/glib | 4 +-
lfs/haproxy | 6 +-
lfs/harfbuzz | 4 +-
lfs/libffi | 4 +-
lfs/libmicrohttpd | 6 +-
lfs/libmpg123 | 4 +-
lfs/ncurses | 6 +-
lfs/postfix | 6 +-
lfs/screen | 4 +-
lfs/zstd | 6 +-
make.sh | 406 ++++++---------------
tools/execute.sh | 343 ++++++++++++++---
37 files changed, 701 insertions(+), 531 deletions(-)
copy config/rootfiles/{oldcore/106 => core/208}/filelists/flex (100%)
copy config/rootfiles/{oldcore/118 => core/208}/filelists/glib (100%)
copy config/rootfiles/{oldcore/163 => core/208}/filelists/harfbuzz (100%)
copy config/rootfiles/{oldcore/155 => core/208}/filelists/libffi (100%)
copy config/rootfiles/{oldcore/104 => core/208}/filelists/screen (100%)
copy config/rootfiles/{oldcore/149 => core/208}/filelists/zstd (100%)
Difference in files:
diff --git a/config/knot-resolver/config.lua b/config/knot-resolver/config.lua
index 68f8a2f644..b81fe52036 100644
--- a/config/knot-resolver/config.lua
+++ b/config/knot-resolver/config.lua
@@ -132,65 +132,6 @@ local function check_ipv4_address(address)
return true
end
-local function reverse_zones(address, netmask)
- local a, b, c, d = address:match("^(%d+)%.(%d+)%.(%d+)%.(%d+)$")
-
- -- Return if we could not parse the address
- if not a or not b or not c or not d then
- return
- end
-
- -- Convert the octets into numbers
- a, b, c, d = tonumber(a), tonumber(b), tonumber(c), tonumber(d)
-
- -- Convert the netmask into prefix
- local prefix = netmask_to_prefix(netmask)
- if not prefix then
- return
- end
-
- -- Round up to the next /8, /16 or /24 (smaller networks end up in their /24)
- local p = math.min(math.ceil(prefix / 8) * 8, 24)
-
- -- Determine how many zones we need
- local n = math.max(2 ^ (p - prefix), 1)
-
- local zones = {}
-
- -- Generate all zones
- for i = 0, n - 1 do
- local zone, oa, ob, oc, od = nil, a, b, c, d
-
- -- /8
- if p == 8 then
- oa = a + i
- zone = string.format("%s.in-addr.arpa.", oa)
-
- -- /16
- elseif p == 16 then
- ob = b + i
- zone = string.format("%s.%s.in-addr.arpa.", ob, oa)
-
- -- /24
- elseif p == 24 then
- oc = c + i
- zone = string.format("%s.%s.%s.in-addr.arpa.", oc, ob, oa)
-
- -- /32
- elseif p == 32 then
- od = d + i
- zone = string.format("%s.%s.%s.%s.in-addr.arpa.", od, oc, ob, oa)
- end
-
- -- Append the zone
- if zone then
- table.insert(zones, kres.str2dname(zone))
- end
- end
-
- return zones
-end
-
-- Setup DNS Forwarders
function config.load_forwarders(settings)
-- Fetch the transport protocol
@@ -440,9 +381,6 @@ function config.load_leases()
-- Load DHCP settings
local settings = config.load_settings("/var/ipfire/dhcp/settings")
- -- Load Ethernet settings
- local ethernet = config.load_settings("/var/ipfire/ethernet/settings")
-
-- Skip this if DNS UPDATE is being used instead
if settings["DNS_UPDATE_ENABLED"] == "on" then
return
@@ -451,34 +389,36 @@ function config.load_leases()
-- Load the leases module
modules.load("leases")
- -- Enable the lookup for all zones that have DHCP enabled
+ -- Is DHCP enabled on any zone?
+ local enabled = false
+
+ -- Enable the forward lookup for all zones that have DHCP enabled
for key, value in pairs(settings) do
local zone = key:match("^ENABLE_(.+)$")
if zone and value == "on" then
+ enabled = true
+
local domain = settings["DOMAIN_NAME_" .. zone]
- -- Forward lookup
if domain and domain ~= "" then
policy.add(
policy.suffix(leases.answer(), { todname(domain) })
)
end
-
- -- Fetch subnet
- local netaddr = ethernet[zone .. "_NETADDRESS"]
- local netmask = ethernet[zone .. "_NETMASK"]
-
- -- Reverse lookup
- if netaddr and netmask then
- local zones = reverse_zones(netaddr, netmask)
-
- if zones then
- policy.add(policy.suffix(leases.answer(), zones))
- end
- end
end
end
+
+ -- Check all reverse lookups against the leases database first, as leases
+ -- might have been handed out from any subnet (including ones configured
+ -- in dhcpd.conf.local). Unknown addresses will be resolved normally.
+ -- If DHCP is disabled, nothing will remove any leftover leases from the
+ -- database, so we must not serve them.
+ if enabled then
+ policy.add(
+ policy.suffix(leases.answer(), { todname("in-addr.arpa.") })
+ )
+ end
end
local function get_zone(name)
diff --git a/config/knot-resolver/dhcp-lease b/config/knot-resolver/dhcp-lease
index 10b5c12d98..9028658e13 100644
--- a/config/knot-resolver/dhcp-lease
+++ b/config/knot-resolver/dhcp-lease
@@ -16,6 +16,87 @@ fix_permissions() {
return 0
}
+# The current version of the schema
+readonly DB_VERSION=1
+
+# Returns the version of the schema of the database
+db_version() {
+ sqlite3 -cmd ".timeout 1000" "${DB_PATH}" "PRAGMA user_version;"
+}
+
+# Upgrades databases that have been created by an older version of the schema
+migrate() {
+ local version
+ local error
+
+ # Fetch the current version
+ if ! version="$(db_version)"; then
+ echo "${0}: Failed to read the version of the database" >&2
+ return 1
+ fi
+
+ # Nothing to do if the database is up to date
+ if [ "${version}" -ge "${DB_VERSION}" ]; then
+ return 0
+ fi
+
+ # Run all steps that are newer than the current version and bump the
+ # version in the same transaction, so that no step is ever applied twice
+ if ! error="$(sqlite3 -bail "${DB_PATH}" 2>&1 >/dev/null <<-EOF
+ .timeout 1000
+ BEGIN IMMEDIATE;
+ $(
+ # Version 1 stores when a lease ends
+ if [ "${version}" -lt 1 ]; then
+ echo "ALTER TABLE leases ADD COLUMN expires INTEGER;"
+ fi
+ )
+ PRAGMA user_version = ${DB_VERSION};
+ COMMIT;
+ EOF
+ )"; then
+ # Another process might have migrated the database at the same time
+ version="$(db_version)"
+
+ if [ "${version:-0}" -lt "${DB_VERSION}" ]; then
+ echo "${error}" >&2
+ echo "${0}: Failed to migrate the database" >&2
+ return 1
+ fi
+ fi
+
+ return 0
+}
+
+# Stores a lease (address, hostname, expires)
+store_lease() {
+ # If the hostname is already in use by another address (e.g.
+ # because the client has moved), the old entry is replaced.
+ sqlite3 "${DB_PATH}" <<-EOF
+ .timeout 1000
+
+ -- Set parameters
+ .parameter set :address '${1}'
+ .parameter set :hostname '${2}'
+ .parameter set :expires ${3:-NULL}
+
+ -- Run statement
+ INSERT OR REPLACE INTO
+ leases
+ (
+ address,
+ hostname,
+ expires
+ )
+ VALUES
+ (
+ :address,
+ :hostname,
+ :expires
+ );
+ EOF
+}
+
# Prints all addresses that are currently in use, either because they have
# an active lease or because they are assigned statically
active_addresses() {
@@ -67,6 +148,8 @@ main() {
local address
local hostname
local domainname
+ local leasetime
+ local expires
while [ $# -gt 0 ]; do
case "${1}" in
@@ -79,6 +162,9 @@ main() {
DOMAINNAME=*)
domainname="${1#*=}"
;;
+ LEASETIME=*)
+ leasetime="${1#*=}"
+ ;;
*)
# Ignore any unknown arguments
;;
@@ -111,6 +197,12 @@ main() {
elif ! [[ ${hostname} =~ ^[A-Za-z0-9_-]{1,63}$ ]]; then
echo "${0}: Invalid hostname" >&2
return 2
+
+ # Validate the lease time (it is optional, as older
+ # configurations of dhcpd won't pass it)
+ elif [ -n "${leasetime}" ] && ! [[ ${leasetime} =~ ^[0-9]{1,10}$ ]]; then
+ echo "${0}: Invalid lease time" >&2
+ return 2
fi
# Join the hostname together
@@ -119,27 +211,16 @@ main() {
# Make the hostname lowercase
hostname="${hostname,,}"
- # If the hostname is already in use by another address (e.g.
- # because the client has moved), the old entry is replaced.
- if ! sqlite3 "${DB_PATH}" <<-EOF
- -- Set parameters
- .parameter set :address '${address}'
- .parameter set :hostname '${hostname}'
+ # Compute when the lease ends
+ if [ -n "${leasetime}" ]; then
+ expires="$(( $(date +%s) + 10#${leasetime} ))"
+ fi
- -- Run statement
- INSERT OR REPLACE INTO
- leases
- (
- address,
- hostname
- )
- VALUES
- (
- :address,
- :hostname
- );
- EOF
- then
+ # Make sure the database has the latest schema
+ migrate || return 1
+
+ # Store the lease
+ if ! store_lease "${address}" "${hostname}" "${expires}"; then
echo "${0}: Failed to store the lease" >&2
return 1
fi
@@ -189,19 +270,29 @@ main() {
local address
local statements=""
+ # Make sure the database has the latest schema
+ migrate || return 1
+
while read -r address; do
[[ ${address} =~ ^[0-9]{1,3}(\.[0-9]{1,3}){3}$ ]] || continue
statements+="INSERT OR IGNORE INTO keep(address) VALUES('${address}');"$'\n'
done < <(active_addresses)
- if ! sqlite3 "${DB_PATH}" <<-EOF
+ # Afterwards, the WAL is checkpointed and truncated, as it
+ # would otherwise never shrink. This waits briefly for any
+ # readers to finish their (very short) lookups.
+ if ! sqlite3 "${DB_PATH}" >/dev/null <<-EOF
+ .timeout 1000
CREATE TEMP TABLE keep(address TEXT PRIMARY KEY);
${statements}
DELETE FROM
leases
WHERE
- address NOT IN (SELECT address FROM keep);
+ address NOT IN (SELECT address FROM keep)
+ OR
+ expires <= CAST(strftime('%s', 'now') AS INTEGER);
+ PRAGMA wal_checkpoint(TRUNCATE);
EOF
then
echo "${0}: Failed to clean up the database" >&2
diff --git a/config/knot-resolver/leases.lua b/config/knot-resolver/leases.lua
index 6d259ee5c5..b2f61e0d66 100644
--- a/config/knot-resolver/leases.lua
+++ b/config/knot-resolver/leases.lua
@@ -13,6 +13,27 @@ local db
local sql_fwd
local sql_rev
+-- Prepares a lookup query that ignores any leases that have ended
+local function prepare(column, condition)
+ local stmt = db:prepare(string.format(
+ "SELECT %s FROM leases WHERE %s AND (expires IS NULL OR "
+ .. "expires > CAST(strftime('%%s', 'now') AS INTEGER)) LIMIT 1",
+ column, condition
+ ))
+
+ if stmt then
+ return stmt
+ end
+
+ -- The database might not have been migrated, yet
+ log_warn(C.LOG_GRP_RESOLVER,
+ "leases: Cannot check when leases end: " .. db:errmsg())
+
+ return db:prepare(string.format(
+ "SELECT %s FROM leases WHERE %s LIMIT 1", column, condition
+ ))
+end
+
-- Initializes the module
function M.init()
-- Open the database
@@ -24,18 +45,14 @@ function M.init()
return -1
end
- -- Don't ever block
+ -- Never write to the database
db:exec("PRAGMA query_only = 1")
-- Prepare the forward lookup query
- sql_fwd = db:prepare(
- "SELECT address FROM leases WHERE hostname = ?1 COLLATE NOCASE LIMIT 1"
- )
+ sql_fwd = prepare("address", "hostname = ?1 COLLATE NOCASE")
-- Prepare the reverse lookup query
- sql_rev = db:prepare(
- "SELECT hostname FROM leases WHERE address = ?1 LIMIT 1"
- )
+ sql_rev = prepare("hostname", "address = ?1")
end
-- Cleans up the module
@@ -67,22 +84,38 @@ local function address_from_reverse_pointer(qname)
return string.format("%s.%s.%s.%s", a, b, c, d)
end
-local function lookup_fwd(hostname)
- -- Reset the statement
- sql_fwd:reset()
+-- Runs a prepared statement and returns the first column of the first row.
+-- The statement is reset straight away so that we don't keep a read
+-- transaction open, which would prevent the WAL from being checkpointed.
+local function query_one(stmt, value)
+ local result
- -- Bind the query name
- sql_fwd:bind_values(hostname)
+ -- We cannot answer anything if the statement could not be prepared
+ if not stmt then
+ return
+ end
+
+ -- Bind the value
+ stmt:bind_values(value)
-- Execute the statement
- if sql_fwd:step() == sqlite3.ROW then
- local address = sql_fwd:get_value(0)
+ if stmt:step() == sqlite3.ROW then
+ result = stmt:get_value(0)
+ end
- -- Convert the address to wire format
- if address then
- return kres.str2ip(address)
- end
- end
+ -- Reset the statement to end the read transaction
+ stmt:reset()
+
+ return result
+end
+
+local function lookup_fwd(hostname)
+ local address = query_one(sql_fwd, hostname)
+
+ -- Convert the address to wire format
+ if address then
+ return kres.str2ip(address)
+ end
end
local function lookup_rev(qname)
@@ -94,20 +127,11 @@ local function lookup_rev(qname)
return
end
- -- Reset the statement
- sql_rev:reset()
-
- -- Bind the address
- sql_rev:bind_values(address)
+ local hostname = query_one(sql_rev, address)
- -- Execute the statement
- if sql_rev:step() == sqlite3.ROW then
- local hostname = sql_rev:get_value(0)
-
- -- Convert the hostname to wire format
- if hostname then
- return todname(hostname)
- end
+ -- Convert the hostname to wire format
+ if hostname then
+ return todname(hostname)
end
end
diff --git a/config/knot-resolver/leases.schema b/config/knot-resolver/leases.schema
index 23587939c3..44239be075 100644
--- a/config/knot-resolver/leases.schema
+++ b/config/knot-resolver/leases.schema
@@ -1,6 +1,10 @@
CREATE TABLE IF NOT EXISTS leases(
address TEXT PRIMARY KEY,
- hostname TEXT NOT NULL
+ hostname TEXT NOT NULL,
+
+ -- The time (in seconds since the epoch) when the lease ends
+ -- or NULL if unknown
+ expires INTEGER
);
CREATE UNIQUE INDEX IF NOT EXISTS
@@ -8,6 +12,9 @@ CREATE UNIQUE INDEX IF NOT EXISTS
CREATE UNIQUE INDEX IF NOT EXISTS
leases_hostname ON leases(hostname COLLATE NOCASE);
+-- The version of this schema (see migrate() in dhcp-lease)
+PRAGMA user_version = 1;
+
-- Run in WAL mode
PRAGMA journal_mode=WAL;
PRAGMA synchronous=NORMAL;
diff --git a/config/rootfiles/common/glib b/config/rootfiles/common/glib
index 08a9a8cf5c..b23f26d147 100644
--- a/config/rootfiles/common/glib
+++ b/config/rootfiles/common/glib
@@ -339,22 +339,22 @@ usr/include/glib-2.0/gio/gdebugcontroller.h
#usr/lib/glib-2.0/include/glibconfig.h
#usr/lib/libgio-2.0.so
usr/lib/libgio-2.0.so.0
-usr/lib/libgio-2.0.so.0.9000.1
+usr/lib/libgio-2.0.so.0.9100.0
#usr/lib/libgirepository-2.0.so
usr/lib/libgirepository-2.0.so.0
-usr/lib/libgirepository-2.0.so.0.9000.1
+usr/lib/libgirepository-2.0.so.0.9100.0
#usr/lib/libglib-2.0.so
usr/lib/libglib-2.0.so.0
-usr/lib/libglib-2.0.so.0.9000.1
+usr/lib/libglib-2.0.so.0.9100.0
#usr/lib/libgmodule-2.0.so
usr/lib/libgmodule-2.0.so.0
-usr/lib/libgmodule-2.0.so.0.9000.1
+usr/lib/libgmodule-2.0.so.0.9100.0
#usr/lib/libgobject-2.0.so
usr/lib/libgobject-2.0.so.0
-usr/lib/libgobject-2.0.so.0.9000.1
+usr/lib/libgobject-2.0.so.0.9100.0
#usr/lib/libgthread-2.0.so
usr/lib/libgthread-2.0.so.0
-usr/lib/libgthread-2.0.so.0.9000.1
+usr/lib/libgthread-2.0.so.0.9100.0
#usr/lib/pkgconfig/gio-2.0.pc
#usr/lib/pkgconfig/gio-unix-2.0.pc
#usr/lib/pkgconfig/girepository-2.0.pc
@@ -377,8 +377,8 @@ usr/lib/libgthread-2.0.so.0.9000.1
#usr/share/gdb/auto-load
#usr/share/gdb/auto-load/usr
#usr/share/gdb/auto-load/usr/lib
-#usr/share/gdb/auto-load/usr/lib/libglib-2.0.so.0.9000.1-gdb.py
-#usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.9000.1-gdb.py
+#usr/share/gdb/auto-load/usr/lib/libglib-2.0.so.0.9100.0-gdb.py
+#usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.9100.0-gdb.py
#usr/share/gettext/its
#usr/share/gettext/its/gschema.its
#usr/share/gettext/its/gschema.loc
diff --git a/config/rootfiles/common/harfbuzz b/config/rootfiles/common/harfbuzz
index 7b35e85b34..1de2306fc3 100644
--- a/config/rootfiles/common/harfbuzz
+++ b/config/rootfiles/common/harfbuzz
@@ -54,25 +54,25 @@ usr/include/harfbuzz/hb-script-list.h
#usr/lib/cmake/harfbuzz/harfbuzz-config.cmake
#usr/lib/libharfbuzz-cairo.so
usr/lib/libharfbuzz-cairo.so.0
-usr/lib/libharfbuzz-cairo.so.0.61510.0
+usr/lib/libharfbuzz-cairo.so.0.61520.0
#usr/lib/libharfbuzz-gobject.so
usr/lib/libharfbuzz-gobject.so.0
-usr/lib/libharfbuzz-gobject.so.0.61510.0
+usr/lib/libharfbuzz-gobject.so.0.61520.0
#usr/lib/libharfbuzz-gpu.so
usr/lib/libharfbuzz-gpu.so.0
-usr/lib/libharfbuzz-gpu.so.0.61510.0
+usr/lib/libharfbuzz-gpu.so.0.61520.0
#usr/lib/libharfbuzz-raster.so
usr/lib/libharfbuzz-raster.so.0
-usr/lib/libharfbuzz-raster.so.0.61510.0
+usr/lib/libharfbuzz-raster.so.0.61520.0
#usr/lib/libharfbuzz-subset.so
usr/lib/libharfbuzz-subset.so.0
-usr/lib/libharfbuzz-subset.so.0.61510.0
+usr/lib/libharfbuzz-subset.so.0.61520.0
#usr/lib/libharfbuzz-vector.so
usr/lib/libharfbuzz-vector.so.0
-usr/lib/libharfbuzz-vector.so.0.61510.0
+usr/lib/libharfbuzz-vector.so.0.61520.0
#usr/lib/libharfbuzz.so
usr/lib/libharfbuzz.so.0
-usr/lib/libharfbuzz.so.0.61510.0
+usr/lib/libharfbuzz.so.0.61520.0
#usr/lib/pkgconfig/harfbuzz-cairo.pc
#usr/lib/pkgconfig/harfbuzz-gobject.pc
#usr/lib/pkgconfig/harfbuzz-gpu.pc
diff --git a/config/rootfiles/common/libffi b/config/rootfiles/common/libffi
index 6d6bb7b42c..4ffb64b58b 100644
--- a/config/rootfiles/common/libffi
+++ b/config/rootfiles/common/libffi
@@ -4,7 +4,7 @@
#usr/lib/libffi.la
#usr/lib/libffi.so
usr/lib/libffi.so.8
-usr/lib/libffi.so.8.5.1
+usr/lib/libffi.so.8.5.2
#usr/lib/pkgconfig/libffi.pc
#usr/share/info/libffi.info
#usr/share/man/man3/ffi.3
diff --git a/config/rootfiles/common/riscv64/stage2 b/config/rootfiles/common/riscv64/stage2
index e893c80ec6..9023dcae1f 100644
--- a/config/rootfiles/common/riscv64/stage2
+++ b/config/rootfiles/common/riscv64/stage2
@@ -173,6 +173,4 @@ var/run
#var/spool
var/tmp
run
-dev/console
-dev/null
tmp
diff --git a/config/rootfiles/common/screen b/config/rootfiles/common/screen
index e8b72aaa2a..4410f1abce 100644
--- a/config/rootfiles/common/screen
+++ b/config/rootfiles/common/screen
@@ -1,6 +1,7 @@
etc/screenrc
usr/bin/screen
-usr/bin/screen-5.0.1
+usr/bin/screen-5.0.3
+#usr/share/info/screen.info
#usr/share/man/man1/screen.1
#usr/share/screen
#usr/share/screen/utf8encodings
diff --git a/config/rootfiles/common/stage2 b/config/rootfiles/common/stage2
index c722ab5070..b7a4d3e458 100644
--- a/config/rootfiles/common/stage2
+++ b/config/rootfiles/common/stage2
@@ -171,6 +171,4 @@ var/run
#var/spool
var/tmp
run
-dev/console
-dev/null
tmp
diff --git a/config/rootfiles/common/zstd b/config/rootfiles/common/zstd
index ac099e38be..e7a672ebf1 100644
--- a/config/rootfiles/common/zstd
+++ b/config/rootfiles/common/zstd
@@ -10,7 +10,7 @@ usr/bin/zstdmt
#usr/lib/libzstd.a
#usr/lib/libzstd.so
usr/lib/libzstd.so.1
-usr/lib/libzstd.so.1.5.7
+usr/lib/libzstd.so.1.6.0
#usr/lib/pkgconfig/libzstd.pc
#usr/share/man/man1/unzstd.1
#usr/share/man/man1/zstd.1
diff --git a/config/rootfiles/core/208/filelists/files b/config/rootfiles/core/208/filelists/files
index e75b38f50f..884a6d0c83 100644
--- a/config/rootfiles/core/208/filelists/files
+++ b/config/rootfiles/core/208/filelists/files
@@ -5,11 +5,14 @@ etc/rc.d/helper/getdnsfromdhcpc.pl
etc/rc.d/init.d/networking/red.up/23-suricata
etc/rc.d/init.d/partresize
etc/rc.d/init.d/wlanclient
+srv/web/ipfire/cgi-bin/dhcp.cgi
usr/bin/captive-cleanup
usr/bin/suricata-report-cron
usr/lib/firewall/firewall-lib.pl
usr/lib/firewall/rules.pl
usr/lib/knot-resolver/config.lua
+usr/lib/knot-resolver/kres_modules/leases.lua
+usr/lib/knot-resolver/leases.schema
usr/local/bin/convert-html-entities
usr/local/bin/hddshutdown
usr/local/bin/qosd
@@ -23,6 +26,7 @@ usr/sbin/convert-ids-multiple-providers
usr/sbin/convert-outgoingfw
usr/sbin/convert-portfw
usr/sbin/convert-xtaccess
+usr/sbin/dhcp-lease
var/ipfire/connscheduler/lib.pl
var/ipfire/disk-functions.pl
var/ipfire/general-functions.pl
diff --git a/config/rootfiles/core/208/filelists/flex b/config/rootfiles/core/208/filelists/flex
new file mode 120000
index 0000000000..feb0390ffe
--- /dev/null
+++ b/config/rootfiles/core/208/filelists/flex
@@ -0,0 +1 @@
+../../../common/flex
\ No newline at end of file
diff --git a/config/rootfiles/core/208/filelists/glib b/config/rootfiles/core/208/filelists/glib
new file mode 120000
index 0000000000..44665746ad
--- /dev/null
+++ b/config/rootfiles/core/208/filelists/glib
@@ -0,0 +1 @@
+../../../common/glib
\ No newline at end of file
diff --git a/config/rootfiles/core/208/filelists/harfbuzz b/config/rootfiles/core/208/filelists/harfbuzz
new file mode 120000
index 0000000000..ffe1e0d0bd
--- /dev/null
+++ b/config/rootfiles/core/208/filelists/harfbuzz
@@ -0,0 +1 @@
+../../../common/harfbuzz
\ No newline at end of file
diff --git a/config/rootfiles/core/208/filelists/libffi b/config/rootfiles/core/208/filelists/libffi
new file mode 120000
index 0000000000..c391acd0cb
--- /dev/null
+++ b/config/rootfiles/core/208/filelists/libffi
@@ -0,0 +1 @@
+../../../common/libffi
\ No newline at end of file
diff --git a/config/rootfiles/core/208/filelists/screen b/config/rootfiles/core/208/filelists/screen
new file mode 120000
index 0000000000..81008f46ef
--- /dev/null
+++ b/config/rootfiles/core/208/filelists/screen
@@ -0,0 +1 @@
+../../../common/screen
\ No newline at end of file
diff --git a/config/rootfiles/core/208/filelists/zstd b/config/rootfiles/core/208/filelists/zstd
new file mode 120000
index 0000000000..d6d4a3bf13
--- /dev/null
+++ b/config/rootfiles/core/208/filelists/zstd
@@ -0,0 +1 @@
+../../../common/zstd
\ No newline at end of file
diff --git a/config/rootfiles/core/208/update.sh b/config/rootfiles/core/208/update.sh
index bd19e05964..ef93b6f177 100644
--- a/config/rootfiles/core/208/update.sh
+++ b/config/rootfiles/core/208/update.sh
@@ -301,6 +301,13 @@ gpgconf --kill all
# Start services
+# Regenerate the DHCP configuration because the event handlers have changed
+# (this restarts the DHCP server if enabled)
+sudo -u nobody /srv/web/ipfire/cgi-bin/dhcp.cgi </dev/null >/dev/null
+
+# Migrate the leases database, remove any stale leases and truncate the WAL
+/usr/sbin/dhcp-lease cleanup
+
# Restart the DNS resolver to load the new configuration
/etc/init.d/knot-resolver restart
diff --git a/config/rootfiles/packages/freeradius b/config/rootfiles/packages/freeradius
index fdd5a45987..9d71951272 100644
--- a/config/rootfiles/packages/freeradius
+++ b/config/rootfiles/packages/freeradius
@@ -78,7 +78,6 @@ etc/raddb
#etc/raddb/mods-available/rest
#etc/raddb/mods-available/smbpasswd
#etc/raddb/mods-available/smsotp
-#etc/raddb/mods-available/soh
#etc/raddb/mods-available/sometimes
#etc/raddb/mods-available/sql
#etc/raddb/mods-available/sql_map
@@ -269,7 +268,6 @@ etc/raddb
#etc/raddb/mods-enabled/radutmp
#etc/raddb/mods-enabled/realm
#etc/raddb/mods-enabled/replicate
-#etc/raddb/mods-enabled/soh
#etc/raddb/mods-enabled/sradutmp
#etc/raddb/mods-enabled/totp
#etc/raddb/mods-enabled/unix
@@ -312,8 +310,8 @@ etc/raddb
#etc/raddb/sites-available/originate-coa
#etc/raddb/sites-available/proxy-inner-tunnel
#etc/raddb/sites-available/resource-check
+#etc/raddb/sites-available/reverse-coa
#etc/raddb/sites-available/robust-proxy-accounting
-#etc/raddb/sites-available/soh
#etc/raddb/sites-available/status
#etc/raddb/sites-available/tls
#etc/raddb/sites-available/tls-cache
@@ -457,6 +455,9 @@ usr/lib/freeradius/rlm_cache.so
#usr/lib/freeradius/rlm_cache_rbtree.a
#usr/lib/freeradius/rlm_cache_rbtree.la
usr/lib/freeradius/rlm_cache_rbtree.so
+#usr/lib/freeradius/rlm_cache_sqlite.a
+#usr/lib/freeradius/rlm_cache_sqlite.la
+usr/lib/freeradius/rlm_cache_sqlite.so
#usr/lib/freeradius/rlm_chap.a
#usr/lib/freeradius/rlm_chap.la
usr/lib/freeradius/rlm_chap.so
@@ -499,6 +500,9 @@ usr/lib/freeradius/rlm_eap_mschapv2.so
#usr/lib/freeradius/rlm_eap_peap.a
#usr/lib/freeradius/rlm_eap_peap.la
usr/lib/freeradius/rlm_eap_peap.so
+#usr/lib/freeradius/rlm_eap_psk.a
+#usr/lib/freeradius/rlm_eap_psk.la
+usr/lib/freeradius/rlm_eap_psk.so
#usr/lib/freeradius/rlm_eap_pwd.a
#usr/lib/freeradius/rlm_eap_pwd.la
usr/lib/freeradius/rlm_eap_pwd.so
@@ -580,9 +584,6 @@ usr/lib/freeradius/rlm_replicate.so
#usr/lib/freeradius/rlm_rest.a
#usr/lib/freeradius/rlm_rest.la
usr/lib/freeradius/rlm_rest.so
-#usr/lib/freeradius/rlm_soh.a
-#usr/lib/freeradius/rlm_soh.la
-usr/lib/freeradius/rlm_soh.so
#usr/lib/freeradius/rlm_sometimes.a
#usr/lib/freeradius/rlm_sometimes.la
usr/lib/freeradius/rlm_sometimes.so
@@ -870,6 +871,7 @@ usr/sbin/radmin
#usr/share/doc/freeradius/configuration/dynamic_home_servers.md
#usr/share/doc/freeradius/configuration/load_balance.rst
#usr/share/doc/freeradius/configuration/post_auth_type
+#usr/share/doc/freeradius/configuration/reverse_coa.md
#usr/share/doc/freeradius/configuration/session_type
#usr/share/doc/freeradius/configuration/simultaneous_use
#usr/share/doc/freeradius/configuration/snmp
@@ -899,7 +901,6 @@ usr/sbin/radmin
#usr/share/doc/freeradius/modules/rlm_pam
#usr/share/doc/freeradius/modules/rlm_passwd
#usr/share/doc/freeradius/modules/rlm_python
-#usr/share/doc/freeradius/modules/rlm_soh
#usr/share/doc/freeradius/modules/rlm_sql
#usr/share/doc/freeradius/modules/rlm_sqlcounter
#usr/share/doc/freeradius/modules/rlm_sqlippool
diff --git a/html/cgi-bin/dhcp.cgi b/html/cgi-bin/dhcp.cgi
index 63969279c3..2a2b0e5bf6 100644
--- a/html/cgi-bin/dhcp.cgi
+++ b/html/cgi-bin/dhcp.cgi
@@ -1351,11 +1351,15 @@ on commit {
"DOMAINNAME=",
pick-first-value(config-option domain-name, "")
);
+ set ClientLeaseTime = concat(
+ "LEASETIME=",
+ binary-to-ascii(10, 32, "", encode-int(lease-time, 32))
+ );
if (ClientHostName = "") {
# Nothing to do
} else {
- execute("/usr/sbin/dhcp-lease", "commit", ClientAddress, concat("HOSTNAME=", ClientHostName), ClientDomainName);
+ execute("/usr/sbin/dhcp-lease", "commit", ClientAddress, concat("HOSTNAME=", ClientHostName), ClientDomainName, ClientLeaseTime);
}
}
diff --git a/lfs/Config b/lfs/Config
index 1aa9db9b62..5a636f77fa 100644
--- a/lfs/Config
+++ b/lfs/Config
@@ -75,7 +75,7 @@ else
PREFIX = /usr
endif
-TAR_OPTIONS = \
+TAR_CREATE_OPTIONS = \
--format=pax \
--acls \
--xattrs \
@@ -282,8 +282,8 @@ endef
ifeq "$(ROOT)" ""
define PREBUILD
echo "====================================== Installing $(THISAPP) ..."
- @echo "Install started; saving file list to $(DIR_SRC)/lsalr ..."
- @if [ ! -f $(DIR_SRC)/lsalr ]; then $(FIND_FILES) > $(DIR_SRC)/lsalr; fi
+ @echo "Install started; saving file list to $(DIR_INFO)/lsalr ..."
+ @if [ ! -f $(DIR_INFO)/lsalr ]; then $(FIND_FILES) > $(DIR_INFO)/lsalr; fi
endef
else
define PREBUILD
@@ -299,9 +299,9 @@ define POSTBUILD
@type -p ldconfig >/dev/null && ldconfig || :
@echo "Install done; saving file list to $(TARGET) ..."
@rm -rf $(GOPATH) /root/.cache /root/.cargo /root/.config/go
- @$(FIND_FILES) > $(DIR_SRC)/lsalrnew
- @diff $(DIR_SRC)/lsalr $(DIR_SRC)/lsalrnew | grep '^> ' | sed 's/^> //' > $(TARGET)_diff
- @mv -f $(DIR_SRC)/lsalrnew $(DIR_SRC)/lsalr
+ @$(FIND_FILES) > $(DIR_INFO)/lsalrnew
+ @diff $(DIR_INFO)/lsalr $(DIR_INFO)/lsalrnew | grep '^> ' | sed 's/^> //' > $(TARGET)_diff
+ @mv -f $(DIR_INFO)/lsalrnew $(DIR_INFO)/lsalr
@sed -i -e 's+.\/++' $(TARGET)_diff
# compare roofile ( same name as lfs script) with the list of installed files
# special cases
@@ -371,7 +371,7 @@ COLLECT_FILES = \
__FILES_IN = \
tar \
--create \
- $(TAR_OPTIONS) \
+ $(TAR_CREATE_OPTIONS) \
--directory=/ \
--exclude="dev/pts/*" \
--exclude="proc/*" \
@@ -384,7 +384,7 @@ __FILES_IN = \
__FILES_OUT = \
tar \
--extract \
- $(TAR_OPTIONS) \
+ $(TAR_CREATE_OPTIONS) \
--directory=$(1)
# Copies all files on a rootfile into the given directory
@@ -410,7 +410,7 @@ __COMPRESS = \
--create \
--verbose --verbose \
--use-compress-program="$(3)" \
- $(TAR_OPTIONS) \
+ $(TAR_CREATE_OPTIONS) \
--directory=$(1) \
--file=$(2) \
--show-transform \
diff --git a/lfs/flex b/lfs/flex
index d62ab303b2..984976e21f 100644
--- a/lfs/flex
+++ b/lfs/flex
@@ -24,7 +24,7 @@
include Config
-VER = 2.6.15
+VER = 2.7.10
THISAPP = flex-$(VER)
DL_FILE = $(THISAPP).tar.gz
@@ -52,7 +52,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = 6ef916385340813265c9837ce3f7fa6af848028ac941d834de228e6a658480a4a0539bc596b9080192a98541a2ea8bf7565c1db80aff82799545e4a8036fb27a
+$(DL_FILE)_BLAKE2 = 3e20f416385cdb08867b5eff65c14810dff339e4428dd0c76487774fea25c0c1a907423418e1ad6193a0b6804f6197c697e74b774b1f0511d82ed44aa42933fe
install : $(TARGET)
diff --git a/lfs/freeradius b/lfs/freeradius
index ec13b8ce31..0f81f3b2cc 100644
--- a/lfs/freeradius
+++ b/lfs/freeradius
@@ -26,7 +26,7 @@ include Config
SUMMARY = RADIUS Server
-VER = 3.2.10
+VER = 3.2.11
THISAPP = freeradius-server-$(VER)
DL_FILE = $(THISAPP).tar.bz2
@@ -34,7 +34,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = freeradius
-PAK_VER = 27
+PAK_VER = 28
DEPS = libtalloc samba
@@ -48,7 +48,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = 2e4b88f13c5742e60fd5b2931e93cb861b8fd0b9b12ba340a08f185884b64e49f035e14387a19b9ae4ae7c71ec9249132c0ccf19febfcdefd4725ddef0877a77
+$(DL_FILE)_BLAKE2 = 342056a88c82f13f9efa7ae525ce310b1091c03eaaaf752428a1985e35b705e87b78acb745807643b1a16eaebbbf53b75476b42110bd98b10fbf420b3199ca56
install : $(TARGET)
diff --git a/lfs/fuse b/lfs/fuse
index cb393f06d6..300cf1bacd 100644
--- a/lfs/fuse
+++ b/lfs/fuse
@@ -76,10 +76,16 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
cd $(DIR_APP) && meson setup \
--prefix=/usr \
-D examples=false \
+ -D useroot=false \
builddir/
cd $(DIR_APP)/builddir && ninja $(MAKETUNING)
cd $(DIR_APP)/builddir && ninja install
+ # The install script would call mknod to create /dev/fuse, which is not
+ # possible in a user namespace (and which is pointless in a build
+ # environment). Therefore we make fusermount3 setuid ourselves.
+ chmod -v u+s /usr/bin/fusermount3
+
# Move mount.fuse3 to same location as mount.fuse was in previous version
mv -v /usr/sbin/mount.fuse3 /sbin
diff --git a/lfs/glib b/lfs/glib
index 0a5d18322d..b438131f86 100644
--- a/lfs/glib
+++ b/lfs/glib
@@ -24,7 +24,7 @@
include Config
-VER = 2.90.1
+VER = 2.91.0
# https://download.gnome.org/sources/glib/
THISAPP = glib-$(VER)
@@ -41,7 +41,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = 97858d88b5dfb0f6d081b59dec5e6e3c96680fc72d53d3389f07cc36c8c18a2b5b9ac7af943db8294376be496932f5fe75e42f0f4747c2cd88056ba505dba073
+$(DL_FILE)_BLAKE2 = 182a61a1b0161e5d78a1e1d91960575912a23894398d74d82a709829b35b430f04159d970647853853737f474bc47621c08722d8224f7e52d7d259a6d8bd17de
install : $(TARGET)
diff --git a/lfs/haproxy b/lfs/haproxy
index 14e8172628..3d7c02a452 100644
--- a/lfs/haproxy
+++ b/lfs/haproxy
@@ -26,7 +26,7 @@ include Config
SUMMARY = The Reliable, High Performance TCP/HTTP Load Balancer
-VER = 3.4.8
+VER = 3.4.9
# From: https://www.haproxy.org/download/
@@ -36,7 +36,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = haproxy
-PAK_VER = 38
+PAK_VER = 39
DEPS =
@@ -54,7 +54,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = 2000fb0c5a1d8402eb854c70f6af18d9e5334ddf5f6a8d71f72dcbc44671adc13c234905b47ca3581599b6666d9b2373084291ec1325a1d26018df47019b9d13
+$(DL_FILE)_BLAKE2 = 2e5fa1941cebe5e3f975465c0e7cbc4d88f5df6abaacfff6861f8ac815f5bc41836d112cc4c60e636b3b6de7df48f6165dc1b5cc9e4b329be8af03d5795576fc
install : $(TARGET)
diff --git a/lfs/harfbuzz b/lfs/harfbuzz
index 8f9751963c..eb6d7556f1 100644
--- a/lfs/harfbuzz
+++ b/lfs/harfbuzz
@@ -24,7 +24,7 @@
include Config
-VER = 15.1.0
+VER = 15.2.0
THISAPP = harfbuzz-$(VER)
DL_FILE = $(THISAPP).tar.xz
@@ -40,7 +40,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = 61617540401622b192651030ceb31798e8631af1925577cd05d2bbeada88c9e99f371411ef4a0d203ed8a59d028f517c34b2440bfcca3c81fe734c45aa78b067
+$(DL_FILE)_BLAKE2 = aacd4cc6bf64fb08071372581c99e3e8ab7668edf4ef73e1d3ee68fea09af6ea60abf9ee9714770878560bade99b2a5037a534ac5f6ccd4463f5604f16301688
install : $(TARGET)
diff --git a/lfs/libffi b/lfs/libffi
index 1205650e3e..904d974330 100644
--- a/lfs/libffi
+++ b/lfs/libffi
@@ -24,7 +24,7 @@
include Config
-VER = 3.8.1
+VER = 3.8.2
THISAPP = libffi-$(VER)
DL_FILE = $(THISAPP).tar.gz
@@ -40,7 +40,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = 67a84bb411d4cdf6eb0d307c2b9e733f731f58780aa8f7d817b63605d0f8ac5e87224fffa212d6f560e38bed98a5ccc19f15fe54b74274da4f8908f55d6d4377
+$(DL_FILE)_BLAKE2 = cf42680a4ea6296b2676e178ee40d723705fe6cff85e431ca54d5f52b275b87a17756a47a3fa6eddc4e765f15450c768137313e68eb5433ce436d3cce491c1d8
install : $(TARGET)
diff --git a/lfs/libmicrohttpd b/lfs/libmicrohttpd
index ec75eba0d5..1c337b7844 100644
--- a/lfs/libmicrohttpd
+++ b/lfs/libmicrohttpd
@@ -26,7 +26,7 @@ include Config
SUMMARY = Small C library to easily run an HTTP server as part of an application
-VER = 1.0.10
+VER = 1.0.11
THISAPP = libmicrohttpd-$(VER)
DL_FILE = $(THISAPP).tar.gz
@@ -34,7 +34,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = libmicrohttpd
-PAK_VER = 4
+PAK_VER = 5
DEPS =
@@ -48,7 +48,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = bf7885a0c48ca5e5a0543aa518ec004e47c60dd9f812a06914cf97b3f95fe0a972a9a24a84a402fd63e480bc096fc7cd67f8366ea6df7e6e438f18cc0448f2fc
+$(DL_FILE)_BLAKE2 = 7aaa0070204b06caf170fd1451c578154dfb2da7e23ace2a2cbe100534a1a5f24436385d628fdcd928cb116c53ba16097a5de7b3390278e4d8eb4b1ead54d09d
install : $(TARGET)
diff --git a/lfs/libmpg123 b/lfs/libmpg123
index 131e0d0f3d..7bb8e1ccd2 100644
--- a/lfs/libmpg123
+++ b/lfs/libmpg123
@@ -33,8 +33,8 @@ DL_FILE = $(THISAPP).tar.bz2
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
-PROG = mpg123
-PAK_VER = 1
+PROG = libmpg123
+PAK_VER = 2
DEPS =
diff --git a/lfs/ncurses b/lfs/ncurses
index db46ddec0f..f41b2cad44 100644
--- a/lfs/ncurses
+++ b/lfs/ncurses
@@ -51,8 +51,8 @@ EXTRA_CONFIG += \
--without-normal \
--enable-pc-files \
--disable-nls \
- --mandir=/usr/share/man \
- --with-pkg-config-libdir=/usr/lib/pkgconfig
+ --mandir=$(PREFIX)/share/man \
+ --with-pkg-config-libdir=$(PREFIX)/lib/pkgconfig
###############################################################################
# Top-level Rules
@@ -110,7 +110,7 @@ endif
done
# old applications that look for -lcurses at build time are still buildable
- rm -vf /usr/lib/libcursesw.so
+ rm -vf $(PREFIX)/lib/libcursesw.so
echo "INPUT(-lncursesw)" > $(PREFIX)/lib/libcursesw.so
ln -sfv libncurses.so $(PREFIX)/lib/libcurses.so
diff --git a/lfs/postfix b/lfs/postfix
index 7a5ff52e44..846a8d6cba 100644
--- a/lfs/postfix
+++ b/lfs/postfix
@@ -26,7 +26,7 @@ include Config
SUMMARY = A fast, secure, and flexible mailer
-VER = 3.11.7
+VER = 3.11.8
THISAPP = postfix-$(VER)
DL_FILE = $(THISAPP).tar.gz
@@ -34,7 +34,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = postfix
-PAK_VER = 57
+PAK_VER = 58
DEPS =
@@ -72,7 +72,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = 4f3d9f92320336a80770593800d026aa41dc628dfd9db5e5d3b6fad667fe700bdd4bddcc16fce17f47fdba9cd58419946dc5f14b0e9d7dc5569c45b1226ffae4
+$(DL_FILE)_BLAKE2 = a0fdead3538c9026a174f82da4d69aa4688328d35b3eb86cb9677abf527b44cb9489ae583d68bb5deb6fe652c4200a991bbd1fb721875d7f0ce208b5dd039545
install : $(TARGET)
diff --git a/lfs/screen b/lfs/screen
index 2fa597104a..5706033e10 100644
--- a/lfs/screen
+++ b/lfs/screen
@@ -24,7 +24,7 @@
include Config
-VER = 5.0.1
+VER = 5.0.3
THISAPP = screen-$(VER)
DL_FILE = $(THISAPP).tar.gz
@@ -40,7 +40,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = ce8478718903ea4f9f7d5de2c77008cee304fef1065f3d564844844cb3ba7acb88bfe2cda051cecee0f034b19ea4e52a0fcc1549f9339eac33e7748ab59cd0f5
+$(DL_FILE)_BLAKE2 = 38327f12cc2b786c8a37cd7d3ae210deb79c96ebea450810a127a7830d31b54cf0f8c35d5a9ac50c58f076aa60e9fcfc0aa618e5a4a92792aed45a37613cd22d
install : $(TARGET)
diff --git a/lfs/zstd b/lfs/zstd
index d28f85b263..640660f8c5 100644
--- a/lfs/zstd
+++ b/lfs/zstd
@@ -1,7 +1,7 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007-2025 IPFire Team <info@ipfire.org> #
+# Copyright (C) 2007-2026 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
@@ -24,7 +24,7 @@
include Config
-VER = 1.5.7
+VER = 1.6.0
THISAPP = zstd-$(VER)
DL_FILE = $(THISAPP).tar.gz
@@ -49,7 +49,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = ef6bcf13bbb79edce2de21ef4860b01dcb4d2dd47ebd03657d5331c3bb1a207ef128e99ed907a32e787dca7bb51df225ebd8abb2097d03d02c003ca713e1e271
+$(DL_FILE)_BLAKE2 = cbb9303f8953add6e3d0ee783d669ba3ca642659d6d37792b1a066ed4a45a8518ceb7418f85042d6ba9a64465ce633d3cfe6baad84850307a6ea60c9bce0a78e
install : $(TARGET)
diff --git a/make.sh b/make.sh
index 86d8dd212b..0012871604 100755
--- a/make.sh
+++ b/make.sh
@@ -288,26 +288,12 @@ print_build_summary() {
print_status DONE
}
-cleanrd() {
- # Remove the cgroup
+# Removes the cgroup that we have created to measure what the packages are using
+cleanup_cgroup() {
if [ -n "${CGROUP}" ]; then
rmdir "${CGROUP}" 2>/dev/null
CGROUP=""
fi
-
- if mountpoint "${BUILD_DIR}/usr/src" > /dev/null ; then
- umount "${BUILD_DIR}/usr/src/cache"
- umount "${BUILD_DIR}/usr/src/ccache"
- umount "${BUILD_DIR}/usr/src/config"
- umount "${BUILD_DIR}/usr/src/doc"
- umount "${BUILD_DIR}/usr/src/html"
- umount "${BUILD_DIR}/usr/src/images"
- umount "${BUILD_DIR}/usr/src/log"
- umount "${BUILD_DIR}/usr/src/lfs"
- umount "${BUILD_DIR}/usr/src/po"
- umount "${BUILD_DIR}/usr/src/src"
- umount "${BUILD_DIR}/usr/src"
- fi
}
# Called when the build is being interrupted (e.g. by pressing Ctrl+C)
@@ -322,11 +308,7 @@ interrupted() {
# first process in a PID namespace does not receive any signals it
# does not handle. So there is no way to ask nicely, but if we kill
# unshare, the kernel will kill everything in the namespace for us.
- if [ -n "${IN_NAMESPACE}" ]; then
- kill -KILL "${pid}" 2>/dev/null
- else
- kill -TERM "${pid}" 2>/dev/null
- fi
+ kill -KILL "${pid}" 2>/dev/null
# Wait until it is gone
wait "${pid}" 2>/dev/null
@@ -360,8 +342,6 @@ exiterror() {
print_status FAIL
done
- cleanrd
-
exit 1
}
@@ -380,9 +360,26 @@ prepareenv() {
# Trap on emergency exit
trap "interrupted" SIGINT SIGTERM SIGQUIT
- # Checking if running as root user
+ # Remove the cgroup when we are leaving
+ trap "cleanup_cgroup" EXIT
+
+ # We do not need root privileges, but we need a range of subordinate
+ # user and group IDs so that we can map all users of the build
+ # environment into a user namespace.
if [ "${UID}" -ne 0 ]; then
- exiterror "root privileges required for building"
+ local user="$(id -un)"
+
+ if ! grep -q "^${user}:" /etc/subuid 2>/dev/null || \
+ ! grep -q "^${user}:" /etc/subgid 2>/dev/null; then
+ exiterror "${user} needs entries in /etc/subuid and /etc/subgid"
+ fi
+
+ if ! command -v newuidmap &>/dev/null; then
+ exiterror "newuidmap is required (usually in the uidmap package)"
+ fi
+ else
+ print_line "Building as root is not necessary and not recommended"
+ print_status WARN
fi
local required_space
@@ -434,126 +431,13 @@ prepareenv() {
umask 022
# Make some extra directories
+ #
+ # All other mountpoints are created when we are setting up the namespace.
mkdir -p "${CCACHE_DIR}"
mkdir -p "${IMAGES_DIR}"
mkdir -p "${PACKAGES_DIR}"
mkdir -p "${BUILD_DIR}/${TOOLS_DIR}"
- mkdir -p "${BUILD_DIR}/cache"
- mkdir -p "${BUILD_DIR}/dev"
- mkdir -p "${BUILD_DIR}/etc"
- mkdir -p "${BUILD_DIR}/proc"
- mkdir -p "${BUILD_DIR}/root"
- mkdir -p "${BUILD_DIR}/sys"
- mkdir -p "${BUILD_DIR}/tmp"
- mkdir -p "${BUILD_DIR}/usr/src"
-
- # Make BUILD_DIR a mountpoint
- mount -o bind "${BUILD_DIR}" "${BUILD_DIR}"
-
- # Create a new, minimal /dev
- #
- # We are not using devtmpfs here, because there is only one instance of it
- # which would give the build environment access to all devices of the host.
- # Instead we only create what is required, so that nothing will be able to
- # find any block devices, set up a loop device, etc.
- mount build_dev "${BUILD_DIR}/dev" \
- -t tmpfs -o "nosuid,noexec,mode=0755,size=4m,nr_inodes=64k"
-
- local name type major minor mode
- while read -r name type major minor mode; do
- mknod --mode="${mode}" "${BUILD_DIR}/dev/${name}" "${type}" "${major}" "${minor}"
- done <<-EOF
- console c 5 1 0600
- full c 1 7 0666
- null c 1 3 0666
- random c 1 8 0666
- tty c 5 0 0666
- urandom c 1 9 0666
- zero c 1 5 0666
- EOF
-
- # Create the usual symlinks
- ln -s "/proc/self/fd" "${BUILD_DIR}/dev/fd"
- ln -s "/proc/self/fd/0" "${BUILD_DIR}/dev/stdin"
- ln -s "/proc/self/fd/1" "${BUILD_DIR}/dev/stdout"
- ln -s "/proc/self/fd/2" "${BUILD_DIR}/dev/stderr"
- ln -s "pts/ptmx" "${BUILD_DIR}/dev/ptmx"
-
- # Create mountpoints
- mkdir -p "${BUILD_DIR}/dev/pts" "${BUILD_DIR}/dev/shm"
-
- # Mount a new /dev/pts
- mount build_dev_pts "${BUILD_DIR}/dev/pts" \
- -t devpts -o "nosuid,noexec,newinstance,ptmxmode=0666,mode=620"
-
- # Mount a new /dev/shm
- mount build_dev_shm "${BUILD_DIR}/dev/shm" \
- -t tmpfs -o "nosuid,nodev,strictatime,mode=1777,size=1024m"
-
- # Mount a new /tmp
- mount build_tmp "${BUILD_DIR}/tmp" \
- -t tmpfs -o "nosuid,nodev,strictatime,size=4G,nr_inodes=1M,mode=1777"
-
- # Create an empty /proc directory and make it a mountpoint
mkdir -p "${BUILD_DIR}/proc"
- mount --bind "${BUILD_DIR}/proc" "${BUILD_DIR}/proc"
-
- # Optionally make /usr/src a ramdisk for less disk I/O
- if [ "${ENABLE_RAMDISK}" = "on" ]; then
- mount build_usr_src "${BUILD_DIR}/usr/src" \
- -t tmpfs -o size=8G,nr_inodes=1M,mode=1777
- fi
-
- # Create directories in /usr/src
- mkdir -p "${BUILD_DIR}/usr/src/cache"
- mkdir -p "${BUILD_DIR}/usr/src/ccache"
- mkdir -p "${BUILD_DIR}/usr/src/config"
- mkdir -p "${BUILD_DIR}/usr/src/doc"
- mkdir -p "${BUILD_DIR}/usr/src/html"
- mkdir -p "${BUILD_DIR}/usr/src/images"
- mkdir -p "${BUILD_DIR}/usr/src/lfs"
- mkdir -p "${BUILD_DIR}/usr/src/log"
- mkdir -p "${BUILD_DIR}/usr/src/po"
- mkdir -p "${BUILD_DIR}/usr/src/src"
-
- # Make all sources and proc available under lfs build
- mount --bind -o ro /sys "${BUILD_DIR}/sys"
- mount --bind -o ro "${BASEDIR}/cache" "${BUILD_DIR}/usr/src/cache"
- mount --bind -o ro "${BASEDIR}/config" "${BUILD_DIR}/usr/src/config"
- mount --bind -o ro "${BASEDIR}/doc" "${BUILD_DIR}/usr/src/doc"
- mount --bind -o ro "${BASEDIR}/html" "${BUILD_DIR}/usr/src/html"
- mount --bind -o ro "${BASEDIR}/lfs" "${BUILD_DIR}/usr/src/lfs"
- mount --bind -o ro "${BASEDIR}/po" "${BUILD_DIR}/usr/src/po"
- mount --bind -o ro "${BASEDIR}/src" "${BUILD_DIR}/usr/src/src"
-
- # Mount the log directory
- mount --bind "${LOG_DIR}" "${BUILD_DIR}/usr/src/log"
-
- # Mount the ccache
- mount --bind "${CCACHE_DIR}" "${BUILD_DIR}/usr/src/ccache"
-
- # Mount the images directory
- mount --bind "${IMAGES_DIR}" "${BUILD_DIR}/usr/src/images"
-
- # Bind-mount files requires for networking if requested
- if [ "${network}" = "true" ]; then
- local file
-
- for file in /etc/resolv.conf /etc/hosts; do
- # Skip if the source files does not exist
- if [ ! -e "${file}" ]; then
- continue
- fi
-
- # Create the destination if it does not exist
- if [ ! -e "${BUILD_DIR}/${file}" ]; then
- touch "${BUILD_DIR}/${file}"
- fi
-
- # Mount the file read-only
- mount --bind -o ro "${file}" "${BUILD_DIR}/${file}"
- done
- fi
# Configure the ccache
export CCACHE_TEMPDIR="/tmp"
@@ -563,7 +447,7 @@ prepareenv() {
qemu_install_helper
# Remove pre-install list of installed files in case user erase some files before rebuild
- rm -f "${BUILD_DIR}/usr/src/lsalr"
+ rm -f "${LOG_DIR}/lsalr"
# Prepare string for /etc/system-release.
local system_release="${NAME} ${VERSION} (${BUILD_ARCH})"
@@ -721,6 +605,46 @@ log_timing() {
"${extra}" >> "${LOGFILE}"
}
+# The namespaces that we run every command in
+setup_namespaces() {
+ UNSHARE_ARGS=(
+ # Create a new cgroup namespace
+ "--cgroup"
+
+ # Create a new mount namespace
+ "--mount"
+ "--propagation=slave"
+
+ # Create a new PID namespace and fork
+ "--pid"
+ "--fork"
+
+ # Create a new UTS namespace
+ "--uts"
+
+ # Create a new IPC namespace
+ "--ipc"
+
+ # If unshare is asked to terminate, terminate all child processes
+ "--kill-child"
+ )
+
+ # Unless we are root, we run in a user namespace which maps us to root
+ # and the range of our subordinate IDs to everything else
+ if [ "${UID}" -ne 0 ]; then
+ UNSHARE_ARGS+=(
+ "--user"
+ "--map-root-user"
+ "--map-auto"
+ )
+ fi
+
+ # Optionally set up a new time namespace
+ if [ "${HAS_TIME_NAMESPACE}" = "true" ]; then
+ UNSHARE_ARGS+=( "--time" )
+ fi
+}
+
execute() {
local chroot="false"
local command=()
@@ -797,46 +721,26 @@ execute() {
[TOOLS_DIR]="${TOOLS_DIR}"
)
- local unshare=()
-
- # Configure a new namespace
- if [ -n "${IN_NAMESPACE}" ]; then
- unshare+=(
- # Create a new cgroup namespace
- "--cgroup"
-
- # Create a new mount namespace
- "--mount"
- "--propagation=slave"
-
- # Create a new PID namespace and fork
- "--pid"
- "--fork"
-
- # Create a new UTS namespace
- "--uts"
-
- # Create a new IPC namespace
- "--ipc"
-
- # Mount /proc so that the build environment does not see
- # any foreign processes.
- "--mount-proc=${BUILD_DIR}/proc"
-
- # If unshare is asked to terminate, terminate all child processes
- "--kill-child"
- )
+ # Arguments for the setup script (tools/execute.sh)
+ local setup=(
+ "--basedir=${BASEDIR}"
+ "--build-dir=${BUILD_DIR}"
+ "--tools-dir=${TOOLS_DIR}"
+ "--ccache-dir=${CCACHE_DIR}"
+ "--images-dir=${IMAGES_DIR}"
+ "--log-dir=${LOG_DIR}"
+ )
- # Optionally set up a new time namespace
- if [ "${HAS_TIME_NAMESPACE}" = "true" ]; then
- unshare+=( "--time" )
- fi
+ # Optionally put /usr/src into memory
+ if [ "${ENABLE_RAMDISK}" = "on" ]; then
+ setup+=( "--ramdisk" )
fi
while [ $# -gt 0 ]; do
case "${1}" in
--chroot)
chroot="true"
+ setup+=( "--chroot" )
# Update some variables
environ+=(
@@ -870,6 +774,10 @@ execute() {
;;
# Make the toolchain available in PATH
+ --config-rw)
+ setup+=( "--config-rw" )
+ ;;
+
--enable-toolchain)
environ+=(
[PATH]="${environ[PATH]}:${TOOLS_DIR}/sbin:${TOOLS_DIR}/bin"
@@ -887,6 +795,7 @@ execute() {
--network)
network="true"
+ setup+=( "--network" )
# Export the proxy configuration
environ+=(
@@ -960,39 +869,27 @@ execute() {
fi
# Network
+ local unshare=( "${UNSHARE_ARGS[@]}" )
if [ "${network}" = "false" ]; then
unshare+=( "--net" )
fi
- local execute=()
- local env
-
- # Create new namespaces
- if [ "${#unshare[@]}" -gt 0 ]; then
- execute+=(
- "unshare" "${unshare[@]}"
- )
+ # QEMU
+ if [ -n "${QEMU_TARGET_HELPER}" ]; then
+ setup+=( "--qemu-helper=${QEMU_TARGET_HELPER}" )
fi
- # Call a setup script in the new namespaces to perform
- # further set up, but before we change root.
- execute+=( "${BASEDIR}/tools/execute.sh" )
+ # Create new namespaces
+ local execute=(
+ "unshare" "${unshare[@]}"
+ )
- if [ -n "${IN_NAMESPACE}" ]; then
- # Don't allow the build to change any settings of the host
- execute+=( "--proc=${BUILD_DIR}/proc" )
- fi
+ # Call a setup script in the new namespaces. It creates the filesystem of
+ # the build environment and changes into it (for chroot), or makes the
+ # toolchain available, and then runs the command.
+ execute+=( "${BASEDIR}/tools/execute.sh" "${setup[@]}" )
- # Run in chroot?
- if [ "${chroot}" = "true" ]; then
- # If we have our own mount namespace, we change the root in a way
- # that removes the filesystem of the host from it
- if [ -n "${IN_NAMESPACE}" ]; then
- execute+=( "--root=${BUILD_DIR}" )
- else
- execute+=( "chroot" "${BUILD_DIR}" )
- fi
- fi
+ local env
# Set PATH so that we can find the env binary
local PATH="${environ[PATH]}:${PATH}"
@@ -1003,9 +900,6 @@ execute() {
# Clear the previous environment
"--ignore-environment"
-
- # Change to the home directory
- --chdir="${environ[HOME]}"
)
# Export the environment
@@ -1114,7 +1008,10 @@ make_pkg() {
done
# Execute the make command in the environment
- execute "${args[@]}" make --directory="${basedir}/lfs" --file="${pkg}" "$@"
+ #
+ # Upstream tarballs contain arbitrary owners that we cannot map, so we
+ # do not try to restore them when extracting sources.
+ execute "${args[@]}" TAR_OPTIONS="--no-same-owner" make --directory="${basedir}/lfs" --file="${pkg}" "$@"
}
lfsmake1() {
@@ -1223,13 +1120,8 @@ configure() {
# Prepare the environment
prepareenv
- # Remount the configuration as writable
- if ! mount -o remount,rw "${BUILD_DIR}/usr/src/config"; then
- exiterror "Failed to remount /usr/src/config"
- fi
-
- # Run configure on the package
- if ! make_pkg --chroot --interactive "${pkg}" configure CONFIGURE_ARGS="$*"; then
+ # Run configure on the package (with a writable configuration)
+ if ! make_pkg --chroot --config-rw --interactive "${pkg}" configure CONFIGURE_ARGS="$*"; then
print_status FAIL
exiterror "Configure ${pkg}"
@@ -1281,18 +1173,7 @@ qemu_install_helper() {
# Must be static.
file_is_static "${file}" || continue
- local dirname="${BUILD_DIR}$(dirname "${file}")"
- mkdir -p "${dirname}"
-
- # Create the mountpoint
- touch "${BUILD_DIR}${file}"
-
- # Mount the helper
- if ! mount --bind -o ro "${file}" "${BUILD_DIR}${file}"; then
- exiterror "Could not mount ${file}"
- fi
-
- # Set
+ # The helper is mounted into the build environment by the setup script
QEMU_TARGET_HELPER="${file}"
return 0
@@ -1528,8 +1409,8 @@ extract_toolchain() {
"--transform" "s@^log/@${log_dir}/@"
)
- # Extract the toolchain
- tar "${args[@]}" || return $?
+ # Extract the toolchain in a user namespace so that ownership is preserved
+ execute tar "${args[@]}" || return $?
}
# Compresses the toolchain
@@ -1573,7 +1454,7 @@ compress_toolchain() {
)
# Create the archive
- if ! tar "${args[@]}"; then
+ if ! execute tar "${args[@]}"; then
# Cleanup
rm -rf "${tmp}"
@@ -1615,19 +1496,6 @@ build_toolchain() {
exiterror "Could not find GCC. You will need a working build enviroment in order to build the toolchain."
fi
- # Check ${TOOLS_DIR} symlink
- if [ -h "${TOOLS_DIR}" ]; then
- rm -f "${TOOLS_DIR}"
- fi
-
- if [ ! -e "${TOOLS_DIR}" ]; then
- ln -s "${BUILD_DIR}${TOOLS_DIR}" "${TOOLS_DIR}"
- fi
-
- if [ ! -h "${TOOLS_DIR}" ]; then
- exiterror "Could not create ${TOOLS_DIR} symbolic link"
- fi
-
local LOGFILE="${LOG_DIR}/_build.toolchain.log"
lfsmake1 stage1
@@ -2465,25 +2333,6 @@ build_packages() {
done
}
-# This function will re-execute a command in a new namespace
-exec_in_namespace() {
- # Nothing to do if we are already in a new namespace
- if [ -n "${IN_NAMESPACE}" ]; then
- return 0
- fi
-
- # Forward any configuration
- local args=(
- "--target=${BUILD_ARCH}"
- )
-
- IN_NAMESPACE=1 \
- exec unshare \
- --mount \
- --propagation=private \
- "${0}" "${args[@]}" "$@"
-}
-
check_for_missing_rootfiles() {
print_headline "Checking for missing rootfiles..."
@@ -2886,14 +2735,14 @@ mkdir -p "${CACHE_DIR}" "${LOG_DIR}"
# Toolchain Archive
readonly TOOLCHAIN="${SNAME}-${VERSION}-toolchain-${TOOLCHAINVER}-${BUILD_ARCH}.tar.zst"
+# Set up the namespaces that every command is run in
+setup_namespaces
+
# See what we're supposed to do
case "$1" in
build)
START_TIME="${SECONDS}"
- # Launch in a new namespace
- exec_in_namespace "$@"
-
# Check if we can measure what the packages are using
if ! setup_cgroups; then
print_line "cgroups v2 are not available, resource usage will not be logged"
@@ -2941,7 +2790,6 @@ build)
print_build_summary $(( SECONDS - START_TIME ))
- cleanrd
;;
tail)
@@ -2952,14 +2800,10 @@ tail)
"${LOG_DIR}/_build.packages.log" 2>/dev/null
;;
shell)
- # Launch in a new namespace
- exec_in_namespace "$@"
-
# enter a shell inside LFS chroot
# may be used to changed kernel settings
prepareenv --network
entershell
- cleanrd
;;
check)
# Check for rootfile consistency
@@ -2973,14 +2817,14 @@ clean)
print_line "Cleaning build directory..."
# Cleanup build files
- rm -rf \
- "${BUILD_DIR}" \
- "${IMAGES_DIR}" \
- "${LOG_DIR}"
-
- # Remove the /tools symlink
- if [ -h "${TOOLS_DIR}" ]; then
- rm -f "${TOOLS_DIR}"
+ #
+ # These might contain files that belong to our subordinate IDs which
+ # we can only remove from within a user namespace.
+ if [ "${UID}" -ne 0 ]; then
+ unshare --user --map-root-user --map-auto -- \
+ rm -rf "${BUILD_DIR}" "${IMAGES_DIR}" "${LOG_DIR}"
+ else
+ rm -rf "${BUILD_DIR}" "${IMAGES_DIR}" "${LOG_DIR}"
fi
print_status DONE
@@ -2993,9 +2837,6 @@ downloadsrc)
download_sources
;;
toolchain)
- # Launch in a new namespace
- exec_in_namespace "$@"
-
# Prepare the environment
prepareenv
@@ -3011,7 +2852,6 @@ toolchain)
if ! compress_toolchain "${TOOLCHAIN}"; then
exiterror "Could not compress toolchain"
fi
- cleanrd
;;
gettoolchain)
@@ -3066,8 +2906,6 @@ find-dependencies)
exec "${BASEDIR}/tools/find-dependencies" "${BUILD_DIR}" "$@"
;;
check-web-ui)
- # Launch in a new namespace
- exec_in_namespace "$@"
shift
# Render all pages of the web user interface in the build environment
@@ -3075,12 +2913,9 @@ check-web-ui)
prepareenv
# The tools are not available in the build environment
- install -m 755 "${BASEDIR}/tools/check-web-ui" "${BUILD_DIR}/tmp/check-web-ui"
+ install -m 755 "${BASEDIR}/tools/check-web-ui" "${BUILD_DIR}/root/check-web-ui"
- if execute --chroot python3 /tmp/check-web-ui --local "$@"; then
- cleanrd
- else
- cleanrd
+ if ! execute --chroot python3 /root/check-web-ui --local "$@"; then
exiterror "The web user interface has issues"
fi
;;
@@ -3095,9 +2930,6 @@ check-manualpages)
fi
;;
configure)
- # Launch in a new namespace
- exec_in_namespace "$@"
-
# Run configure
configure "${@:2}" || exit $?
;;
diff --git a/tools/execute.sh b/tools/execute.sh
index 372bb3333b..dc9104bad7 100755
--- a/tools/execute.sh
+++ b/tools/execute.sh
@@ -21,6 +21,11 @@
#
# This is a helper script that is called after we have created the new
# namespaces to perform further setup. This will be executed on the host.
+#
+# We are running as root in a user namespace (or as real root) and have just
+# been given a private mount namespace. That means that nothing we mount here
+# will be visible outside, and that it will all vanish when the last process
+# in the namespace terminates. There is nothing to clean up.
set -euo pipefail
@@ -33,6 +38,39 @@ PROC_READONLY=(
"sysrq-trigger"
)
+# Devices that we make available in /dev
+#
+# We cannot use mknod in a user namespace, so we bind-mount the devices of the
+# host. We still only expose what is required, so that the build environment
+# is not able to find any block devices, etc.
+DEVICES=(
+ "console"
+ "full"
+ "null"
+ "random"
+ "tty"
+ "urandom"
+ "zero"
+)
+
+# Directories of the host that are made available in /usr/src (read-only)
+SRC_DIRS=(
+ "cache"
+ "config"
+ "doc"
+ "html"
+ "lfs"
+ "po"
+ "src"
+)
+
+# Directories of the host that are made available in /usr/src (writable)
+SRC_DIRS_RW=(
+ "ccache"
+ "images"
+ "log"
+)
+
# Makes all sensitive parts of the given procfs read-only
protect_proc() {
local proc="${1}"
@@ -46,54 +84,264 @@ protect_proc() {
continue
fi
- mount --bind "${path}" "${path}"
- mount -o remount,bind,ro "${path}"
+ mount --bind -o ro "${path}" "${path}"
done
}
-# Changes into the new root and runs the given command there
-enter_root() {
+# Makes the given directory the new root directory and removes the previous
+# root directory from our mount namespace, so that there is no way back.
+#
+# The previous root is stacked on top of the new root, which allows us to
+# unmount it with the tools of the host, even if the new root does not have any.
+# The directory must be a mountpoint.
+change_root() {
+ cd "${1}"
+ pivot_root . .
+ umount --lazy .
+ cd /
+}
+
+# Makes the sources, logs, ccache and images available in /usr/src of the given
+# root directory.
+mount_sources() {
local root="${1}"
- shift
-
- # The place where the previous root is going to show up. This has to be
- # inside the new root and is on the tmpfs that is mounted to /tmp.
- local oldroot="tmp/.oldroot"
-
- # Unlike chroot, pivot_root allows us to remove the filesystem of the host
- # from our mount namespace, so that there is no way back. To get rid of
- # it, we need to be able to call umount after we have changed into the
- # new root, which is not available very early in the build.
- if chroot "${root}" umount --version &>/dev/null && \
- mkdir -p "${root}/${oldroot}" && \
- cd "${root}" && pivot_root . "${oldroot}" 2>/dev/null; then
- cd /
-
- # Detach the previous root. This must not fail, because it would
- # otherwise be accessible in /tmp.
- umount --lazy "/${oldroot}"
- rmdir "/${oldroot}" 2>/dev/null || :
-
- exec "$@"
+
+ local dir
+
+ # Optionally make /usr/src a ramdisk, so that the sources do not have to
+ # be extracted to disk. Everything that needs to be kept is bind-mounted
+ # below, and the rest is gone when the command terminates.
+ if [ "${RAMDISK}" = "true" ]; then
+ mkdir -p "${root}/usr/src"
+ mount build_usr_src "${root}/usr/src" \
+ -t tmpfs -o "size=8G,nr_inodes=1M,mode=1777"
+ fi
+
+ # Create all mountpoints
+ local mountpoints=()
+ for dir in "${SRC_DIRS[@]}" "${SRC_DIRS_RW[@]}"; do
+ mountpoints+=( "${root}/usr/src/${dir}" )
+ done
+ mkdir -p "${mountpoints[@]}"
+
+ # Read-only
+ for dir in "${SRC_DIRS[@]}"; do
+ mount --bind -o ro "${BASEDIR}/${dir}" "${root}/usr/src/${dir}"
+ done
+
+ # The configuration may be writable
+ if [ "${CONFIG_RW}" = "true" ]; then
+ mount -o remount,bind,rw "${root}/usr/src/config"
+ fi
+
+ # Writable
+ mount --bind "${CCACHE_DIR}" "${root}/usr/src/ccache"
+ mount --bind "${IMAGES_DIR}" "${root}/usr/src/images"
+ mount --bind "${LOG_DIR}" "${root}/usr/src/log"
+}
+
+# Sets up the filesystem layout of the build environment in the build directory
+setup_root() {
+ local root="${BUILD_DIR}"
+
+ # Create all mountpoints
+ mkdir -p "${root}"/{dev,etc,proc,root,sys,tmp}
+
+ # pivot_root requires that the new root is a mountpoint. We use a recursive
+ # bind mount, because a non-recursive one is refused if there are any
+ # mounts below the directory that we have inherited from the host.
+ mount --rbind "${root}" "${root}"
+
+ # Mount a new /proc so that the build environment does not see any
+ # foreign processes
+ mount build_proc "${root}/proc" -t proc -o "nosuid,nodev,noexec"
+
+ # Create a new, minimal /dev
+ mount build_dev "${root}/dev" \
+ -t tmpfs -o "nosuid,mode=0755,size=4m,nr_inodes=64k"
+
+ local name
+ for name in "${DEVICES[@]}"; do
+ # Skip any devices that the host does not give us
+ if [ ! -c "/dev/${name}" ]; then
+ continue
+ fi
+
+ : > "${root}/dev/${name}"
+ mount --bind "/dev/${name}" "${root}/dev/${name}"
+ done
+
+ # Create the usual symlinks
+ ln -s "/proc/self/fd" "${root}/dev/fd"
+ ln -s "/proc/self/fd/0" "${root}/dev/stdin"
+ ln -s "/proc/self/fd/1" "${root}/dev/stdout"
+ ln -s "/proc/self/fd/2" "${root}/dev/stderr"
+ ln -s "pts/ptmx" "${root}/dev/ptmx"
+
+ # Create mountpoints
+ mkdir -p "${root}"/dev/{pts,shm}
+
+ # Mount a new /dev/pts
+ mount build_dev_pts "${root}/dev/pts" \
+ -t devpts -o "nosuid,noexec,newinstance,ptmxmode=0666,mode=620"
+
+ # Mount a new /dev/shm
+ mount build_dev_shm "${root}/dev/shm" \
+ -t tmpfs -o "nosuid,nodev,strictatime,mode=1777,size=1024m"
+
+ # Mount a new /tmp
+ mount build_tmp "${root}/tmp" \
+ -t tmpfs -o "nosuid,nodev,strictatime,size=4G,nr_inodes=1M,mode=1777"
+
+ # Make /sys available (read-only)
+ mount --rbind -o ro /sys "${root}/sys"
+ mount -o remount,rbind,ro "${root}/sys" 2>/dev/null || :
+
+ # Make all sources available
+ mount_sources "${root}"
+
+ # Bind-mount files required for networking
+ if [ "${NETWORK}" = "true" ]; then
+ local file
+ for file in /etc/resolv.conf /etc/hosts; do
+ # Skip if the source file does not exist
+ if [ ! -e "${file}" ]; then
+ continue
+ fi
+
+ # Create the destination if it does not exist
+ if [ ! -e "${root}${file}" ]; then
+ : > "${root}${file}"
+ fi
+
+ mount --bind -o ro "${file}" "${root}${file}"
+ done
fi
- # Fall back to chroot
- exec chroot "${root}" "$@"
+ # Make the QEMU helper available
+ if [ -n "${QEMU_HELPER}" ]; then
+ mkdir -p "${root}$(dirname "${QEMU_HELPER}")"
+ : > "${root}${QEMU_HELPER}"
+ mount --bind -o ro "${QEMU_HELPER}" "${root}${QEMU_HELPER}"
+ fi
+
+ # Protect /proc
+ protect_proc "${root}/proc"
+
+ change_root "${root}"
+}
+
+# Makes the toolchain available at its final path in the root directory of the
+# host (where we cannot create anything, unless we are root), and makes the
+# sources available in the build directory.
+#
+# While we are building the toolchain, everything is linked against the final
+# location of the toolchain, so it has to be reachable under that path. To not
+# have to touch the host, we build a new root directory in a tmpfs that looks
+# exactly like the one of the host, plus the path to the toolchain.
+setup_tools() {
+ local source="${BUILD_DIR}${TOOLS_DIR}"
+
+ # Nothing to do if there is no toolchain
+ if [ ! -d "${source}" ]; then
+ return 0
+ fi
+
+ local new="$(mktemp --directory)"
+ local entry name
+
+ mount build_root "${new}" -t tmpfs -o "mode=0755,size=1m,nr_inodes=1k"
+
+ for entry in /*; do
+ name="${entry#/}"
+
+ # Skip anything that we replace
+ if [ "${entry}" = "${TOOLS_DIR}" ]; then
+ continue
+ fi
+
+ # Copy symlinks
+ if [ -h "${entry}" ]; then
+ ln -s "$(readlink "${entry}")" "${new}/${name}"
+
+ # Bind-mount directories recursively, for the same reason as above
+ elif [ -d "${entry}" ]; then
+ mkdir "${new}/${name}"
+ mount --rbind "${entry}" "${new}/${name}"
+ fi
+ done
+
+ # Mount the toolchain
+ mkdir -p "${new}${TOOLS_DIR}"
+ mount --bind "${source}" "${new}${TOOLS_DIR}"
+
+ # The build directory is also used from the outside while building the
+ # toolchain, so the sources have to be available there, too
+ mount_sources "${new}${BUILD_DIR}"
+
+ change_root "${new}"
+
+ # The directory that we have used for the new root is most likely below
+ # /tmp, which we have just made available in the new root, including the
+ # mount of the new root itself. Get rid of that and remove the directory.
+ umount --lazy "${new}" 2>/dev/null || :
+ rmdir "${new}" 2>/dev/null || :
}
main() {
- local proc=
- local root=
+ local chroot="false"
+ local chdir=
+
+ # Parameters for the setup
+ BASEDIR=
+ BUILD_DIR=
+ CCACHE_DIR=
+ CONFIG_RW="false"
+ IMAGES_DIR=
+ LOG_DIR=
+ NETWORK="false"
+ QEMU_HELPER=
+ RAMDISK="false"
+ TOOLS_DIR=
# Parse the command line
while [ $# -gt 0 ]; do
case "${1}" in
- --proc=*)
- proc="${1#*=}"
+ --basedir=*)
+ BASEDIR="${1#*=}"
;;
-
- --root=*)
- root="${1#*=}"
+ --build-dir=*)
+ BUILD_DIR="${1#*=}"
+ ;;
+ --ccache-dir=*)
+ CCACHE_DIR="${1#*=}"
+ ;;
+ --chdir=*)
+ chdir="${1#*=}"
+ ;;
+ --chroot)
+ chroot="true"
+ ;;
+ --config-rw)
+ CONFIG_RW="true"
+ ;;
+ --images-dir=*)
+ IMAGES_DIR="${1#*=}"
+ ;;
+ --log-dir=*)
+ LOG_DIR="${1#*=}"
+ ;;
+ --network)
+ NETWORK="true"
+ ;;
+ --qemu-helper=*)
+ QEMU_HELPER="${1#*=}"
+ ;;
+ --ramdisk)
+ RAMDISK="true"
+ ;;
+ --tools-dir=*)
+ TOOLS_DIR="${1#*=}"
;;
# The rest is the command
@@ -105,21 +353,30 @@ main() {
done
# Bring up the loopback interface
- ip link set lo up &>/dev/null
-
- # Protect /proc
- if [ -n "${proc}" ]; then
- protect_proc "${proc}"
- fi
+ ip link set lo up &>/dev/null || :
# We must not ignore any signals here, because that would be inherited by
# everything we launch and nobody would be able to interrupt anything.
- # Change into the new root and run the command there
- if [ -n "${root}" ]; then
- enter_root "${root}" "$@"
+ # Either change into the build environment, or stay on the host and make
+ # the toolchain available
+ if [ "${chroot}" = "true" ]; then
+ setup_root
+
+ # The default working directory is the home directory
+ : "${chdir:=/root}"
+ else
+ # Mount a new /proc so that the build environment does not see any
+ # foreign processes
+ mount build_proc /proc -t proc -o "nosuid,nodev,noexec"
+
+ setup_tools
+
+ : "${chdir:=${BASEDIR}}"
fi
+ cd "${chdir}"
+
# Replace this script with the given command
exec "$@"
}
hooks/post-receive
--
IPFire 2.x development tree
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-28 14:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 14:40 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 4fd907b33cb24d831be24dc0ec645f17a74a4907 Michael Tremer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox