Commit Graph

21694 Commits

Author SHA1 Message Date
Arne Fitzenreiter
4b5d8a37b6 kernel: disable CONFIG_N_GSM
this feature should not used by IPFire and there
is a possible unfixed race condition that can
used for a privilege elevation attack.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-14 14:38:32 +02:00
Arne Fitzenreiter
991b7eb4e2 kernel: update to 6.6.27
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-14 14:38:00 +02:00
Arne Fitzenreiter
31a8214d16 kernel: update to 6.6.26
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-11 12:55:25 +02:00
Arne Fitzenreiter
103aa06884 Merge remote-tracking branch 'origin/master' into next 2024-04-10 07:11:02 +02:00
Michael Tremer
76ba16aef0 suricata: Change midstream policy to "pass-flow"
Pass packet isn't allowed here.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-09 10:51:18 +01:00
Arne Fitzenreiter
833d42fed0 Merge remote-tracking branch 'origin/master' into next 2024-04-09 06:52:42 +02:00
Adolf Belka
ee13f80e59 configroot: Add in LOGDROPHOSTILExxx values
- I checked out doing a fresh install of CU184 and found that although the
   LOGDROPHOSTILEIN and LOGDROPHOSTILEOUT entries were selected as "on" the values were not
   in the /var/ipfire/optionsfw/settings file.
- After some investigfation I realised that when I created the LOGDROPHOSTILE split into
   incoming and outgoing I had not added them into the configroot lfs file.
- This patch adds the two entries and this was tested out with a fresh install and
   confirmed to update the settings file.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 17:42:50 +00:00
Michael Tremer
b7da97fd59 suricata: Disable Landlock support
See #13645 for details.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 16:01:20 +00:00
Michael Tremer
b4847c387a suricata: Update require paths for Landlock
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 16:00:41 +00:00
Michael Tremer
763c7f67fa suricata: Enable midstream scanning
We require this because Suricata might be restarted due to development
or rule refreshment purposes. We should then try to resume any
decoders/app-layers wherever possible.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 14:57:49 +00:00
Stefan Schantl
76a4518091 suricata: Set midstream-policy to pass-packet
Set this value to the same as the exception-policy to keep in sync and
hopefully have the same behaviour. In case this option is not set an
ugly message about a not correctly set value will be logged to syslog
during startup.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 14:57:09 +00:00
Stefan Schantl
64e057aaa5 suricata: Enable landlock security feature
This will limit the suricata process to only read and write to a certain
files/directories.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 14:57:09 +00:00
Stefan Schantl
4d24d99461 suricata: Set exception-policy to pass-packet
This simply will skip processing a packet that caused an exception and will
allow Suricata to process all following packets of a flow.

Reference: #13638

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 14:57:09 +00:00
Stefan Schantl
a4ade63ef1 suricata: Update suricata.yaml
Updata the configuration file for suricata 7.

This includes:
* Default values for newly introduced features and parsers
* Enable recently added protocol parsers for HTTP2, QUIC, Telnet and Torrent
* Update of URL for documentation
* Fixes of various typos and other clarifications

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 14:57:09 +00:00
Arne Fitzenreiter
11a778d832 attr: update rootfile
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-08 10:14:55 +02:00
Arne Fitzenreiter
e49dc1055a initscripts: update riscv64 rootfile
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-08 10:14:17 +02:00
Arne Fitzenreiter
c2eb250ac6 kernel: update riscv64 config and rootfile
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-08 10:10:27 +02:00
Arne Fitzenreiter
732199b11b kernel: enable CPUFREQ for Raspberry Pi
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-06 07:47:42 +00:00
Arne Fitzenreiter
8b9f6c8b2f initskripts: update aarch64 rootfile
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-06 07:42:21 +00:00
Arne Fitzenreiter
8b981e4d76 Merge remote-tracking branch 'origin/master' into next 2024-04-05 22:29:37 +02:00
Arne Fitzenreiter
340f11ccbc kernel: update to 6.6.25
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-05 22:27:55 +02:00
Michael Tremer
69031f7674 suricata: Disable fail-open on NFQUEUE
This change causes that if suricata crashes, the NFQUEUE will no longer
fall into a mode where ALL packets are being accepted. This used the be
the case before which opened the entire firewall.

If suricata randomly crashes, we will fall back to the "bypass" mode
where packets will bypass suricata, but nothing else.

Fixes: #13642
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-05 12:48:16 +01:00
Arne Fitzenreiter
2fc167d93b kernel: update to 6.6.24
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-04 23:33:01 +02:00
Arne Fitzenreiter
05c31f4f14 core186: add collectd to updater
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-04 18:26:55 +02:00
Arne Fitzenreiter
7fdafdfbce collectd: fix cpufreq graph if virtual cores are offline
the kernel doesn't allow to read the frequency of a offline virtual core
if smt is disabled so now no error is reported in this case and NaN submited to the
database.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-04 18:23:29 +02:00
Arne Fitzenreiter
62db0b5320 core186: add grub-btrfs initskript changes to updater
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-02 19:36:46 +00:00
Stefan Schantl
b25236acf7 grub-btrfsd: Drop redundant used PIDFILE mechanism
This case is already covered by the PID mechanism of the used functions

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-02 19:25:47 +00:00
Stefan Schantl
e348f67fa6 grub-btrfsd: Adjust displayed starting message
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-02 19:25:35 +00:00
Stefan Schantl
6da6f5dbe2 grub-btrfsd: Use generic volume_fs_type function for FS detection
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-02 19:25:15 +00:00
Stefan Schantl
ed91103e22 initscripts: Add generic function to get the filesystem type of a volume
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-02 19:25:00 +00:00
Arne Fitzenreiter
5f04e70f74 grub-btrfs: fix grub-btrfs build and remove bugtracker url
grub-btrfs try to reconfigure grub in the buildsystem and print always the bugtracker url on every error even when its not a bug

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-03-31 16:30:50 +02:00
Arne Fitzenreiter
2d4f4ebfa2 Merge remote-tracking branch 'origin/master' into next
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-03-31 13:36:08 +02:00
Arne Fitzenreiter
bb46f3bef8 core185: excplicit erase liblzma.so.5.6.*
because if this file exist the cleanap script will remove the older version after downgrade
and the system still use the malewared version.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-03-31 13:27:46 +02:00
Arne Fitzenreiter
ce30d74893 kernel: update to 6.6.23
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-03-31 10:49:46 +02:00
Michael Tremer
ee08f7aea1 frr: Bump release version
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:14:51 +00:00
Michael Tremer
56d32cbe91 frr: Update reloading all services
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:14:37 +00:00
Michael Tremer
7c6b05dfb8 frr: Start the management daemon, too
This daemon is running the configuration validation and required to run
at all times.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:14:37 +00:00
Michael Tremer
0972da95bf protobuf-c: Ship libraries
FRR links against this and fails to start without.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:14:37 +00:00
Michael Tremer
bd49143228 make.sh: Update contributors
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:13:08 +00:00
Rico Hoppe
417182c49b README.md: fix minor typo
Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:12:42 +00:00
Rico Hoppe
64d6bbe5a3 README.md: update text & adjust links to new URLs
- links for: about, documentation, help
- wording: wiki to documentation

Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:12:42 +00:00
Michael Tremer
21f467d65a core185: Ship new perl modules for libarchive
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:11:42 +00:00
Stefan Schantl
ee16b227a5 ids-functions.pl: Use libarchive to extract archives
This gives us a lot of benefits:

* Speed up the extraction process
* More supported archive types due the power of libarchive
* Support of passphrase protected archives

It also fixes a problem with non extracted files next to a zero sized
file inside an archive.

Fixes #13632.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:09:14 +00:00
Stefan Schantl
2ef62acc01 perl-Archive-Peek-Libarchive: New package
As very simple XS based perl binding for libarchive
to get header data and extract files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:09:14 +00:00
Stefan Schantl
d33b29e2b1 perl-Object-Tiny: New package
This is a runtime dependency of perl-Archive-Peek-Libarchive

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:09:14 +00:00
Stefan Schantl
c854076155 perl-Config-AutoConf: New package
This is only a build dependency for perl-Arhive-Peek-Libarchive and
will not be installed on a system

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:09:14 +00:00
Stefan Schantl
cf94463c4c perl-Capture-Tiny: New package
This is only a build dependency for perl-Config-AutoConf and
will not be installed on a system

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:09:14 +00:00
Michael Tremer
c283a6f615 core185: Ship everything that is linked against XZ
This is a precautionary step to avoid that we have any issues to face
because of a downgrade as new symbols have been added to liblzma 5.6.0.

Furthermore, this should avoid shipping any traces of any other
potential malware in XZ that has been added in 5.6.0 or after.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 12:08:39 +00:00
Michael Tremer
16901fee6a xz: Remove excess whitespace
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 11:58:24 +00:00
Adolf Belka
1b8437340b xz: Revert back to version 5.4.5 due to backdoor issue
- xz version 5.6.0 and 5.6.1 discovered to have been backdoored by what looks to have
   been one of the xz devs.
- IPFire looks not to be affected by the problem as we don't patch openssh to be linked
   with liblzma
- However due to question marks about what else might be in these 5.6.x versions it is
   better to revert back to a version that did not have the build-to-host.m4 file with the
   code that modifies the build if it meets certain criteria.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-03-30 11:52:42 +00:00