]> git.ipfire.org Git - people/ms/ipfire-2.x.git/log
people/ms/ipfire-2.x.git
11 months agomake.sh: Add a tail command to stream any logs
Michael Tremer [Mon, 8 Jul 2024 16:18:57 +0000 (16:18 +0000)] 
make.sh: Add a tail command to stream any logs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Pass on individual build arguments
Michael Tremer [Sun, 7 Jul 2024 17:26:55 +0000 (17:26 +0000)] 
make.sh: Pass on individual build arguments

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Don't generate any documentation in the source directory
Michael Tremer [Fri, 5 Jul 2024 15:42:05 +0000 (15:42 +0000)] 
make.sh: Don't generate any documentation in the source directory

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Kill all child processes if unshare terminates
Michael Tremer [Fri, 5 Jul 2024 15:39:05 +0000 (15:39 +0000)] 
make.sh: Kill all child processes if unshare terminates

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Update the runtime after the interrupt
Michael Tremer [Fri, 5 Jul 2024 15:32:45 +0000 (15:32 +0000)] 
make.sh: Update the runtime after the interrupt

This is a lot better because this puts the code where it is being
executed and allows us to run run_command in a subshell, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Build the entire distribution in one go
Michael Tremer [Fri, 5 Jul 2024 15:00:59 +0000 (15:00 +0000)] 
make.sh: Build the entire distribution in one go

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Fix indentation
Michael Tremer [Fri, 5 Jul 2024 14:08:18 +0000 (14:08 +0000)] 
make.sh: Fix indentation

No functional changes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Move a comment to where it should be
Michael Tremer [Fri, 5 Jul 2024 14:02:41 +0000 (14:02 +0000)] 
make.sh: Move a comment to where it should be

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Launch the timer only when we need it
Michael Tremer [Fri, 5 Jul 2024 14:02:12 +0000 (14:02 +0000)] 
make.sh: Launch the timer only when we need it

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Have the background timer update the process runtime
Michael Tremer [Fri, 5 Jul 2024 14:01:26 +0000 (14:01 +0000)] 
make.sh: Have the background timer update the process runtime

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Create a timer co-process
Michael Tremer [Fri, 5 Jul 2024 13:37:15 +0000 (13:37 +0000)] 
make.sh: Create a timer co-process

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Don't export loads of variables in the main script
Michael Tremer [Fri, 5 Jul 2024 10:47:12 +0000 (10:47 +0000)] 
make.sh: Don't export loads of variables in the main script

We clear and reset the environment when we launch any build commands and
therefore don't need to do this here.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Don't mess with Bash's command hashing
Michael Tremer [Fri, 5 Jul 2024 10:46:11 +0000 (10:46 +0000)] 
make.sh: Don't mess with Bash's command hashing

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Refactor downloading sources
Michael Tremer [Fri, 5 Jul 2024 10:45:00 +0000 (10:45 +0000)] 
make.sh: Refactor downloading sources

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: run_command: Fix basedir in and outside the chroot
Michael Tremer [Fri, 5 Jul 2024 10:43:26 +0000 (10:43 +0000)] 
make.sh: run_command: Fix basedir in and outside the chroot

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Disconnect standard input from make commands
Michael Tremer [Fri, 5 Jul 2024 10:25:27 +0000 (10:25 +0000)] 
make.sh: Disconnect standard input from make commands

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Move download and check to lfsmake2 and out of the common check
Michael Tremer [Fri, 5 Jul 2024 10:24:15 +0000 (10:24 +0000)] 
make.sh: Move download and check to lfsmake2 and out of the common check

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Add --quiet to run_command
Michael Tremer [Fri, 5 Jul 2024 10:23:45 +0000 (10:23 +0000)] 
make.sh: Add --quiet to run_command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Allow run_command to execute multiple actions at a time
Michael Tremer [Fri, 5 Jul 2024 10:19:33 +0000 (10:19 +0000)] 
make.sh: Allow run_command to execute multiple actions at a time

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Move lfscommoncheck out of run_command
Michael Tremer [Fri, 5 Jul 2024 10:18:49 +0000 (10:18 +0000)] 
make.sh: Move lfscommoncheck out of run_command

We would quite likely create an infinite loop here later and so should
rather treat run_command as a low-level function.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Remove some dead code
Michael Tremer [Fri, 5 Jul 2024 10:14:41 +0000 (10:14 +0000)] 
make.sh: Remove some dead code

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Show total runtime of commands after they are finished
Michael Tremer [Fri, 5 Jul 2024 10:11:57 +0000 (10:11 +0000)] 
make.sh: Show total runtime of commands after they are finished

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Add helper function to run a make command
Michael Tremer [Fri, 5 Jul 2024 10:06:53 +0000 (10:06 +0000)] 
make.sh: Add helper function to run a make command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Fix checking if we have a fake environment
Michael Tremer [Fri, 5 Jul 2024 09:52:24 +0000 (09:52 +0000)] 
make.sh: Fix checking if we have a fake environment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoConfig: Drop toolchain URL
Michael Tremer [Fri, 5 Jul 2024 09:49:14 +0000 (09:49 +0000)] 
Config: Drop toolchain URL

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Refactor uploading sources
Michael Tremer [Fri, 5 Jul 2024 09:48:56 +0000 (09:48 +0000)] 
make.sh: Refactor uploading sources

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Make the disk space check optional
Michael Tremer [Fri, 5 Jul 2024 09:45:39 +0000 (09:45 +0000)] 
make.sh: Make the disk space check optional

There is little value in running this when entering a shell...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Mount the log directory for the correct architecture
Michael Tremer [Fri, 5 Jul 2024 09:42:20 +0000 (09:42 +0000)] 
make.sh: Mount the log directory for the correct architecture

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Refactor compression the toolchain
Michael Tremer [Fri, 5 Jul 2024 09:39:50 +0000 (09:39 +0000)] 
make.sh: Refactor compression the toolchain

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Create a custom log function
Michael Tremer [Fri, 5 Jul 2024 09:39:08 +0000 (09:39 +0000)] 
make.sh: Create a custom log function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Use path variables for cleanup
Michael Tremer [Fri, 5 Jul 2024 09:17:05 +0000 (09:17 +0000)] 
make.sh: Use path variables for cleanup

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Refactor downloading the toolchain
Michael Tremer [Fri, 5 Jul 2024 09:13:19 +0000 (09:13 +0000)] 
make.sh: Refactor downloading the toolchain

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months ago.gitignore: Ignore architecture directories
Michael Tremer [Fri, 5 Jul 2024 08:59:37 +0000 (08:59 +0000)] 
.gitignore: Ignore architecture directories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Forward the architecture to the namespace
Michael Tremer [Fri, 5 Jul 2024 08:58:57 +0000 (08:58 +0000)] 
make.sh: Forward the architecture to the namespace

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Refactor the toolchain extraction
Michael Tremer [Fri, 5 Jul 2024 08:58:46 +0000 (08:58 +0000)] 
make.sh: Refactor the toolchain extraction

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Build in a separate directory for each architecture
Michael Tremer [Fri, 5 Jul 2024 08:58:09 +0000 (08:58 +0000)] 
make.sh: Build in a separate directory for each architecture

This allows running multiple builds in the same working directory.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Use LOG_DIR for logs
Michael Tremer [Fri, 5 Jul 2024 08:29:46 +0000 (08:29 +0000)] 
make.sh: Use LOG_DIR for logs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Check free space in the base directory
Michael Tremer [Fri, 5 Jul 2024 08:27:55 +0000 (08:27 +0000)] 
make.sh: Check free space in the base directory

This makes more sense if we want to support building multiple
architectures and if we consider cache and ccache, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Create all bind-mounts as read-only where possible
Michael Tremer [Fri, 5 Jul 2024 08:21:10 +0000 (08:21 +0000)] 
make.sh: Create all bind-mounts as read-only where possible

This way, the build environment can no longer modify any source any
more. This was not a huge integrity problem before as Git would have
shown differences, but it might cause damage to the build system which
need to manually be recovered.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Create /dev and /sys in the build environment
Michael Tremer [Fri, 5 Jul 2024 08:20:53 +0000 (08:20 +0000)] 
make.sh: Create /dev and /sys in the build environment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoperl-Device-SerialPort: Use /dev/null as test port
Michael Tremer [Fri, 5 Jul 2024 08:16:17 +0000 (08:16 +0000)] 
perl-Device-SerialPort: Use /dev/null as test port

The build failed with the new minimal /dev it is looking for some TTY
devices which are no longer present. This patch fixes the build.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Create /proc in the chroot environment before mounting it
Michael Tremer [Fri, 5 Jul 2024 08:16:00 +0000 (08:16 +0000)] 
make.sh: Create /proc in the chroot environment before mounting it

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Move PS1 to the header
Michael Tremer [Thu, 4 Jul 2024 19:29:26 +0000 (19:29 +0000)] 
make.sh: Move PS1 to the header

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Remove TARGET_ARCH compatibility
Michael Tremer [Thu, 4 Jul 2024 19:16:54 +0000 (19:16 +0000)] 
make.sh: Remove TARGET_ARCH compatibility

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Remove option to make /usr/src a ramdisk
Michael Tremer [Thu, 4 Jul 2024 19:16:02 +0000 (19:16 +0000)] 
make.sh: Remove option to make /usr/src a ramdisk

I am not sure this is helping in any way these days that we have SSDs
everywhere...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Remove docker stuff
Michael Tremer [Thu, 4 Jul 2024 19:14:19 +0000 (19:14 +0000)] 
make.sh: Remove docker stuff

This is basically unused for years. I even forgot we had this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Tidy up LOGFILE
Michael Tremer [Thu, 4 Jul 2024 19:10:15 +0000 (19:10 +0000)] 
make.sh: Tidy up LOGFILE

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Refactor determining BASEDIR
Michael Tremer [Thu, 4 Jul 2024 19:05:37 +0000 (19:05 +0000)] 
make.sh: Refactor determining BASEDIR

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Group variables and initialization together
Michael Tremer [Thu, 4 Jul 2024 18:55:47 +0000 (18:55 +0000)] 
make.sh: Group variables and initialization together

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Set the CCACHE_DIR with the ccache to use
Michael Tremer [Thu, 4 Jul 2024 18:27:43 +0000 (18:27 +0000)] 
make.sh: Set the CCACHE_DIR with the ccache to use

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Refactor the root user check
Michael Tremer [Thu, 4 Jul 2024 18:23:14 +0000 (18:23 +0000)] 
make.sh: Refactor the root user check

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Tidy up the environment creation function
Michael Tremer [Thu, 4 Jul 2024 18:21:58 +0000 (18:21 +0000)] 
make.sh: Tidy up the environment creation function

NFC

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Refactor the space check
Michael Tremer [Thu, 4 Jul 2024 18:13:06 +0000 (18:13 +0000)] 
make.sh: Refactor the space check

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: No longer export LFS as it is not being used
Michael Tremer [Thu, 4 Jul 2024 17:59:43 +0000 (17:59 +0000)] 
make.sh: No longer export LFS as it is not being used

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Replace LFS with BUILD_DIR
Michael Tremer [Thu, 4 Jul 2024 17:59:11 +0000 (17:59 +0000)] 
make.sh: Replace LFS with BUILD_DIR

This is probably a more specific name for this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Always mount a separate /tmp
Michael Tremer [Thu, 4 Jul 2024 17:54:08 +0000 (17:54 +0000)] 
make.sh: Always mount a separate /tmp

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Make BUILD_DIR a mountpoint
Michael Tremer [Thu, 4 Jul 2024 17:50:52 +0000 (17:50 +0000)] 
make.sh: Make BUILD_DIR a mountpoint

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Create a new, minimal /dev in the build environment
Michael Tremer [Thu, 4 Jul 2024 17:48:53 +0000 (17:48 +0000)] 
make.sh: Create a new, minimal /dev in the build environment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Don't bind-mount the host's /proc
Michael Tremer [Thu, 4 Jul 2024 17:18:24 +0000 (17:18 +0000)] 
make.sh: Don't bind-mount the host's /proc

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Create the second mount namespace as slave
Michael Tremer [Thu, 4 Jul 2024 17:16:43 +0000 (17:16 +0000)] 
make.sh: Create the second mount namespace as slave

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Don't create a new IPC namespace
Michael Tremer [Thu, 4 Jul 2024 17:16:08 +0000 (17:16 +0000)] 
make.sh: Don't create a new IPC namespace

If we do this, we no longer can interrupt the build process on the
console.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Create lots more namespaces when we enter the chroot
Michael Tremer [Thu, 4 Jul 2024 17:09:53 +0000 (17:09 +0000)] 
make.sh: Create lots more namespaces when we enter the chroot

This allows us to protect the host system a little bit more from the
host system by decoupling all namespaces.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Ensure that we enter the chroot only in our own NS
Michael Tremer [Thu, 4 Jul 2024 17:07:41 +0000 (17:07 +0000)] 
make.sh: Ensure that we enter the chroot only in our own NS

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Remove the fragile cleanup code
Michael Tremer [Thu, 4 Jul 2024 17:06:07 +0000 (17:06 +0000)] 
make.sh: Remove the fragile cleanup code

Since we now mount everything in a new namespace, there is no need to
clean up ourselves. This will be done when the last process leaves the
namespace.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Launch build and shell commands in a new mount namespace
Michael Tremer [Thu, 4 Jul 2024 16:48:28 +0000 (16:48 +0000)] 
make.sh: Launch build and shell commands in a new mount namespace

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agomake.sh: Remove superfluous image check
Michael Tremer [Thu, 4 Jul 2024 16:18:20 +0000 (16:18 +0000)] 
make.sh: Remove superfluous image check

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agosquid: Comment out access.log in rootfile
Adolf Belka [Mon, 8 Jul 2024 11:48:42 +0000 (13:48 +0200)] 
squid: Comment out access.log in rootfile

- Everytime an update has been done on squid the access.log file has been replaced with an
   empty file, losing whatever messages have been in the log.
- This has been the case since squid was implemented in IPFire.
- Update of rootfile to comment out var/log/squid/access.log

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoapache: Update to 2.4.61
Matthias Fischer [Fri, 5 Jul 2024 15:36:40 +0000 (17:36 +0200)] 
apache: Update to 2.4.61

For details see:
https://dlcdn.apache.org/httpd/CHANGES_2.4.61

"Changes with Apache 2.4.61

  *) SECURITY: CVE-2024-39884: Apache HTTP Server: source code
     disclosure with handlers configured via AddType (cve.mitre.org)
     A regression in the core of Apache HTTP Server 2.4.60 ignores
     some use of the legacy content-type based configuration of
     handlers.   "AddType" and similar configuration, under some
     circumstances where files are requested indirectly, result in
     source code disclosure of local content. For example, PHP
     scripts may be served instead of interpreted.
     Users are recommended to upgrade to version 2.4.61, which fixes
     this issue."

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agosamba: Update to version 4.20.2
Adolf Belka [Mon, 8 Jul 2024 11:41:11 +0000 (13:41 +0200)] 
samba: Update to version 4.20.2

- Update from version 4.20.1 to 4.20.2
- Update of rootfile for both x86_64 and aarch64
- After doing a grep into the config directories I realised that the xxxMACHINExxx phrase
   is only added into rootfiles in the main common or package directories and not in the
   x86_64 and aarch64
- In the past I have submitted the samba rootfile with x86_64 replaced by xxxMACHINExxx.
   It seems to have worked, so the replacement probably occurs even in the architecture
   specific directories but it doesn't need to be used there as the directory is clearly
   only for that one architecture.
- Changelog
    4.20.2
   * BUG 15662: vfs_widelinks with DFS shares breaks case insensitivity.
   * BUG 13213: Samba build is not reproducible.
   * BUG 15569: ldb qsort might r/w out of bounds with an intransitive compare
     function.
   * BUG 15625: Many qsort() comparison functions are non-transitive, which can
     lead to out-of-bounds access in some circumstances.
   * BUG 15638: Need to change gitlab-ci.yml tags in all branches to avoid CI
     bill.
   * BUG 15654: We have added new options --vendor-name and --vendor-patch-
     revision arguments to ./configure to allow distributions and packagers to
     put their name in the Samba version string so that when debugging Samba the
     source of the binary is obvious.
   * BUG 15665: CTDB RADOS mutex helper misses namespace support.
   * BUG 13019: Dynamic DNS updates with the internal DNS are not working.
   * BUG 14981: netr_LogonSamLogonEx returns NR_STATUS_ACCESS_DENIED with
     SysvolReady=0.
   * BUG 15412: Anonymous smb3 signing/encryption should be allowed (similar to
     Windows Server 2022).
   * BUG 15573: Panic in dreplsrv_op_pull_source_apply_changes_trigger.
   * BUG 15620: s4:nbt_server: does not provide unexpected handling, so winbindd
     can't use nmb requests instead cldap.
   * BUG 15642: winbindd, net ads join and other things don't work on an ipv6
     only host.
   * BUG 15659: Segmentation fault when deleting files in vfs_recycle.
   * BUG 15664: Panic in vfs_offload_token_db_fetch_fsp().
   * BUG 15666: "client use kerberos" and --use-kerberos is ignored for the
     machine account.
   * BUG 15435: Regression DFS not working with widelinks = true.
   * BUG 15633: samba-gpupdate - Invalid NtVer in netlogon_samlogon_response.
   * BUG 15653: idmap_ad creates an incorrect local krb5.conf in case of trusted
     domain lookups.
   * BUG 15660: The images don't build after the git security release and CentOS
     8 Stream is EOL.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoruby: Add rootfile for all architectures
Michael Tremer [Thu, 4 Jul 2024 16:13:42 +0000 (16:13 +0000)] 
ruby: Add rootfile for all architectures

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoriscv64: Update util-linux rootfile
Michael Tremer [Thu, 4 Jul 2024 16:11:56 +0000 (16:11 +0000)] 
riscv64: Update util-linux rootfile

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agovectorscan: Build as a fat library
Michael Tremer [Thu, 4 Jul 2024 15:39:10 +0000 (15:39 +0000)] 
vectorscan: Build as a fat library

The build system defaults to building the library for the host system
and therefore uses instructions that might not be available on the
target system.

This patch changes that we will build the library so that it will choose
the most optimised functions at runtime.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agocore187: Ship the OpenVPN CRL updater
Michael Tremer [Thu, 4 Jul 2024 14:47:07 +0000 (14:47 +0000)] 
core187: Ship the OpenVPN CRL updater

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoCore Update 187: Rewrite the SSH configuration on update
Peter Müller [Wed, 3 Jul 2024 10:54:00 +0000 (10:54 +0000)] 
Core Update 187: Rewrite the SSH configuration on update

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agocore187: Ship and restart the firewall
Michael Tremer [Tue, 2 Jul 2024 09:32:37 +0000 (09:32 +0000)] 
core187: Ship and restart the firewall

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agosysctl: Conntrack: Disable picking up loose TCP connections
Michael Tremer [Thu, 18 Apr 2024 21:11:44 +0000 (21:11 +0000)] 
sysctl: Conntrack: Disable picking up loose TCP connections

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agofirewall: Implement generating SYNPROXY rules
Michael Tremer [Thu, 18 Apr 2024 21:11:43 +0000 (21:11 +0000)] 
firewall: Implement generating SYNPROXY rules

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agofirewall.cgi: Add a checkbox to enable SYN flood protection
Michael Tremer [Thu, 18 Apr 2024 21:11:42 +0000 (21:11 +0000)] 
firewall.cgi: Add a checkbox to enable SYN flood protection

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agofirewall: Enable SYNPROXY for untracked packets
Michael Tremer [Thu, 18 Apr 2024 21:11:41 +0000 (21:11 +0000)] 
firewall: Enable SYNPROXY for untracked packets

This enables some DoS protection using SYNPROXY which will complete a
SYN handshake with the client before the connection is being forwarded.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agofirewall: Don't filter output INVALID packets
Michael Tremer [Thu, 18 Apr 2024 21:11:40 +0000 (21:11 +0000)] 
firewall: Don't filter output INVALID packets

This should never cause any problems, but will cause that certain more
complicated featured like SYNPROXY won't work.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agofirewall: Split CONNTRACK chain
Michael Tremer [Thu, 18 Apr 2024 21:11:39 +0000 (21:11 +0000)] 
firewall: Split CONNTRACK chain

This is preparation to handle incoming/outgoing packets differently.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agocore187: Ship and restart Apache
Michael Tremer [Tue, 2 Jul 2024 09:27:00 +0000 (09:27 +0000)] 
core187: Ship and restart Apache

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoapache: Update to 2.4.60
Matthias Fischer [Tue, 2 Jul 2024 07:06:02 +0000 (09:06 +0200)] 
apache: Update to 2.4.60

Fixed:
CVE-2024-39573, CVE-2024-38477, CVE-2024-38476, CVE-2024-38475, CVE-2024-38474,
CVE-2024-38473, CVE-2024-38472, CVE-2024-36387.

For details see:
https://dlcdn.apache.org/httpd/CHANGES_2.4.60

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoOpenSSH: Ship the entire suite of helper programs
Michael Tremer [Tue, 2 Jul 2024 09:25:09 +0000 (09:25 +0000)] 
OpenSSH: Ship the entire suite of helper programs

The SSH daemon has been split into a listener and session daemon to have
a smaller attack vector since the listener does not need to implement
the SSH protocol.

In order to keep SSH working, we need to ship the session daemon, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agocore187: Ship and restart OpenSSH
Michael Tremer [Tue, 2 Jul 2024 09:24:43 +0000 (09:24 +0000)] 
core187: Ship and restart OpenSSH

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoopenssh: Update to version 9.8p1
Adolf Belka [Mon, 1 Jul 2024 19:47:36 +0000 (21:47 +0200)] 
openssh: Update to version 9.8p1

- Update from version 9.7p1 to 9.8p1
- Update of rootfile
- Changelog
    9.8p1
-There is a fix for CVE-2024-6387
-The number of changes is too large to show all here. As well as the CVE fix and
 another security related fix there are a log of bug fixes as well. The details can
         seen at https://www.openssh.com/txt/release-9.8

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agocore187: Restart Suricata during the update
Michael Tremer [Tue, 2 Jul 2024 09:19:33 +0000 (09:19 +0000)] 
core187: Restart Suricata during the update

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agosuricata: Update to 7.0.6
Matthias Fischer [Fri, 28 Jun 2024 08:32:33 +0000 (10:32 +0200)] 
suricata: Update to 7.0.6

Excerpt from changelog:
"7.0.6 -- 2024-06-26

Security #7042: defrag: id reuse can lead to invalid reassembly (7.0.x backport)(CVE 2024-37151)
Security #7105: http2: oom from duplicate headers (7.0.x backport)
Security #7033: http/range: segv when http.memcap is reached (7.0.x backport)
Security #6988: modbus: txs without responses are never freed (7.0.x backport)
Bug #7107: packet: app-layer-events incorrectly used on recycled packets (7.0.x backport)
Bug #7064: util/radix-tree: Possible dereference of nullptr in case of unsuccess allocation of memory for node (7.0.x backport)
Bug #7063: smtp/mime: data command rejected by pipelining server does not reset data mode (7.0.x backport)
Bug #7060: smtp: split name logged as 2 names (7.0.x backport)
Bug #7050: af-packet: failure to start up on many threads plus high load (7.0.x backport)
Bug #7043: Crasher in HTTP chunked / StreamingBuffer (7.0.x backport)
Bug #7038: pcap/log: MacOS rotates file well before limit is reached (7.0.x backport)
Bug #7035: time: in offline mode, time can stay behind at pcap start (7.0.x backport)
Bug #7023: unix-socket: iface-bypassed-stat crash (7.0.x backport)
Bug #7021: unix-socket: hostbit commands don't properly release host (7.0.x backport)
Bug #7015: rust: build with rust 1.78 with slice::from_raw_parts now requiring the pointer to be non-null (7.0.x backport)
Bug #6990: tls.random buffers don't work as expected (7.0.x backport)
Bug #6986: iprep: rule with '=,0' can't match (7.0.x backport)
Bug #6975: detect: log relevant frames app-layer metdata (7.0.x backport)
Bug #6950: decode/ppp: decoder.event.ppp.wrong_type on valid packet (7.0.x backport)
Bug #6897: detect/port: upper boundary ports are not correctly handled (7.0.x backport)
Bug #6895: detect/port: port grouping does not happen correctly if gap between a single and range port (7.0.x backport)
Bug #6862: Lightweight rules profiling: crash when profiling ends (7.0.x backport)
Bug #6848: alerts: wrongly using tx id 0 when there is no tx (7.0.x backport)
Bug #6845: coverity: warning in port grouping code (7.0.x backport)
Bug #6844: detect/port: port ranges are incorrect when a port is single as well as a part of range (7.0.x backport)
Bug #6690: Ethernet src should match src ip (7.0.x backport)
Bug #6520: detect-engine/port: recursive DetectPortInsert calls are expensive (7.0.x backport)
Optimization #6830: detect/port: port grouping is quite slow in worst cases (7.0.x backport)
Optimization #6829: detect/port: PortGroupWhitelist fn takes a lot of processing time (7.0.x backport)
Feature #7010: JA4 support for TLS and QUIC (7.0.x backport)
Feature #6557: Capability to have rules profiling on pcap run (7.0.x backport)
Documentation #6910: userguide: document how to verify tar.gz signature (7.0.x backport)
Documentation #6687: docs: port userguide build instruction changes from master-6.0.x (7.0.x backport)
Documentation #6601: docs: update eBPF installation instructions (7.0.x backport)"

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agonano: Update to 8.0
Matthias Fischer [Wed, 26 Jun 2024 15:35:18 +0000 (17:35 +0200)] 
nano: Update to 8.0

For details see:
https://www.nano-editor.org/news.php

"2024 May 1 - GNU nano 8.0 "Grus grus"

    By default ^F is bound to starting a forward search, and ^B to
    starting a backward search, while M-F and M-B repeat the search
    in the corresponding direction. (See the documentation if you
    want the old bindings back.)
    Command-line option --modernbindings (-/) makes ^Q quit, ^X cut,
    ^C copy, ^V paste, ^Z undo, ^Y redo, ^O open a file, ^W write a file,
    ^R replace, ^G find again, ^D find again backwards, ^A set the mark,
    ^T jump to a line, ^P show the position, and ^E execute.
    Above modern bindings are activated also when the name of
    nano's executable (or a symlink to it) starts with the letter "e".
    To open a file at a certain line number, one can now use also
    nano filename:number, besides nano +number filename.
    <Alt+Home> and <Alt+End> put the cursor on the first and last
    row in the viewport, while retaining the horizontal position.
    When the three digits in an #RGB color code are all the same,
    the code is mapped to the xterm grey scale, giving access to
    fourteen levels of grey instead of just four.
    For easier access, M-" is bound to placing/removing an anchor,
    and M-' to jumping to the next anchor.
    Whenever an error occurs, the keystroke buffer is cleared, thus
    stopping the execution of a macro or a string bind.
    The mousewheel scrolls the viewport instead of moving the cursor."

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agocore187: Ship BIND
Michael Tremer [Tue, 2 Jul 2024 09:18:37 +0000 (09:18 +0000)] 
core187: Ship BIND

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agobind: Update to 9.16.50
Matthias Fischer [Tue, 25 Jun 2024 22:39:31 +0000 (00:39 +0200)] 
bind: Update to 9.16.50

For details see:
https://downloads.isc.org/isc/bind9/9.16.50/doc/arm/html/notes.html#notes-for-bind-9-16-50

"New Features

Added RESOLVER.ARPA to the built in empty zones."

Important:
"This is the last maintenance release of BIND 9.16. This version is now end of life. Please upgrade to
BIND 9.18, the current stable version."

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agocore187: Ship ipblocklist-sources
Michael Tremer [Tue, 2 Jul 2024 09:18:06 +0000 (09:18 +0000)] 
core187: Ship ipblocklist-sources

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoipblocklist-sources: Update to include the Abuse.ch Botnet C2 ip blocklist
Adolf Belka [Mon, 24 Jun 2024 15:10:39 +0000 (17:10 +0200)] 
ipblocklist-sources: Update to include the Abuse.ch Botnet C2 ip blocklist

- Blocklist addition was discussed and agreed at IPFire dev conf call in June 2024.
- Tested on vm system.

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>
11 months agoipblocklist-sources: Update to include the 3CORESec ip blocklists
Adolf Belka [Mon, 24 Jun 2024 15:10:38 +0000 (17:10 +0200)] 
ipblocklist-sources: Update to include the 3CORESec ip blocklists

- The patch for this was created by Stefan Schantl
- Blocklist addition was discussed and agreed at IPFire dev conf call in June 2024.
- Tested on vm system.
- The combined list was removed because it is just the three others which can be selected
   in the WUI to give the equivalent result.

Created-by: Stefan Schantl <stefan.schantl@ipfire.org>
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>
11 months agoapcupsd: Update email scripts to work with dma
Adolf Belka [Fri, 21 Jun 2024 16:04:46 +0000 (18:04 +0200)] 
apcupsd: Update email scripts to work with dma

- The standard email scripts supllied with apcupsd are coded on the basis that sendmail
   is being used. The format of the email information in those scripts does not work with
   the dma mail system implemented in IPFire.
- The scripts provided in the config/apcupsd directory have been updated to work with
   dma. The scripts have been confirmed to work with my production system that is using
   a UPS.
- This patch will replace the standard apcupsd scripts with the ones tailored for IPFire.
- If any existing users have modified their scripts to already work with dma then their
   versions will be saved in their backup.
- The apcupsd-3.14.14-2.ipfire package created in the build with the above changes has
   been installed on a vm system and confirmed to provide the IPFire tailored scripts.
- The lfs change is the addition of the copying of the scripts to the /etc/apcupsd
   directory.
- No change to the rootfile as the scripts names are the same.
- The only thing a user will need to do is to ensure the IPFire email system is enabled,
   configure and confirmed working. Then valid FROM and TO email addresses need to be
   added to each script.
- Once this patch submission is accepted then I will do an update to the apcupsd IPFire
   documentation page to describe these scripts and how to update the email addresses.

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>
11 months agospeexdsp: New package required for build of tshark-4.2.5
Adolf Belka [Wed, 19 Jun 2024 10:40:52 +0000 (12:40 +0200)] 
speexdsp: New package required for build of tshark-4.2.5

- tshark in the past had its own version of speexdsp used only for some "arbitrary
   resampling code" used for the build of tshark.
- speexdsp has been removed from tshark so it is now a build requirement.
- It is only used for the build of tshark so the rootfile has all entries commented out.

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>
11 months agoasciidoctor: New package required for build of tshark-4.2.5
Adolf Belka [Wed, 19 Jun 2024 10:40:51 +0000 (12:40 +0200)] 
asciidoctor: New package required for build of tshark-4.2.5

- Only used for build of tshark so rootfile has all entries commented out.

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>
11 months agoruby: New package required for build of asciidoctor required for tshark-4.2.5
Adolf Belka [Wed, 19 Jun 2024 10:40:50 +0000 (12:40 +0200)] 
ruby: New package required for build of asciidoctor required for tshark-4.2.5

- Only used for build of asciidoctor so rootfile has all entries commented out.

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>
11 months agotshark: Update to version 4.2.5
Adolf Belka [Wed, 19 Jun 2024 10:40:49 +0000 (12:40 +0200)] 
tshark: Update to version 4.2.5

- Update from version 4.0.8 to 4.2.5
- Update of rootfile
- Version 4.2.5 requires asciidoctor to be built for tshark to build. Despite lots of
   investigation and testing out various commands, tshark will not build if asciidoctor is
   not present, even if the docs are not going to be used. It is only required for the
   build
- To build asciidoctor ruby has to be installed. It is only required for the build of
   asciidoctor
- tshark has previously had its own version of speexdsp built in. It is only used to
   provide some "arbitrary resampling code" during the build and does not end up in the
   running tshark system. Version 4.2.5 has removed the internal speexdsp code but it
   is still a required dependency for building, so speexdsp also need to be installed but
   only for the build stage.
- The associated patches with this one provide the build installation of ruby, asciidoctor
   and speexdsp. With these installed tshark was able to be built.
- version 4.0.8 and 4.2.5 of tshark were tested out on a vm system with the command
   "tshark -c 100 > tshark" and this wrote 100 packets from the vm red0 interface to a
   text file. Both the old and new versions provided the same sort of result. To a first
   level of testing this shows that the 4.2.5 version is functioning as the previous
   version was.
- This version had an sobump so find-dependencies was run. All files linked to the three
   libraries in tshark are all also in tshark. No other package is linked to.
- Changelog
   There are 13 releases between 4.0.8 and 4.2.5 so the changelist is too large to
    include here. Details can be found in the release notes for each version at
    https://www.wireshark.org/docs/relnotes/
   21 CVE vulnerabilities have been fixed that were identified in 7 of the 13 versions.

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>
11 months agocore187: Ship zstd
Michael Tremer [Tue, 2 Jul 2024 09:16:40 +0000 (09:16 +0000)] 
core187: Ship zstd

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>