Commit Graph

7894 Commits

Author SHA1 Message Date
Peter Müller
65808f8478 update ca-certificates CA bundle
Update the CA certificates list to what Mozilla NSS ships currently.

The original file can be retrieved from:
https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt

Please note that the certdata.txt file only appears to drop MD5
checksums in favour of SHA256, so there is no need in shipping
ca-certificates with the next Core Update.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-03-05 14:31:02 +00:00
Peter Müller
975a000753 Tor: Update to 0.4.6.10
Full changelog as per https://gitweb.torproject.org/tor.git/plain/ChangeLog?h=tor-0.4.6.10 :

Changes in version 0.4.6.10 - 2022-02-04
  This version contains minor bugfixes but one in particular is that relays
  don't advertise onion service v2 support at the protocol version level.

  o Minor features (fallbackdir):
    - Regenerate fallback directories generated on February 04, 2022.

  o Minor features (geoip data):
    - Update the geoip files to match the IPFire Location Database, as
      retrieved on 2022/02/04.

  o Minor bugfix (logging):
    - Update a log notice dead URL to a working one. Fixes bug 40544;
      bugfix on 0.3.5.1-alpha.

  o Minor bugfix (relay):
    - Remove the HSDir and HSIntro onion service v2 protocol versions so
      relay stop advertising that they support them. Fixes bug 40509;
      bugfix on 0.3.5.17.

  o Minor bugfixes (MetricsPort, Prometheus):
    - Add double quotes to the label values of the onion service
      metrics. Fixes bug 40552; bugfix on 0.4.5.1-alpha.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-03-05 14:30:52 +00:00
Michael Tremer
dcd8a86b03 oci-python-sdk: Depend on python3-certifi
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-23 15:52:16 +00:00
Michael Tremer
7cdd550577 dhcpcd: Allow freely setting MTU
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-23 15:46:45 +00:00
Michael Tremer
9c68992498 dhcpcd: Remove old MTU setting script
This is being replaced by adding the MTU option to any routes that
dhcpcd installs.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-23 15:46:45 +00:00
Peter Müller
8fa66ce750 Revert "gcc: Compile without ZSTD"
https://lists.ipfire.org/pipermail/development/2022-February/012544.html

This reverts commit 0b6ba4a0ca.
2022-02-23 15:36:25 +00:00
Michael Tremer
9b1f666eae Config: Disable parallel builds for Cargo on riscv64
There seems to be some problem where Cargo deadlocks during the build
when running on mutliple cores simulteneously.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-22 19:41:39 +00:00
Michael Tremer
1432531ac8 strip: Do not try to strip QEMU
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-22 19:41:39 +00:00
Michael Tremer
9fa3eed00a boost: Enable build on all architectures
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-22 19:41:39 +00:00
Michael Tremer
a7834bcf10 suricata: Fix check for level one cache line size
riscv64 does not return any value on our machine (maybe because it is
emulated?). "undefined" is however seen as a valid value, which makes
the build fail.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-22 19:41:39 +00:00
Michael Tremer
1bcf3c2a81 liburcu: Update automake to build on riscv64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-22 19:41:39 +00:00
Michael Tremer
5c1a1094ed kernel: Add a basic configuration for riscv64
This kernel configuration is a copy of our kernel configuration for
x86_64 on which I ran "make olddefconfig" which will set any unknown
values to their defaults.

This exists so that we have some kernel (which I did not try to boot) to
complete the build process.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-22 19:41:39 +00:00
Michael Tremer
d1283a8047 rust: Package for riscv64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-22 19:41:39 +00:00
Michael Tremer
5fec125684 rust: Rust's arch for riscv64 is called riscv64gc
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-22 19:41:39 +00:00
Michael Tremer
1c49332fa3 jq: Update autotools
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-22 19:41:39 +00:00
Michael Tremer
0b6ba4a0ca gcc: Compile without ZSTD
GCC can use ZSTD to compress debugging/LTO information in binary
objects. However, on riscv64, compiling zstd requires libatomic which is
not available at this point.

In order to make the build work, we explicitely disable ZSTD in GCC and
build ZSTD after libatomic is available.

Although ZSTD offers great compression, we won't have any disadvantages
through this change since we do not ship any debugging information and
at this point in time to not use LTO.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-22 19:41:39 +00:00
Michael Tremer
d79715dbf9 strip: Make this work when cross-compiling
The host might not have the correct tools to strip a foreign
architecture, therefore we need to use the cross tools.

The crosstools might be built in an architecture that they
cannot strip themselves and since they are not being part of the
packaged toolchain, we will just skip them.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-22 19:41:39 +00:00
Michael Tremer
51d9a86c8e oci-cli: Depend on python3-jmespath
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
439e713e78 python3-terminaltables: New package
Required by oci-cli.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
91f907df8e python3-arrow: New package
Required by oci-cli.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
d92b81e9df python3-click: New package
Required by oci-python-sdk

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
cb0c310e47 python3-pytz: New package
Required by oci-python-sdk

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
03d1f485a2 python3-circuitbreaker: New package
Required by oci-python-sdk

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
c54ce71713 python3-cryptography: Fix build against Rust
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
0762a36be2 python3-pycparser: New package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
5868a78eb5 python3-install: New package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
8debeb1da0 python3-pep517: New package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
396cbbae0b python3-build: New package
This can build packages.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
15293beded python3-flit: New package
Yet another build system for Python

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
a7e60957a3 python3-idna: New package
Adds support for international domain names to python3-requests.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
3992da532d python3-certifi: New package
This package provides the Mozilla CA list for python3-requests.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
1acceaadb2 python3-requests: New package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
2bc596c667 python3-charset-normalizer: New package
Required by python3-requests

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
7c49b08794 python3-cryptography: New package required by oci-python-sdk
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
cdb6d532d7 python3-cffi: New package
Required by python3-cryptography.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
bd5d153561 python3-semantic-version: New package
This is required by setuptools-rust.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
0d9e06c5d7 python3-typing-extensions: New package
This is required by setuptools-rust.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
28dcdc2877 python3-setuptools-rust: New package
This is an extension for the setuptools package to build extensions in
Rust.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
576c02bebd oci-python-sdk: New package
This is a dependency required by oci-cli.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:50 +00:00
Michael Tremer
d6196cdb55 oci-cli: New package
This package includes CLI tools for Oracle Cloud Infrastructure

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 21:13:49 +00:00
Peter Müller
808e3ea192 hostapd: Repair LFS file after merge garbage
Reported-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-21 21:09:48 +00:00
Adolf Belka
251f023f46 expat: Update to version 2.4.6 - Security/CVE fixes
- Update from 2.4.4 to 2.4.6
- Update of rootfile
- Changelog
   Release 2.4.6 Sun February 20 2022
      Bug fixes:
            #566  Fix a regression introduced by the fix for CVE-2022-25313
                    in release 2.4.5 that affects applications that (1)
                    call function XML_SetElementDeclHandler and (2) are
                    parsing XML that contains nested element declarations
                    (e.g. "<!ELEMENT junk ((bar|foo|xyz+), zebra*)>").
   Release 2.4.5 Fri February 18 2022
      Security fixes:
            #562  CVE-2022-25235 -- Passing malformed 2- and 3-byte UTF-8
                    sequences (e.g. from start tag names) to the XML
                    processing application on top of Expat can cause
                    arbitrary damage (e.g. code execution) depending
                    on how invalid UTF-8 is handled inside the XML
                    processor; validation was not their job but Expat's.
                    Exploits with code execution are known to exist.
            #561  CVE-2022-25236 -- Passing (one or more) namespace separator
                    characters in "xmlns[:prefix]" attribute values
                    made Expat send malformed tag names to the XML
                    processor on top of Expat which can cause
                    arbitrary damage (e.g. code execution) depending
                    on such unexpectable cases are handled inside the XML
                    processor; validation was not their job but Expat's.
                    Exploits with code execution are known to exist.
            #558  CVE-2022-25313 -- Fix stack exhaustion in doctype parsing
                    that could be triggered by e.g. a 2 megabytes
                    file with a large number of opening braces.
                    Expected impact is denial of service or potentially
                    arbitrary code execution.
            #560  CVE-2022-25314 -- Fix integer overflow in function copyString;
                    only affects the encoding name parameter at parser creation
                    time which is often hardcoded (rather than user input),
                    takes a value in the gigabytes to trigger, and a 64-bit
                    machine.  Expected impact is denial of service.
            #559  CVE-2022-25315 -- Fix integer overflow in function storeRawNames;
                    needs input in the gigabytes and a 64-bit machine.
                    Expected impact is denial of service or potentially
                    arbitrary code execution.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-21 20:55:00 +00:00
Peter Müller
9073b52c77 stage2: Remove forgotten mv command
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-19 09:46:27 +00:00
Peter Müller
4e6fcc73f1 Fix Bugzilla URL in GCC LFS file
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-19 00:23:21 +00:00
Peter Müller
66c3619872 Early spring clean: Remove trailing whitespaces, and correct licence headers
Bumping across one of our scripts with very long trailing whitespaces, I
thought it might be a good idea to clean these up. Doing so, some
missing or inconsistent licence headers were fixed.

There is no need in shipping all these files en bloc, as their
functionality won't change.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-18 23:54:57 +00:00
Peter Müller
8269c8319c firewall: Make logging of conntrack INVALIDs configureable
In theory, logging of dropped packets classified by conntrack as being
INVALID should never be disabled, since one wants to have a paper trail
of what his/her firewall is doing.

However, conntrack seems to drop a lot of (at the first glance
legitimate) packets, hence bloating the logs, making spotting the
important firewall hits more difficult.

This patch therefore adds the option to disable logging of packets being
dropped by conntrack due to INVALID state.

Please note:
- This patch does not add this category to the firewall hits graph.
- The variables in this patch ("LOGDROPCTINVALID") should make it clear
  that it is about toggling _logging_, not the actual _dropping_. Other
  variables are still in need of being renamed to clarify this, which
  will be done in a dedicated patch.
- Also, the changes made to update.sh need to take place in
  config/rootfiles/core/164/update.sh for "master", since this patch has
  been developed against "next". Kindly cherry-pick the necessary
  changes.

Partially fixes: #12778

Reported-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-18 22:40:55 +00:00
Adolf Belka
adb4174fa4 squid-accounting: Rename to proxy-accounting - bug#12772
- Rename lfs, rootfile and paks directory
- Change name in make.sh
- Tested out in a vm system and worked

Fixes: Bug#12772
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-02-18 22:08:55 +00:00
Matthias Fischer
f51f8b1303 wpa_supplicant: Update to 2.10
For details see:
https://w1.fi/cgit/hostap/plain/wpa_supplicant/ChangeLog

"2022-01-16 - v2.10
	* SAE changes
	  - improved protection against side channel attacks
	    [https://w1.fi/security/2022-1/]
	  - added support for the hash-to-element mechanism (sae_pwe=1 or
	    sae_pwe=2); this is currently disabled by default, but will likely
	    get enabled by default in the future
	  - fixed PMKSA caching with OKC
	  - added support for SAE-PK
	* EAP-pwd changes
	  - improved protection against side channel attacks
	  [https://w1.fi/security/2022-1/]
	* fixed P2P provision discovery processing of a specially constructed
	  invalid frame
	  [https://w1.fi/security/2021-1/]
	* fixed P2P group information processing of a specially constructed
	  invalid frame
	  [https://w1.fi/security/2020-2/]
	* fixed PMF disconnection protection bypass in AP mode
	  [https://w1.fi/security/2019-7/]
	* added support for using OpenSSL 3.0
	* increased the maximum number of EAP message exchanges (mainly to
	  support cases with very large certificates)
	* fixed various issues in experimental support for EAP-TEAP peer
	* added support for DPP release 2 (Wi-Fi Device Provisioning Protocol)
	* a number of MKA/MACsec fixes and extensions
	* added support for SAE (WPA3-Personal) AP mode configuration
	* added P2P support for EDMG (IEEE 802.11ay) channels
	* fixed EAP-FAST peer with TLS GCM/CCM ciphers
	* improved throughput estimation and BSS selection
	* dropped support for libnl 1.1
	* added support for nl80211 control port for EAPOL frame TX/RX
	* fixed OWE key derivation with groups 20 and 21; this breaks backwards
	  compatibility for these groups while the default group 19 remains
	  backwards compatible
	* added support for Beacon protection
	* added support for Extended Key ID for pairwise keys
	* removed WEP support from the default build (CONFIG_WEP=y can be used
	  to enable it, if really needed)
	* added a build option to remove TKIP support (CONFIG_NO_TKIP=y)
	* added support for Transition Disable mechanism to allow the AP to
	  automatically disable transition mode to improve security
	* extended D-Bus interface
	* added support for PASN
	* added a file-based backend for external password storage to allow
	  secret information to be moved away from the main configuration file
	  without requiring external tools
	* added EAP-TLS peer support for TLS 1.3 (disabled by default for now)
	* added support for SCS, MSCS, DSCP policy
	* changed driver interface selection to default to automatic fallback
	  to other compiled in options
	* a large number of other fixes, cleanup, and extensions"

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-18 21:57:05 +00:00
Matthias Fischer
6491a92335 hostapd: Update to 2.10
For details see:
https://w1.fi/cgit/hostap/plain/hostapd/ChangeLog

"2022-01-16 - v2.10
	* SAE changes
	  - improved protection against side channel attacks
	    [https://w1.fi/security/2022-1/]
	  - added option send SAE Confirm immediately (sae_config_immediate=1)
	    after SAE Commit
	  - added support for the hash-to-element mechanism (sae_pwe=1 or
	    sae_pwe=2)
	  - fixed PMKSA caching with OKC
	  - added support for SAE-PK
	* EAP-pwd changes
	  - improved protection against side channel attacks
	    [https://w1.fi/security/2022-1/]
	* fixed WPS UPnP SUBSCRIBE handling of invalid operations
	  [https://w1.fi/security/2020-1/]
	* fixed PMF disconnection protection bypass
	  [https://w1.fi/security/2019-7/]
	* added support for using OpenSSL 3.0
	* fixed various issues in experimental support for EAP-TEAP server
	* added configuration (max_auth_rounds, max_auth_rounds_short) to
	  increase the maximum number of EAP message exchanges (mainly to
	  support cases with very large certificates) for the EAP server
	* added support for DPP release 2 (Wi-Fi Device Provisioning Protocol)
	* extended HE (IEEE 802.11ax) support, including 6 GHz support
	* removed obsolete IAPP functionality
	* fixed EAP-FAST server with TLS GCM/CCM ciphers
	* dropped support for libnl 1.1
	* added support for nl80211 control port for EAPOL frame TX/RX
	* fixed OWE key derivation with groups 20 and 21; this breaks backwards
	  compatibility for these groups while the default group 19 remains
	  backwards compatible; owe_ptk_workaround=1 can be used to enabled a
	  a workaround for the group 20/21 backwards compatibility
	* added support for Beacon protection
	* added support for Extended Key ID for pairwise keys
	* removed WEP support from the default build (CONFIG_WEP=y can be used
	  to enable it, if really needed)
	* added a build option to remove TKIP support (CONFIG_NO_TKIP=y)
	* added support for Transition Disable mechanism to allow the AP to
	  automatically disable transition mode to improve security
	* added support for PASN
	* added EAP-TLS server support for TLS 1.3 (disabled by default for now)
	* a large number of other fixes, cleanup, and extensions"

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-18 21:57:02 +00:00
Matthias Fischer
c8ddb9ef1f bind: Update to 9.16.26
For details see:
https://downloads.isc.org/isc/bind9/9.16.26/doc/arm/html/notes.html#notes-for-bind-9-16-26

"Notes for BIND 9.16.26
Feature Changes

    The DLZ API has been updated: EDNS Client-Subnet (ECS) options sent
    by a client are now included in the client information sent to DLZ
    modules when processing queries. [GL #3082]

Bug Fixes

    Previously, recvmmsg support was enabled in libuv 1.35.0 and 1.36.0,
    but not in libuv versions 1.37.0 or greater, reducing the maximum
    query-response performance. This has been fixed. [GL #3095]

    A failed view configuration during a named reconfiguration procedure
    could cause inconsistencies in BIND internal structures, causing
    a crash or other unexpected errors. This has been fixed. [GL #3060]

    Previously, named logged a “quota reached” message when it hit its
    hard quota on the number of connections. That message was
    accidentally removed but has now been restored. [GL #3125]

    Build errors were introduced in some DLZ modules due to an
    incomplete change in the previous release. This has been fixed. [GL
    #3111]"

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-17 19:22:26 +00:00