Commit Graph

21712 Commits

Author SHA1 Message Date
Michael Tremer
af932f13dd installer: Fix more const warnings
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:05:24 +00:00
Michael Tremer
fd0b10c92c installer: Pass correct length of hostname to sethostname()
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:05:11 +00:00
Michael Tremer
874ec4b049 installer: Replace all uses of strncpy with snprintf
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:04:59 +00:00
Michael Tremer
1415e83a34 installer: Correctly pass mount flags
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:04:48 +00:00
Michael Tremer
eb64913be1 installer: Fix use of uninitialized variable
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:04:36 +00:00
Michael Tremer
cebe531b70 installer: Remove unused variables
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:04:25 +00:00
Michael Tremer
0e0346cc4b installer: Make hw_mkdir static
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:04:04 +00:00
Michael Tremer
428490406d installer: Make btrfs functions static
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:02:15 +00:00
Michael Tremer
16640487b0 installer: Fix lots of constify issues
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:02:04 +00:00
Michael Tremer
eb3ede284b installer: Remove obsolete macros from configure script
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:01:54 +00:00
Michael Tremer
c4d47a112c installer: Translate BTRFS string
Fixes: #13630 - BTRFS - Add translations to installer
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:01:43 +00:00
Michael Tremer
2667749996 installer: Update language files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:01:31 +00:00
Michael Tremer
1f57daefa1 dnsdist: Update to 1.9.2
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:00:39 +00:00
Rico Hoppe
ef739f2379 CONTRIBUTING.md: adjust links to new URLs
- change wiki to documentation
- fix bugzilla link

Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:00:13 +00:00
Arne Fitzenreiter
4e4316ef6f core186: ship bind
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 05:59:16 +00:00
Matthias Fischer
6f1b0fecd2 bind: Update to 9.16.49
For details see:
https://downloads.isc.org/isc/bind9/9.16.49/doc/arm/html/notes.html#notes-for-bind-9-16-49

"Bug Fixes

    A regression in cache-cleaning code enabled memory use to grow
    significantly more quickly than before, until the configured
    max-cache-size limit was reached. This has been fixed. [GL #4596]

    Using rndc flush inadvertently caused cache cleaning to become
    less effective. This could ultimately lead to the configured
    max-cache-size limit being exceeded and has now been fixed. [GL #4621]

    The logic for cleaning up expired cached DNS records was tweaked to be
    more aggressive. This change helps with enforcing max-cache-ttl and
    max-ncache-ttl in a timely manner. [GL #4591]

    It was possible to trigger a use-after-free assertion when the overmem
    cache cleaning was initiated. This has been fixed. [GL #4595]"

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 05:57:58 +00:00
Arne Fitzenreiter
a8e7c5ff86 kernel: update to 6.6.28
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-17 19:39:14 +02:00
Arne Fitzenreiter
24f2ab15c6 kernel: rootfile update
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-16 06:50:49 +02:00
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